Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


- - - - -

test feature fails in amd64


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 jacmoe   Members   -  Reputation: 207

Like
0Likes
Like

Posted 22 July 2011 - 11:15 AM

On amd64 (Debian Sid) test_feature segfaults.

When I debug, I see that it fails on the very first test:
if( TestDefaultArg::Test() 		) goto failed; else printf("-- TestDefaultArg passed\n");

Semi-callstack:
test_defaultarg.cpp:
line 64: r = ExecuteString(engine, "main()", mod);
scripthelper.cpp:
line 154: r = execCtx->Execute();
as_context.cpp:
line 983: ExecuteNext();
line 1956: l_sp += CallSystemFunction(i, this, 0);
as_callfunc.cpp:
line 424: retQW = CallSystemFunctionNative(context, descr, obj, args, sysFunc->hostReturnInMemory ? retPointer : 0, retQW2);
as_callfunc_x64_gcc.cpp:
line 210: int callConv = sysFunc->callConv;

Doesn't look good.

This is latest svn trunk.

Sponsor:

#2 jacmoe   Members   -  Reputation: 207

Like
0Likes
Like

Posted 22 July 2011 - 11:38 AM

Looks like Angelscript 2.20.1 makes my app work on my machine. :)
I will see if the test succeeds as well.

#3 jacmoe   Members   -  Reputation: 207

Like
0Likes
Like

Posted 22 July 2011 - 12:25 PM

It's not as bad as it sounds:
test_feature passes for Angelscript 2.21.0 :)
Which probably means that it broke just recently.

#4 Jeremy Harmon   Members   -  Reputation: 134

Like
0Likes
Like

Posted 22 July 2011 - 01:30 PM

The latest svn revision should pass all tests, as it does on my buildbot: http://angelscript.jeremyh.net/builders/Full-Linux-64/builds/148

Have you tried a full rebuild?

#5 Jeremy Harmon   Members   -  Reputation: 134

Like
0Likes
Like

Posted 22 July 2011 - 01:31 PM

You can always check the status of angelscript on linux at http://angelscript.jeremyh.net as its compiled and tested on every commit.

#6 Andreas Jonsson   Moderators   -  Reputation: 3451

Like
0Likes
Like

Posted 22 July 2011 - 05:33 PM

By the place where the segmentation fault occurs 'int callConv = sysFunc->callConv;', I would follow Jeremy's suggestion to recompile the whole library. It has the looks of a mismatch between source version and compiled version, that somehow got past the linker.

Let me know if it still fails after that, and I'll try to look into it further.








AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

#7 jacmoe   Members   -  Reputation: 207

Like
0Likes
Like

Posted 22 July 2011 - 05:52 PM

I *think* that it's fixed now. ;)

Actually a bit disappointing, because now I have to really dig into the reasons why my code works perfectly on Windows, but fails on amd64..
I will keep digging, and post any questions in a separate topic.
Thanks for your attention. :)




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS