Bug#667596: gtk_init gives bus error on mipsel

Enrico Tassi gareuselesinge at debian.org
Thu Apr 5 08:41:41 UTC 2012


Package: libgtk-3-0
Version: 3.2.3-1
Severity: important

It seems gtk is completely broken on mipsel. lua-lgi FTBFS on mipsel, and 
its author (Pavel Holejšovský) figured out that it is enough to call gtk_init
to get a bus error.

Interestingly enough all gtk packages are installed on eder, so maybe someone
is already debugging this.  But I could not find an open bug report on the
subject.

$ ssh eder.debian.org
$ dchroot unstable
$ cat > a.c
#include <gtk/gtk.h>
int main (int argc, char **argv)
{
  gtk_init (&argc, &argv);
  return 0;
}

$ gcc a.c -o gtktest `pkg-config --cflags --libs gtk+-3.0`
$ ulimit -c unlimited
$ xvfb-run ./gtktest 
Bus error (core dumped)
$ gdb ./gtktest
...
bt
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/mipsel-linux-gnu/libthread_db.so.1".
Core was generated by `./gtktest'.
Program terminated with signal 10, Bus error.
#0  0x2bbe6cb0 in copy_classes (to=<optimized out>, from=<optimized out>, 
    nclasses=<optimized out>) at ../../src/XExtInt.c:1539
1539	../../src/XExtInt.c: No such file or directory.
(gdb) bt
#0  0x2bbe6cb0 in copy_classes (to=<optimized out>, from=<optimized out>, 
    nclasses=<optimized out>) at ../../src/XExtInt.c:1539
#1  0x2bbe845c in XIQueryDevice (dpy=0xb71140, deviceid=<optimized out>, 
    ndevices_return=<optimized out>) at ../../src/XIQueryDevice.c:90
#2  0x2b1511c4 in gdk_x11_device_manager_xi2_constructed (
    object=<optimized out>)
    at /build/buildd-gtk+3.0_3.2.3-1-mipsel-WwT23O/gtk+3.0-3.2.3/./gdk/x11/gdkdevicemanager-xi2.c:414
#3  0x2b62e048 in g_object_newv ()
   from /usr/lib/mipsel-linux-gnu/libgobject-2.0.so.0
#4  0x2b62ef88 in g_object_new_valist ()
   from /usr/lib/mipsel-linux-gnu/libgobject-2.0.so.0
#5  0x2b62f1dc in g_object_new ()
   from /usr/lib/mipsel-linux-gnu/libgobject-2.0.so.0
#6  0x2b14ef10 in _gdk_x11_device_manager_new (display=0xb87800)
    at /build/buildd-gtk+3.0_3.2.3-1-mipsel-WwT23O/gtk+3.0-3.2.3/./gdk/x11/gdkdevicemanager-x11.c:66
#7  0x2b154a6c in _gdk_x11_display_open (display_name=<optimized out>)
    at /build/buildd-gtk+3.0_3.2.3-1-mipsel-WwT23O/gtk+3.0-3.2.3/./gdk/x11/gdkdisplay-x11.c:1226
#8  0x2b152764 in gdk_x11_display_manager_open_display (manager=0xb60930, 
    name=<optimized out>)
    at /build/buildd-gtk+3.0_3.2.3-1-mipsel-WwT23O/gtk+3.0-3.2.3/./gdk/x11/gdkdi---Type <return> to continue, or q <return> to quit---
splaymanager-x11.c:55
#9  0x2adf4cc4 in gtk_init_check (argc=<optimized out>, argv=<optimized out>)
    at /build/buildd-gtk+3.0_3.2.3-1-mipsel-WwT23O/gtk+3.0-3.2.3/./gtk/gtkmain.c:1136
#10 0x2adf4cf8 in gtk_init (argc=<optimized out>, argv=<optimized out>)
    at /build/buildd-gtk+3.0_3.2.3-1-mipsel-WwT23O/gtk+3.0-3.2.3/./gtk/gtkmain.c:1188
#11 0x004009ac in main ()

cheers
-- 
Enrico Tassi





More information about the pkg-gnome-maintainers mailing list