2025-07-21 01:58 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002105Spring engineGeneralpublic2010-09-15 00:13
Reporterhoijui 
Assigned Tohoijui 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionno change required 
Product Version 
Target VersionFixed in Version 
Summary0002105: SIGSEGV at start in current master
Descriptionrun in GDB, as otherwise there is no usable stack trace.

i guess one of the recent changes by zerver cause this. i remember master working fine here a few days ago. if required, i could bisect.

crashed here:
SDL_Surface *screen = SDL_SetVideoMode(screenWidth, screenHeight, 32, sdlflags);
with these values:
SDL_Surface *screen = SDL_SetVideoMode(1024, 768, 32, 18);
Additional InformationProgram received signal SIGSEGV, Segmentation fault.
0x00007ffff77db4ff in ?? () from //usr/lib64/opengl/nvidia/lib/libGL.so.1
(gdb) bt
#0 0x00007ffff77db4ff in ?? () from //usr/lib64/opengl/nvidia/lib/libGL.so.1
#1 0x00007ffff77e0048 in ?? () from //usr/lib64/opengl/nvidia/lib/libGL.so.1
#2 0x00007ffff77d3ff1 in glXCreateContext () from //usr/lib64/opengl/nvidia/lib/libGL.so.1
0000003 0x00007ffff7bb349b in ?? () from /usr/lib/libSDL-1.2.so.0
0000004 0x00007ffff7bb88a8 in ?? () from /usr/lib/libSDL-1.2.so.0
0000005 0x00007ffff7bb8a19 in ?? () from /usr/lib/libSDL-1.2.so.0
#6 0x00007ffff7ba89bd in SDL_SetVideoMode () from /usr/lib/libSDL-1.2.so.0
#7 0x0000000000dbe4b3 in SpringApp::SetSDLVideoMode (this=0x7fffeea3ad30) at /home/robin/Projects/spring/repos/master/rts/System/SpringApp.cpp:398
#8 0x0000000000dbf1dc in SpringApp::InitWindow (this=0x7fffeea3ad30, title=0x1add9c8 "Spring 0.82+.4") at /home/robin/Projects/spring/repos/master/rts/System/SpringApp.cpp:357
#9 0x0000000000dbf5bf in SpringApp::Initialize (this=0x7fffeea3ad30) at /home/robin/Projects/spring/repos/master/rts/System/SpringApp.cpp:176
0000010 0x0000000000dbfb4f in SpringApp::Run (this=0x7fffeea3ad30, argc=1, argv=0x7fffffffdb58) at /home/robin/Projects/spring/repos/master/rts/System/SpringApp.cpp:1166
#11 0x0000000000dee7b5 in MainFunc () at /home/robin/Projects/spring/repos/master/rts/System/Main.cpp:60
0000012 0x0000000000deed79 in boost::detail::thread_data<void (*)()>::run (this=0x1985860) at /usr/include/boost-1_41/boost/thread/detail/thread.hpp:56
0000013 0x00007ffff609b9c5 in thread_proxy () from /usr/lib/libboost_thread-mt-1_41.so.1.41.0
0000014 0x00007ffff7963507 in start_thread () from /lib/libpthread.so.0
#15 0x00007ffff456e28d in clone () from /lib/libc.so.6
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files
  • txt file icon infolog.txt (2,330 bytes) 2010-09-14 15:19 -
    LogOutput initialized.
    Spring 0.82+.4.0 (Debug)
    Build date/time: Sep 14 2010 14:46:46
    Available log subsystems: CollisionVolume, unit, VFS-detail, VFS, ArchiveScanner, Sound
    Enabled log subsystems: Sound
    Enable or disable log subsystems using the LogSubsystems configuration key
      or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
    using default configuration source "/home/userX/.springrc"
    [CMyMath::Init] CPU SSE mask: 888, flags:
    	SSE 1.0:  1,  SSE 2.0:  1
    	SSE 3.0:  1, SSSE 3.0:  0
    	SSE 4.1:  0,  SSE 4.2:  0
    	SSE 4.0A: 1,  SSE 5.0A: 0
    	using streflop SSE FP-math mode, CPU supports SSE instructions
    OS: Linux
    OS: 64bit native mode
    Adding /home/userX/Projects/spring/installs/cmake/bisecting/linux64/debug/ to directories
    Adding /home/userX/.spring/ to directories
    Skipping already added directory /home/userX/Projects/spring/installs/cmake/bisecting/linux64/debug/
    Using read-write data directory: /home/userX/Projects/spring/installs/cmake/bisecting/linux64/debug/
    Using read-only data directory: /home/userX/.spring/
    Scanning: /home/userX/.spring/maps
    Error opening /home/userX/.spring/maps/cityconflict.sd7: Archive not found
    Unable to open archive: /home/userX/.spring/maps/cityconflict.sd7
    Error opening /home/userX/.spring/maps/VoiVittuRemakeV2.sd7: Archive not found
    Unable to open archive: /home/userX/.spring/maps/VoiVittuRemakeV2.sd7
    Error opening /home/userX/.spring/maps/magnetic_Lands_V1.sd7: Archive not found
    Unable to open archive: /home/userX/.spring/maps/magnetic_Lands_V1.sd7
    Error opening /home/userX/.spring/maps/Daruga-v2.sd7: Archive not found
    Unable to open archive: /home/userX/.spring/maps/Daruga-v2.sd7
    Scanning: /home/userX/.spring/mods
    Scanning: /home/userX/.spring/packages
    Scanning: /home/userX/Projects/spring/installs/cmake/bisecting/linux64/debug/base
    Supported Video modes: 1280x1024, 1280x960, 1152x864, 1024x768, 960x720, 928x696, 896x672, 832x624, 800x600, 720x400, 700x525, 640x512, 640x480, 640x400, 640x350, 576x432, 512x384, 416x312, 400x300, 360x200, 320x240, 320x200, 320x175
    Segmentation fault (SIGSEGV) in spring 0.82+.4.0 (Debug)
    Stacktrace:
    ./spring() [0xe00c89]
    /lib/libc.so.6(+0x324d0) [0x7ff5c12ff4d0]
    //usr/lib64/opengl/nvidia/lib/libGL.so.1(+0x7e4ff) [0x7ff5c460e4ff]
    Translated Stacktrace:
    rts/System/Platform/Linux/CrashHandler.cpp:249
    ??:0
    ??:0
    
    txt file icon infolog.txt (2,330 bytes) 2010-09-14 15:19 +

