Jump to content
Sign in to follow this  

bug in tests

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:


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

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this