2025-07-20 02:00 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003131Spring engineGeneralpublic2012-06-24 23:14
Reporterabma 
Assigned TojK 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
Product Version89.0 
Target VersionFixed in Version 
Summary0003131: SIGSEV in FileHandler.cpp:48
Description[f=0000000] [Sound] parsed 139 sounds from gamedata/sounds.lua
[f=0000000] Error: Segmentation fault (SIGSEGV) in spring 88.0.1-437-ga707aba release (OMP)
[f=0000000] Error: Stacktrace:
[f=0000000] Error: <0> /lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0) [0x7f6e2827ecb0]
[f=0000000] Error: <1> /usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZNSs6assignERKSs+0x1b) [0x7f6e25a24f9b]
[f=0000000] Error: <2> /usr/include/c++/4.6/bits/basic_string.h:288
[f=0000000] Error: <3> /home/abma/dev/spring/develop/rts/System/FileSystem/FileHandler.cpp:48
[f=0000000] Error: <4> /home/abma/dev/spring/develop/rts/System/Sound/Sound.cpp:567
[f=0000000] Error: <5> /home/abma/dev/spring/develop/rts/System/Sound/Sound.cpp:418
[f=0000000] Error: <6> /home/abma/dev/spring/develop/rts/System/Sound/Sound.cpp:134
[f=0000000] Error: <7> /home/abma/dev/spring/develop/rts/Game/Game.cpp:521
[f=0000000] Error: <8> /home/abma/dev/spring/develop/rts/Game/Game.cpp:453
[f=0000000] Error: <9> /home/abma/dev/spring/develop/rts/Game/LoadScreen.cpp:121
Additional Informationto reproduce: start zero-k 1.0.6.8 (rapid)
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0008836

abma (administrator)

/home/abma/dev/spring/develop/rts/Game/Game.cpp:521
521 chatSound = sound->GetSoundId("IncomingChat", false);

~0008837

abma (administrator)

thread apply all bt full:
http://pastebin.com/neV69fDJ


bt full:
#0 0x00007ffff4ecbf9b in std::string::assign(std::string const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#1 0x00000000009c5362 in operator= (__str=..., this=0x7fffffffd790) at /usr/include/c++/4.6/bits/basic_string.h:542
No locals.
#2 CFileHandler::TryReadContent (this=0x7fffffffd790, fileName=..., modes=...)
    at /home/abma/dev/spring/develop/rts/System/FileSystem/FileHandler.cpp:111
        c = <optimized out>
0000003 0x00000000009c545b in CFileHandler::CFileHandler (this=0x7fffffffd790, fileName=..., modes=...)
    at /home/abma/dev/spring/develop/rts/System/FileSystem/FileHandler.cpp:47
No locals.
0000004 0x0000000000a5195d in CSound::LoadSoundBuffer (this=<optimized out>, path=..., hardFail=false)
    at /home/abma/dev/spring/develop/rts/System/Sound/Sound.cpp:567
        file = {fileName = {static npos = <optimized out>,
            _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
              _M_p = 0x11143b8 ""}}, ifs = 0x0, fileBuffer = {<std::_Vector_base<unsigned char, std::allocator<unsigned char> >> = {
              _M_impl = {<std::allocator<unsigned char>> = {<__gnu_cxx::new_allocator<unsigned char>> = {<No data fields>}, <No data fields>}, _M_start = 0x0, _M_finish = 0x0, _M_end_of_storage = 0x0}}, <No data fields>}, filePos = 0, fileSize = -1}
        buf = <optimized out>
        buffer = {px = 0x1e34d40, pn = {pi_ = 0x7ffff4ee1ded}}
        success = <optimized out>
        ending = {static npos = <optimized out>,
          _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
            _M_p = 0x4 <Address 0x4 out of bounds>}}
        id = 0
---Type <return> to continue, or q <return> to quit---
0000005 0x0000000000a54e1a in CSound::MakeItemFromDef (this=0x12f6c80, itemDef=...)
    at /home/abma/dev/spring/develop/rts/System/Sound/Sound.cpp:418
        it = {_M_node = 0x2826c10}
        buffer = {px = 0x27f9514, pn = {pi_ = 0x7ffff4ecaa89}}
