View Issue Details

IDProjectCategoryView StatusLast Update
0002493Spring engineGeneralpublic2011-06-27 12:29
Reporterabma Assigned Tozerver  
PrioritynormalSeverityminorReproducibilitysometimes
Status resolvedResolutionfixed 
Fixed in Version0.82.7+git 
Summary0002493: (master) deadlock/endless loop on start
Description(gdb) bt full
#0 pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
No locals.
#1 0x00007f912e509070 in boost::thread::join() () from /usr/lib/libboost_thread.so.1.42.0
No symbol table info available.
#2 0x0000000000924e42 in Watchdog::Uninstall ()
    at /home/abma/dev/spring/master/rts/System/Platform/Watchdog.cpp:284
        lock = {m = 0x1021ac0, is_locked = true}
0000003 0x000000000092cdab in SpringApp::Run (this=0x7ffff5ce1510, argc=1, argv=0x7ffff5ce1848)
    at /home/abma/dev/spring/master/rts/System/SpringApp.cpp:1165
No locals.
0000004 0x000000000090d9a7 in MainFunc (argc=1, argv=0x7ffff5ce1848, ret=0x7ffff5ce1748)
    at /home/abma/dev/spring/master/rts/System/Main.cpp:55
        app = {cmdline = 0x26fbf70, lastRequiredDraw = 0, static ogc = 0x0}
0000005 0x000000000090ddd7 in Run (argc=1, argv=0x7ffff5ce1848)
    at /home/abma/dev/spring/master/rts/System/Main.cpp:66
        ret = -1
        err = <value optimized out>
#6 0x00007f912ccf7eff in __libc_start_main (main=0x47dad0 <main(int, char**)>, argc=1,
    ubp_av=0x7ffff5ce1848, init=<value optimized out>, fini=<value optimized out>,
    rtld_fini=<value optimized out>, stack_end=0x7ffff5ce1838) at libc-start.c:226
        result = <value optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, 107166854222938408, 4778176,
                140737317312576, 0, 0, -107153783816486616, -117407838693523160},
---Type <return> to continue, or q <return> to quit---
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0xc19260, 0x7ffff5ce1848}, data = {
              prev = 0x0, cleanup = 0x0, canceltype = 12685920}}}
        not_first_call = <value optimized out>
#7 0x000000000048e8e9 in _start ()
No symbol table info available.
Additional Informationhappens when starting and instantly selecting quit
TagsNo tags attached.
Attached Files
infolog.txt (Attachment missing)
Checked infolog.txt for Errors

Relationships

related to 0002494 resolvedzerver (master) hang detection triggered when scanning for new files 

Activities

abma

2011-06-23 12:32

administrator   ~0006803

Last edited: 2011-06-23 12:35

is reproduceable, seems to happen when hang-detection is triggered twice at startup.

to easy reproduce, set HangTimeout=1 and rm ~/.spring/cache/ArchiveCache.lua

zerver

2011-06-26 03:26

reporter   ~0006809

Some info

Sim thread hangs in SDL_Delay()
Main thread hangs in SDL_GL_SwapBuffers()
Hang Detector is making a trace for the main thread, and hangs in GlobalAlloc

Probable conclusion: SDL uses GlobalAlloc as well, and thus this is an allocator related deadlock. Possible solution would be to preallocate all, try another allocator such as VirtualAlloc or HeapAlloc, or make an allocation attempt in a thread and abort the trace attempt if it does not return within reasonable time.

zerver

2011-06-27 12:29

reporter   ~0006814

https://github.com/spring/spring/commit/fb883b17302e84c3e256416bf1b00e843a918102

Issue History

Date Modified Username Field Change
2011-06-22 15:03 abma New Issue
2011-06-22 15:03 abma File Added: infolog.txt
2011-06-22 15:03 abma Graphics Card => unknown
2011-06-22 15:05 abma Relationship added related to 0002494
2011-06-22 15:05 abma Summary (master) deadlock on start => (master) deadlock/endless loop on start
2011-06-23 05:10 abma Reproducibility always => sometimes
2011-06-23 12:32 abma Note Added: 0006803
2011-06-23 12:32 abma Note Edited: 0006803
2011-06-23 12:35 abma Note Edited: 0006803
2011-06-23 12:35 abma Note Edited: 0006803
2011-06-26 03:26 zerver Note Added: 0006809
2011-06-27 02:04 zerver Status new => assigned
2011-06-27 02:04 zerver Assigned To => zerver
2011-06-27 12:29 zerver Note Added: 0006814
2011-06-27 12:29 zerver Status assigned => resolved
2011-06-27 12:29 zerver Fixed in Version => 0.82.7+git
2011-06-27 12:29 zerver Resolution open => fixed