Debugging tipps anyone?

Michael Schwendt fedora at wir-sind-cool.org
Wed Jun 15 17:41:27 UTC 2005


On Tue, 14 Jun 2005 12:16:38 +0200, Michael Schwendt wrote:

> This is the result of last night's attempt at testing whether an updated
> version of "wesnoth" 0.9.2 (Fedora Extras) would seem to work with FC4.
> Clicking some buttons in its network related menus or connecting to the
> official server lead to this fully reproducible crash:
> 
>   Program received signal SIGSEGV, Segmentation fault.
>   [Switching to Thread 54066096 (zombie)]
>   0x00a353a8 in ?? ()
>   (gdb) bt
>   #0  0x00a353a8 in ?? ()
>   #1  0x0026ab7a in __nptl_deallocate_tsd () from /lib/libpthread.so.0
>   #2  0x0026bb8e in start_thread () from /lib/libpthread.so.0
>   #3  0x00c79dee in clone () from /lib/libc.so.6
>   (gdb) t
>   [Current thread is 4 (Thread 54066096 (zombie))]
> 
> It's not reproducible with FC3.
> 
> Backtraces for the threads (attached) don't look suspicious IMO. Adding
> more debuginfo packages didn't give more detailed output. Two other things
> I tried last night was to build without -O2 and build SDL with default optflags
> instead of -O3. No change.
> 
> Suggestions, ideas, or hints much appreciated.

It appears that the first version of wesnoth (0.8.6), which introduced SDL
based threads for networking functions, and all newer versions cause
segfaults on FC4. When a thread function is asked to return (e.g. prior to
SDL_ThreadWait), a crash as above is the result as soon as it terminates.
A simple SDL thread test does not show such symptoms. Something's special
in the context of wesnoth.

-- 
Fedora Core release 4 (Stentz) - Linux 2.6.11-1.1369_FC4
loadavg: 2.72 2.46 2.33




More information about the devel mailing list