-Relationships
+Relationships

-Notes

~0005502

zerver (reporter)

Seems to work on windows, both built with GCC and MSVC

~0005521

hoijui (reporter)

Last edited: 2010-09-14 22:34

i bisected. guilty commit is:
http://github.com/spring/spring/commit/90c6bc391f1c62f3f4a5f79ea28c862fede10daa

edit:
:O
i start spring through a shell script of mine. when using that, it crashes, when starting directly, it works!

script looks like:

export __GL_SINGLE_THREADED=1
spring

~0005527

zerver (reporter)

__GL_SINGLE_THREADED supposedly fixes buggy dynamic loader in linux if and only if the application is single threaded. Spring isn't exactly single threaded anymore.
+Notes

-Issue History
Date Modified Username Field Change
2010-09-11 19:50 hoijui New Issue
2010-09-12 17:04 zerver Note Added: 0005502
2010-09-14 14:44 hoijui Note Added: 0005521
2010-09-14 15:19 hoijui File Added: infolog.txt
2010-09-14 15:21 hoijui Note Edited: 0005521
2010-09-14 15:25 hoijui Note Edited: 0005521
2010-09-14 22:34 hoijui Note Edited: 0005521
2010-09-14 23:08 zerver Note Added: 0005527
2010-09-15 00:12 hoijui Priority high => normal
2010-09-15 00:13 hoijui Status new => resolved
2010-09-15 00:13 hoijui Resolution open => no change required
2010-09-15 00:13 hoijui Assigned To => hoijui
+Issue History