<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39990 >

Helge Hielscher wrote:
> The mandriva bug has been reported against 2.0.x, but 2.1.x crashes as
> well (freeciv-client-2.1.1-1mdv2008.1).
As reported in http://qa.mandriva.com/show_bug.cgi?id=33527#c17

# SDL_AUDIODRIVER="alsa" civclient
# And it will work fine. Actually, it is not even important that you use "alsa",
# you can write whatever you want there and the crash will go away.
SDL_AUDIODRIVER is not used anywhere in freeciv.  It's particularly
telling that it doesn't matter what value is put in the environment.

The two reported crashes show:

#1  0x4cbe33f2 in g_slice_alloc () from /usr/lib/libglib-2.0.so.0
#10 0x4e83ce91 in IA__gtk_parse_args (argc=0xbfa91440, argv=0xbfa91308) at
#11 0x4e83cf13 in IA__gtk_init_check (argc=0xbfa91440, argv=0xbfa91308) at
#12 0x4e83cf53 in IA__gtk_init (argc=0xbfa91440, argv=0xbfa91308) at
#13 0x080f9c3e in ui_main (argc=1, argv=0xbfa91724) at gui_main.c:1054

#1  0x4e1dc382 in g_slice_alloc () from /usr/lib/libglib-2.0.so.0
#10 0xb7cb0f21 in gtk_parse_args () from /usr/lib/libgtk-x11-2.0.so.0
#11 0xb7cb0fa3 in gtk_init_check () from /usr/lib/libgtk-x11-2.0.so.0
#12 0xb7cb0fe3 in gtk_init () from /usr/lib/libgtk-x11-2.0.so.0
#13 0x0810b093 in gtk_main_quit ()
#14 0x08058351 in gtk_main_quit ()
#15 0x4c56cf90 in __libc_start_main () from /lib/i686/libc.so.6
#16 0x080529b1 in gtk_main_quit ()

Actually, I cannot fathom the latter, since it isn't even in freeciv!

Our code is:

   /* the locale has already been set in init_nls() and the Win32-specific
    * locale logic in gtk_init() causes problems with zh_CN (see PR#39475) */

   /* GTK withdraw gtk options. Process GTK arguments */
   gtk_init(&argc, &argv);

If you really have no arguments to freeciv itself, then gtk_init() isn't
processing any arguments here.  I'm failing to understand what's wrong
with freeciv?  Isn't this a libgtk bug?

Google shows a boatload of reported bugs with SDL_AUDIODRIVER, and many of
them with =alsa going back to 2002.

Freeciv-dev mailing list

Reply via email to