#6 0x0000000000a55286 in CSound::GetSoundId (this=0x12f6c80, name=..., hardFail=false)
    at /home/abma/dev/spring/develop/rts/System/Sound/Sound.cpp:134
        itemDefIt = {_M_node = 0x2826be0}
        lck = {m = 0x110e040, is_locked = true}
        it = {_M_node = 0x12f6ca0}
#7 0x000000000049fd22 in CGame::LoadDefs (this=0x1e33670) at /home/abma/dev/spring/develop/rts/Game/Game.cpp:521
        timer = {<BasicTimer> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, name = {static npos = <optimized out>,
              _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
                _M_p = 0x2709c48 "Game::LoadDefs (Sound)"}}, starttime = 1524}, <No data fields>}
#8 0x00000000004a73e8 in CGame::LoadGame (this=0x1e33670, mapName=...) at /home/abma/dev/spring/develop/rts/Game/Game.cpp:453
No locals.
#9 0x00000000004ef894 in CLoadScreen::Init (this=0x1b9ff50) at /home/abma/dev/spring/develop/rts/Game/LoadScreen.cpp:119
        mtCfg = <optimized out>
0000010 0x00000000004f006e in CLoadScreen::CreateInstance (mapName=..., modName=..., saveFile=0x0)
    at /home/abma/dev/spring/develop/rts/Game/LoadScreen.cpp:182
No locals.
#11 0x0000000000506e37 in CPreGame::UpdateClientNet (this=0x1b705e0) at /home/abma/dev/spring/develop/rts/Game/PreGame.cpp:292
        playerNum = <optimized out>
        inbuf = <optimized out>
        packet = {px = 0x1b83870, pn = {pi_ = 0x1c192f0}}
---Type <return> to continue, or q <return> to quit---
0000012 0x0000000000507692 in CPreGame::Update (this=0x1b705e0) at /home/abma/dev/spring/develop/rts/Game/PreGame.cpp:166
No locals.
0000013 0x0000000000991e15 in UpdateSim (ac=<optimized out>) at /home/abma/dev/spring/develop/rts/lib/gml/gml_base.h:40
No locals.
0000014 SpringApp::Update (this=<optimized out>) at /home/abma/dev/spring/develop/rts/System/SpringApp.cpp:934
        ret = 1
#15 0x0000000000997a52 in SpringApp::Run (this=0x7fffffffe3e0, argc=1, argv=<optimized out>)
    at /home/abma/dev/spring/develop/rts/System/SpringApp.cpp:1017
No locals.
#16 0x0000000000973c37 in MainFunc (argc=1, argv=0x7fffffffe758, ret=0x7fffffffe658) at /home/abma/dev/spring/develop/rts/System/Main.cpp:51
        app = {cmdline = 0x1167560, binaryName = {static npos = <optimized out>,
            _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
              _M_p = 0x1167ac8 "/var/tmp/home/local/spring/develop/bin/spring"}}}
#17 0x0000000000974217 in Run (argc=1, argv=0x7fffffffe758) at /home/abma/dev/spring/develop/rts/System/Main.cpp:62
        ret = -1
        err = <optimized out>
#18 0x00007ffff458076d in __libc_start_main (main=0x9742d0 <main(int, char**)>, argc=1, ubp_av=0x7fffffffe758, init=<optimized out>,
    fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe748) at libc-start.c:226
        result = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, -1862119176607696601, 4670368, 140737488349008, 0, 0, 1862119175780759847,
                1862102971954428199}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0xd5ab70, 0x7fffffffe758}, data = {prev = 0x0,
              cleanup = 0x0, canceltype = 14003056}}}
        not_first_call = <optimized out>
#19 0x00000000004743c9 in _start ()
---Type <return> to continue, or q <return> to quit---
No symbol table info available.

~0008838

jK (developer)

damn typos >_<
+Notes

-Issue History
Date Modified Username Field Change
2012-06-24 21:51 abma New Issue
2012-06-24 21:58 abma Note Added: 0008836
2012-06-24 22:02 abma Note Added: 0008837
2012-06-24 23:14 jK Note Added: 0008838
2012-06-24 23:14 jK Status new => resolved
2012-06-24 23:14 jK Resolution open => fixed
2012-06-24 23:14 jK Assigned To => jK
+Issue History