Crash on exit



Hello,

I am starting to develop PHP bindings for GTK+ and I am having a problem
where a crash occurs on shutdown. Basically, the bindings code is in an
.so library which gets loaded by PHP. The gtk_init_check() works, but
the core file says this:

(gdb) bt
#0  _dl_lookup_symbol (undef_name=0x4035f681 "free", ref=0xbffff594, symbol_scope=0x818b566, 
    reference_name=0x818b390 "/usr/X11/lib/libXext.so.6", reloc_type=7) at do-lookup.h:82
#1  0x4000a823 in fixup (l=0x818b3b0, reloc_offset=1968265216) at
dl-runtime.c:88
#2  0x4000a970 in _dl_runtime_resolve () at dl-runtime.c:182
#3  0x4035b959 in XInputClose () from /usr/X11/lib/libXi.so.6
#4  0x40385bae in XCloseDisplay () from /usr/X11/lib/libX11.so.6
#5  0x4030a143 in gdk_exit_func () at gdk.c:1007
#6  0x400f425a in exit (status=0) at exit.c:57
#7  0x400eb9d1 in __libc_start_main () at
../sysdeps/generic/libc-start.c:92

I've double-checked and the argc/argv passed to gtk_init_check() are
correct. What could be the source of this problem?

-Andrei
* The future has arrived, it's just not evenly distributed. -W. Gibson *




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]