Jump to content

bug in tests


howlingflute
 Share

Recommended Posts

I get an error when I try to run the most recent tests. I get Segmentation fault when running the tests in the most recent svn 11228.

gdb ./test

GNU gdb (GDB) 7.2-ubuntu

Copyright © 2010 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law. Type "show copying"

and "show warranty" for details.

This GDB was configured as "x86_64-linux-gnu".

For bug reporting instructions, please see:

<http://www.gnu.org/software/gdb/bugs/>...

Reading symbols from /home/michael/0ad/binaries/system/test...done.

(gdb) r

Starting program: /home/michael/0ad/binaries/system/test

[Thread debugging using libthread_db enabled]

Running 258 tests.......

Program received signal SIGSEGV, Segmentation fault.

VfsFileExists (pathname=...) at ../../../source/ps/Filesystem.cpp:35

35 return g_VFS->GetFileInfo(pathname, 0) == INFO::OK;

(gdb) backtrace

#0 VfsFileExists (pathname=...) at ../../../source/ps/Filesystem.cpp:35

#1 0x00000000005b81a6 in ScriptInterface::LoadGlobalScriptFile (

this=<value optimized out>, path=...)

at ../../../source/scriptinterface/ScriptInterface.cpp:913

#2 0x00000000005b89c3 in ScriptInterface::ReplaceNondeterministicFunctions (

this=0x7fffffffdfe0, rng=<value optimized out>)

at ../../../source/scriptinterface/ScriptInterface.cpp:619

#3 0x00000000004f0687 in TestScriptInterface::test_random() ()

#4 0x0000000000416335 in CxxTest::RealTestDescription::run (this=0x0)

at ../../../libraries/cxxtest/include/cxxtest/RealDescriptions.cpp:96

#5 0x0000000000419bdc in runTest (listener=<value optimized out>)

at ../../../libraries/cxxtest/include/cxxtest/TestRunner.h:76

#6 runSuite (listener=<value optimized out>)

at ../../../libraries/cxxtest/include/cxxtest/TestRunner.h:63

#7 runWorld (listener=<value optimized out>)

at ../../../libraries/cxxtest/include/cxxtest/PsTestWrapper.h:80

#8 CxxTest::PsTestRunner::runAllTests (listener=<value optimized out>)

at ../../../libraries/cxxtest/include/cxxtest/PsTestWrapper.h:35

#9 0x00000000004179ef in runGui (argc=1, argv=<value optimized out>)

at ../../../libraries/cxxtest/include/cxxtest/PsTestWrapper.h:95

#10 run (argc=1, argv=<value optimized out>)

at ../../../libraries/cxxtest/include/cxxtest/Gui.h:172

#11 main (argc=1, argv=<value optimized out>)

---Type <return> to continue, or q <return> to quit---q

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...