malloc error in GTK3 apps

Fabrice DELENTE delentef@gmail.com
Thu Mar 22 21:31:00 GMT 2012


Hello.

This is on a linux 3.2.11 kernel.

After resizing my partitions on my hard drive, including my swap zone,
my gtk3 apps stopped working... I don't know if it's the cause, but is
was concomitant.

When I try running e.g. notification-daemon, I get:

# gdb /usr/libexec/notification-daemon 
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/libexec/notification-daemon...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/libexec/notification-daemon 
[Thread debugging using libthread_db enabled]
notification-daemon: 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.
0xb7fdf424 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fdf424 in __kernel_vsyscall ()
#1  0xb719bced in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:67
#2  0xb719d588 in abort () at abort.c:93
#3  0xb71db8c9 in __malloc_assert (assertion=<value optimized out>, file=<value optimized out>, 
    line=3096, function=0xb72adbf2 "sYSMALLOc") at malloc.c:351
#4  0xb71de038 in sYSMALLOc (av=0xb72d63a0, bytes=26) at malloc.c:3093
#5  _int_malloc (av=0xb72d63a0, bytes=26) at malloc.c:4747
#6  0xb71e1006 in __libc_calloc (n=26, elem_size=1) at malloc.c:4065
#7  0xb7153206 in XIQueryDevice (dpy=0x80740a8, deviceid=0, ndevices_return=0xbfffea78)
    at XIQueryDevice.c:85
#8  0xb7b1ad4c in gdk_x11_device_manager_xi2_constructed (object=0x806c7b0)
    at gdkdevicemanager-xi2.c:511
#9  0xb757332b in g_object_newv (object_type=134762120, n_parameters=4, parameters=0x80812e8)
    at gobject.c:1741
#10 0xb7573a81 in g_object_new_valist (object_type=134762120, 
    first_property_name=0xb7b3ef7f "display", var_args=<value optimized out>) at gobject.c:1830
#11 0xb7573ba0 in g_object_new (object_type=134762120, first_property_name=0xb7b3ef7f "display")
    at gobject.c:1545
#12 0xb7b18935 in _gdk_x11_device_manager_new (display=0x807e810) at gdkdevicemanager-x11.c:64
#13 0xb7b1d43e in _gdk_x11_display_open (display_name=0x0) at gdkdisplay-x11.c:1276
#14 0xb7b1b173 in gdk_x11_display_manager_open_display (manager=0x805a530, name=0x0)
    at gdkdisplaymanager-x11.c:53
#15 0xb7af9a43 in gdk_display_manager_open_display (manager=0x805a530, name=0x0)
    at gdkdisplaymanager.c:381
#16 0xb7af8e55 in gdk_display_open (display_name=0x0) at gdkdisplay.c:1784
#17 0xb7af10ce in gdk_display_open_default_libgtk_only () at gdk.c:372
#18 0xb7cd21a5 in gtk_init_check (argc=0xbfffee50, argv=0xbfffee54) at gtkmain.c:995
#19 0xb7cd21e0 in gtk_init (argc=0xbfffee50, argv=0xbfffee54) at gtkmain.c:1047
#20 0x08053638 in ?? ()
#21 0xb7187f2b in __libc_start_main (main=0x8053610, argc=1, ubp_av=0xbfffeef4, init=0x8053730, 
    fini=0x8053790, rtld_fini=0xb7feee60 <_dl_fini>, stack_end=0xbfffeeec) at libc-start.c:226
#22 0x0804d1a1 in ?? ()
(gdb) 

I recompiled glibc-2.14.1, gtk+-3.3.18 and even libXi-1.4.2, but no luck there...

Any hint? Thanks!

-- 
F. Delente



More information about the Libc-help mailing list