2025-07-18 14:59 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001063Spring engineLinuxpublic2008-10-06 20:11
Reporterandre 
Assigned Tozerver 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
Product Version0.76b1+svn 
Target VersionFixed in Version0.76b1+svn 
Summary0001063: Segmentation Fault at every Start
DescriptionWhen i try to start spring i get a black screen for less than a second and the console output just says "Segmentation Fault"

What i did:

svn co https://spring.clan-sy.com/svn/spring/trunk/
cd trunk
scons -j 4 configure
scons -j 4
cd game
./spring

strace output as attachment

(this also happens when i delete the .springrc File in my Home-Directory or when i change the data-dir)
Additional InformationSystem:
Core2Quad Q6600 (no OC)
2GB OCZ DDR2
8800GT
Kubuntu 8.04
Kernel: 2.6.24-19-generic
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files
  • txt file icon strace.txt (475,198 bytes) 2008-10-02 17:34
  • txt file icon gdb.txt (828 bytes) 2008-10-05 17:18 -
    gdb ./spring
    GNU gdb 6.8-debian
    Copyright (C) 2008 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 "i486-linux-gnu"...
    (gdb) run
    Starting program: /home/andre/src/svn-spring/game/spring
    [Thread debugging using libthread_db enabled]
    warning: Lowest section in /usr/lib/libicudata.so.38 is .hash at 000000b4
    [New Thread 0xb5a656e0 (LWP 30097)]
    [New Thread 0xb58dab90 (LWP 30106)]
    
    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0xb5a656e0 (LWP 30097)]
    0x081cb73f in SpringApp::SetSDLVideoMode ()
    Current language:  auto; currently asm
    (gdb)
    txt file icon gdb.txt (828 bytes) 2008-10-05 17:18 +
  • ? file icon .springrc (1,295 bytes) 2008-10-05 17:21

-Relationships
+Relationships

-Notes

~0002665

imbaczek (reporter)

Last edited: 2008-10-02 21:36

seems that something is wrong with your /usr/local/share/games/spring/base/spring/.

no idea if that's the reason, though.

~0002666

andre (reporter)

i didn't use scons install, just started it out of the directory when scons was finished

~0002668

Auswaschbar (reporter)

Please append the output when you run spring through gdb here.

~0002685

andre (reporter)

gdb output is appended, when i run spring through gdb a black window of spring stays open, even after the seg fault output in the console. the window disapperas first when i type "quit" into gdb.

i also appended my .springrc file.

~0002686

zerver (reporter)

Could it be the issue with GML not working with Linux yet?

try scons configure gml=no

~0002687

Kloot (developer)

Yes, that is the problem:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1232468256 (LWP 10709)]
0x084d5149 in SpringApp::SetSDLVideoMode (this=0xbff4de90) at rts/lib/gml/gmlcls.h:151
151 speedy_tls_get_int32(0, 0, 4, val);
(gdb) bt
#0 0x084d5149 in SpringApp::SetSDLVideoMode (this=0xbff4de90) at rts/lib/gml/gmlcls.h:151
#1 0x084d5b46 in SpringApp::InitWindow (this=0xbff4de90, title=0x899e664 "Spring 0.76b1+") at rts/System/SpringApp.cpp:379
#2 0x084d5c6a in SpringApp::Initialize (this=0xbff4de90) at rts/System/SpringApp.cpp:230
0000003 0x084d6d98 in SpringApp::Run (this=0xbff4de90, argc=1, argv=0xbff4df74) at rts/System/SpringApp.cpp:936
0000004 0x084f4663 in Run (argc=1, argv=0xbff4df74) at rts/System/Main.cpp:85
0000005 0x084f46b2 in main (argc=4, argv=0xc3b41ee) at rts/System/Main.cpp:101

~0002688

andre (reporter)

yes, that was the problem. thx

i think it can be closed

~0002691

zerver (reporter)

If you have the time, try updating from SVN now and see if it works with gml=yes.
I don't have Linux, so I need feedback to solve this issue.

~0002692

andre (reporter)

yes, now it is starting with gml=yes (rev. 6560)

~0002693

zerver (reporter)

That's great! Do you have a dual/quad core CPU?

~0002696

andre (reporter)

Yes, Quadcore CPU
+Notes

-Issue History
Date Modified Username Field Change
2008-10-02 17:34 andre New Issue
2008-10-02 17:34 andre File Added: strace.txt
2008-10-02 21:35 imbaczek Note Added: 0002665
2008-10-02 21:36 imbaczek Note Edited: 0002665
2008-10-02 22:54 andre Note Added: 0002666
2008-10-03 15:04 Auswaschbar Note Added: 0002668
2008-10-05 17:18 andre File Added: gdb.txt
2008-10-05 17:20 andre Note Added: 0002685
2008-10-05 17:21 andre File Added: .springrc
2008-10-05 18:37 zerver Note Added: 0002686
2008-10-05 19:24 Kloot Note Added: 0002687
2008-10-05 20:02 andre Note Added: 0002688
2008-10-05 21:14 zerver Note Added: 0002691
2008-10-05 21:58 andre Note Added: 0002692
2008-10-05 23:21 zerver Note Added: 0002693
2008-10-06 12:25 andre Note Added: 0002696
2008-10-06 20:11 zerver Status new => resolved
2008-10-06 20:11 zerver Fixed in Version => 0.76b1+svn
2008-10-06 20:11 zerver Resolution open => fixed
2008-10-06 20:11 zerver Assigned To => zerver
+Issue History