Malloc error in GTK 3 apps
- From: Fabrice DELENTE <delentef gmail com>
- To: gtk-list gnome org
- Subject: Malloc error in GTK 3 apps
- Date: Wed, 21 Mar 2012 13:39:46 +0100
Hello.
I have compiled and installed gtk+-3.3.18 on my system (based on
Slackware 13.37)
I have both gtk+-2 and gtk+-3 installed on my system.
All my gtk+-2 apps (gimp, firefox, etc.) work without a hitch.
However, for gtk-3, even though everything compiles ok, when I start
an app under gdb I get:
root@slick:~/test# gdb gtkpod
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-slackware-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/gtkpod...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/gtkpod
/usr/bin/gtkpod: /usr/lib/libxml2.so.2: no version information available (required by /usr/lib/libgtkpod.so.1)
/usr/bin/gtkpod: /usr/lib/libxml2.so.2: no version information available (required by /usr/lib/libgpod.so.4)
/usr/bin/gtkpod: /usr/lib/libxml2.so.2: no version information available (required by /usr/lib/libgpod.so.4)
/usr/bin/gtkpod: /usr/lib/libxml2.so.2: no version information available (required by /usr/lib/libplist.so.1)
[Thread debugging using libthread_db enabled]
gtkpod: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
Program received signal SIGABRT, Aborted.
0xb76602d7 in raise () from /lib/libc.so.6
(gdb) bt
#0 0xb76602d7 in raise () from /lib/libc.so.6
#1 0xb7661cee in abort () from /lib/libc.so.6
#2 0xb76a60d4 in _int_malloc () from /lib/libc.so.6
#3 0xb76a9d82 in calloc () from /lib/libc.so.6
#4 0xb6eb36af in XIQueryDevice () from /usr/lib/libXi.so.6
#5 0xb7a7ad4c in gdk_x11_device_manager_xi2_constructed (object=0x806d7b0)
at gdkdevicemanager-xi2.c:511
#6 0xb78d232b in g_object_newv (object_type=134633472, n_parameters=4, parameters=0x80822a0)
at gobject.c:1741
#7 0xb78d2a81 in g_object_new_valist (object_type=134633472,
first_property_name=0xb7a9ef7f "display", var_args=<value optimized out>) at gobject.c:1830
#8 0xb78d2ba0 in g_object_new (object_type=134633472, first_property_name=0xb7a9ef7f "display")
at gobject.c:1545
#9 0xb7a78935 in _gdk_x11_device_manager_new (display=0x807f810) at gdkdevicemanager-x11.c:64
#10 0xb7a7d43e in _gdk_x11_display_open (display_name=0x0) at gdkdisplay-x11.c:1276
#11 0xb7a7b173 in gdk_x11_display_manager_open_display (manager=0x805b430, name=0x0)
at gdkdisplaymanager-x11.c:53
#12 0xb7a59a43 in gdk_display_manager_open_display (manager=0x805b430, name=0x0)
at gdkdisplaymanager.c:381
#13 0xb7a58e55 in gdk_display_open (display_name=0x0) at gdkdisplay.c:1784
#14 0xb7a510ce in gdk_display_open_default_libgtk_only () at gdk.c:372
#15 0xb7c331a5 in gtk_init_check (argc=0xbfffee70, argv=0xbfffee74) at gtkmain.c:995
#16 0xb7c331e0 in gtk_init (argc=0xbfffee70, argv=0xbfffee74) at gtkmain.c:1047
#17 0x08053b1d in main ()
(gdb)
I guess on of my libraries has a problem with malloc, but which one?
Thanks.
--
F. Delente
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]