test feature fails in amd64

Started by
5 comments, last by jacmoe 12 years, 9 months ago
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.

Too many projects; too much time

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

Too many projects; too much time

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

Too many projects; too much time

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?
You can always check the status of angelscript on linux at http://angelscript.jeremyh.net as its compiled and tested on every commit.
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

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. :)

Too many projects; too much time

This topic is closed to new replies.

Advertisement