Package: gnomebaker
Version: 0.5.1-2
Severity: important
Tags: patch

(gdb) run
Starting program: /usr/bin/gnomebaker
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1224997184 (LWP 6852)]
GTK Accessibility Module initialized

GThread-ERROR **: GThread system may only be initialized once.
aborting...

Program received signal SIGABRT, Aborted.
[Switching to Thread -1224997184 (LWP 6852)]
0xb73157d7 in raise () from /lib/tls/libc.so.6
(gdb) thread apply all bt

Thread 1 (Thread -1224997184 (LWP 6852)):
#0  0xb73157d7 in raise () from /lib/tls/libc.so.6
#1  0xb731707b in abort () from /lib/tls/libc.so.6
#2  0xb7465250 in IA__g_logv (log_domain=<value optimized out>,
    log_level=G_LOG_LEVEL_ERROR,
    format=0xb7614ce4 "GThread system may only be initialized once.",
    args1=0xbfbe568c "\232Da�0\220\a\b`\t\a\b(W���(\005\b")
    at gmessages.c:497
#3  0xb7465289 in IA__g_log (log_domain=0x0, log_level=0, format=0x0)
    at gmessages.c:517
#4  0xb7614654 in g_thread_init (init=0x0) at gthread-impl.c:321
#5  0x080528cb in main ()

Gnomebaker aborts with the above message. gdb showed that the problem
originated in main() when calling g_thread_init(). I found on the internet
(http://mail.gnome.org/archives/gtk-app-devel-list/2002-December/msg00119.html)
a similar piece of code with one addition, which I then applied to the source,
which seemed to fix it.
In addition, trying it on another asymptomatic machine caused no evident
problems. I have no idea as to what the problem is or why this fixed it, but
the patch is attached for your consideration. I would be happy to provide more
information if necessary.

Thank you
-- 
Adonikam Virgo <[EMAIL PROTECTED]>

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages gnomebaker depends on:
ii  cdda2wav                  4:2.01+01a03-5 Creates WAV files from audio CDs
ii  cdrdao                    1:1.2.1-6      records CDs in Disk-At-Once (DAO)
ii  cdrecord                  4:2.01+01a03-5 command line CD writing tool
ii  libart-2.0-2              2.3.17-1       Library of functions for 2D graphi
ii  libatk1.0-0               1.11.4-2       The ATK accessibility toolkit
ii  libbonobo2-0              2.14.0-1       Bonobo CORBA interfaces library
ii  libbonoboui2-0            2.14.0-2       The Bonobo UI library
ii  libc6                     2.3.6-11       GNU C Library: Shared libraries
ii  libcairo2                 1.0.4-2        The Cairo 2D vector graphics libra
ii  libfontconfig1            2.3.2-5.1      generic font configuration library
ii  libgconf2-4               2.14.0-1       GNOME configuration database syste
ii  libglade2-0               1:2.5.1-2      library to load .glade files at ru
ii  libglib2.0-0              2.10.3-1       The GLib library of C routines
ii  libgnome-keyring0         0.4.9-1        GNOME keyring services library
ii  libgnome2-0               2.14.1-2       The GNOME 2 library - runtime file
ii  libgnomecanvas2-0         2.14.0-2       A powerful object-oriented display
ii  libgnomeui-0              2.14.1-1       The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0            2.14.1-2       GNOME virtual file-system (runtime
ii  libgstreamer0.8-0         0.8.12-1       Core GStreamer libraries, plugins,
ii  libgtk2.0-0               2.8.18-1       The GTK+ graphical user interface
ii  libice6                   1:1.0.0-3      X11 Inter-Client Exchange library
ii  liborbit2                 1:2.14.0-1     libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0             1.12.3-1       Layout and rendering of internatio
ii  libpopt0                  1.7-5          lib for parsing cmdline parameters
ii  libsm6                    1:1.0.0-4      X11 Session Management library
ii  libx11-6                  2:1.0.0-6      X11 client-side library
ii  libxcursor1               1.1.5.2-5      X cursor management library
ii  libxext6                  1:1.0.0-4      X11 miscellaneous extension librar
ii  libxi6                    1:1.0.0-5      X11 Input extension library
ii  libxinerama1              1:1.0.1-4      X11 Xinerama extension library
ii  libxml2                   2.6.24.dfsg-1  GNOME XML library
ii  libxrandr2                2:1.1.0.2-4    X11 RandR extension library
ii  libxrender1               1:0.9.0.2-4    X Rendering Extension client libra
ii  mkisofs                   4:2.01+01a03-5 Creates ISO-9660 CD-ROM filesystem
ii  zlib1g                    1:1.2.3-11     compression library - runtime

Versions of packages gnomebaker recommends:
ii  dvd+rw-tools                  6.1-2      DVD+-RW/R tools
ii  gstreamer0.8-flac             0.8.12-4   FLAC plugin for GStreamer
ii  gstreamer0.8-mad              0.8.12-4   MAD MPEG audio decoder plugin for
ii  gstreamer0.8-vorbis           0.8.12-4   Vorbis plugin for GStreamer

-- no debconf information
diff -urNad gnomebaker-0.5.1~/src/main.c gnomebaker-0.5.1/src/main.c
--- gnomebaker-0.5.1~/src/main.c        2006-06-05 22:30:27.000000000 +0100
+++ gnomebaker-0.5.1/src/main.c 2006-06-05 22:32:29.000000000 +0100
@@ -58,7 +58,7 @@
        g_option_context_free(context);
     if(error != NULL) g_error_free(error);   
     
-    g_thread_init(NULL);
+    if (!g_thread_supported ()) g_thread_init(NULL);
        gdk_threads_init();
        
        #ifdef ENABLE_NLS

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to