Bug#658845: /usr/bin/glade-previewer: glade-previewer crashes

Michal Suchanek michal.suchanek at ruk.cuni.cz
Mon Feb 6 12:11:23 UTC 2012


Package: glade
Version: 3.10.2-1
Severity: normal
File: /usr/bin/glade-previewer


Hello,

calling glade-previewer with incorrect arguments crashes.

Running in vlagrind shows accessing unallocated memory and the usage message is printed correctly.

$ valgrind  --track-origins=yes glade-previewer Unsaved\ 1.glade 
==29821== Memcheck, a memory error detector
==29821== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==29821== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==29821== Command: glade-previewer Unsaved\ 1.glade
==29821== 
Gtk-Message: Failed to load module "canberra-gtk-module"
==29821== Invalid write of size 4
==29821==    at 0x99E9D4C: ??? (in /usr/lib/libXi.so.6.1.0)
==29821==    by 0x99EC912: XIQueryDevice (in /usr/lib/libXi.so.6.1.0)
==29821==    by 0x624928A: gdk_x11_device_manager_xi2_constructed (gdkdevicemanager-xi2.c:414)
==29821==    by 0x5737BE2: g_object_newv (gobject.c:1521)
==29821==    by 0x57384C5: g_object_new_valist (gobject.c:1610)
==29821==    by 0x57387D3: g_object_new (gobject.c:1325)
==29821==    by 0x6247A11: _gdk_x11_device_manager_new (gdkdevicemanager-x11.c:78)
==29821==    by 0x624BED2: _gdk_x11_display_open (gdkdisplay-x11.c:1226)
==29821==    by 0x624A37F: gdk_x11_display_manager_open_display (gdkdisplaymanager-x11.c:55)
==29821==    by 0x522690B: post_parse_hook (gtkmain.c:908)
==29821==    by 0x59C5A7F: g_option_context_parse (goption.c:1987)
==29821==    by 0x5226D65: gtk_init_with_args (gtkmain.c:1047)
==29821==  Address 0xbc2cfa4 is 0 bytes after a block of size 452 alloc'd
==29821==    at 0x4C2779D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==29821==    by 0x99EC8FC: XIQueryDevice (in /usr/lib/libXi.so.6.1.0)
==29821==    by 0x624928A: gdk_x11_device_manager_xi2_constructed (gdkdevicemanager-xi2.c:414)
==29821==    by 0x5737BE2: g_object_newv (gobject.c:1521)
==29821==    by 0x57384C5: g_object_new_valist (gobject.c:1610)
==29821==    by 0x57387D3: g_object_new (gobject.c:1325)
==29821==    by 0x6247A11: _gdk_x11_device_manager_new (gdkdevicemanager-x11.c:78)
==29821==    by 0x624BED2: _gdk_x11_display_open (gdkdisplay-x11.c:1226)
==29821==    by 0x624A37F: gdk_x11_display_manager_open_display (gdkdisplaymanager-x11.c:55)
==29821==    by 0x522690B: post_parse_hook (gtkmain.c:908)
==29821==    by 0x59C5A7F: g_option_context_parse (goption.c:1987)
==29821==    by 0x5226D65: gtk_init_with_args (gtkmain.c:1047)
==29821== 
==29821== Invalid write of size 4
==29821==    at 0x99E9D52: ??? (in /usr/lib/libXi.so.6.1.0)
==29821==    by 0x99EC912: XIQueryDevice (in /usr/lib/libXi.so.6.1.0)
==29821==    by 0x624928A: gdk_x11_device_manager_xi2_constructed (gdkdevicemanager-xi2.c:414)
==29821==    by 0x5737BE2: g_object_newv (gobject.c:1521)
==29821==    by 0x57384C5: g_object_new_valist (gobject.c:1610)
==29821==    by 0x57387D3: g_object_new (gobject.c:1325)
==29821==    by 0x6247A11: _gdk_x11_device_manager_new (gdkdevicemanager-x11.c:78)
==29821==    by 0x624BED2: _gdk_x11_display_open (gdkdisplay-x11.c:1226)
==29821==    by 0x624A37F: gdk_x11_display_manager_open_display (gdkdisplaymanager-x11.c:55)
==29821==    by 0x522690B: post_parse_hook (gtkmain.c:908)
==29821==    by 0x59C5A7F: g_option_context_parse (goption.c:1987)
==29821==    by 0x5226D65: gtk_init_with_args (gtkmain.c:1047)
==29821==  Address 0xbc2cfa8 is 4 bytes after a block of size 452 alloc'd
==29821==    at 0x4C2779D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==29821==    by 0x99EC8FC: XIQueryDevice (in /usr/lib/libXi.so.6.1.0)
==29821==    by 0x624928A: gdk_x11_device_manager_xi2_constructed (gdkdevicemanager-xi2.c:414)
==29821==    by 0x5737BE2: g_object_newv (gobject.c:1521)
==29821==    by 0x57384C5: g_object_new_valist (gobject.c:1610)
==29821==    by 0x57387D3: g_object_new (gobject.c:1325)
==29821==    by 0x6247A11: _gdk_x11_device_manager_new (gdkdevicemanager-x11.c:78)
==29821==    by 0x624BED2: _gdk_x11_display_open (gdkdisplay-x11.c:1226)
==29821==    by 0x624A37F: gdk_x11_display_manager_open_display (gdkdisplaymanager-x11.c:55)
==29821==    by 0x522690B: post_parse_hook (gtkmain.c:908)
==29821==    by 0x59C5A7F: g_option_context_parse (goption.c:1987)
==29821==    by 0x5226D65: gtk_init_with_args (gtkmain.c:1047)
==29821== 
==29821== Invalid read of size 4
==29821==    at 0x6248E34: translate_device_classes (gdkdevicemanager-xi2.c:207)
==29821==    by 0x62490E6: add_device (gdkdevicemanager-xi2.c:296)
==29821==    by 0x62492C0: gdk_x11_device_manager_xi2_constructed (gdkdevicemanager-xi2.c:424)
==29821==    by 0x5737BE2: g_object_newv (gobject.c:1521)
==29821==    by 0x57384C5: g_object_new_valist (gobject.c:1610)
==29821==    by 0x57387D3: g_object_new (gobject.c:1325)
==29821==    by 0x6247A11: _gdk_x11_device_manager_new (gdkdevicemanager-x11.c:78)
==29821==    by 0x624BED2: _gdk_x11_display_open (gdkdisplay-x11.c:1226)
==29821==    by 0x624A37F: gdk_x11_display_manager_open_display (gdkdisplaymanager-x11.c:55)
==29821==    by 0x522690B: post_parse_hook (gtkmain.c:908)
==29821==    by 0x59C5A7F: g_option_context_parse (goption.c:1987)
==29821==    by 0x5226D65: gtk_init_with_args (gtkmain.c:1047)
==29821==  Address 0xbc2cfa4 is 0 bytes after a block of size 452 alloc'd
==29821==    at 0x4C2779D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==29821==    by 0x99EC8FC: XIQueryDevice (in /usr/lib/libXi.so.6.1.0)
==29821==    by 0x624928A: gdk_x11_device_manager_xi2_constructed (gdkdevicemanager-xi2.c:414)
==29821==    by 0x5737BE2: g_object_newv (gobject.c:1521)
==29821==    by 0x57384C5: g_object_new_valist (gobject.c:1610)
==29821==    by 0x57387D3: g_object_new (gobject.c:1325)
==29821==    by 0x6247A11: _gdk_x11_device_manager_new (gdkdevicemanager-x11.c:78)
==29821==    by 0x624BED2: _gdk_x11_display_open (gdkdisplay-x11.c:1226)
==29821==    by 0x624A37F: gdk_x11_display_manager_open_display (gdkdisplaymanager-x11.c:55)
==29821==    by 0x522690B: post_parse_hook (gtkmain.c:908)
==29821==    by 0x59C5A7F: g_option_context_parse (goption.c:1987)
==29821==    by 0x5226D65: gtk_init_with_args (gtkmain.c:1047)
==29821== 
Either --listen or --filename must be specified.
Usage:
  glade-previewer [OPTION...] - previews a glade UI definition

Help Options:
  -h, --help                      Show help options
  --help-all                      Show all help options
  --help-gtk                      Show GTK+ Options

Application Options:
  -f, --filename=FILENAME         Name of the file to preview
  -t, --toplevel=TOPLEVELNAME     Name of the toplevel to preview
  -l, --listen                    Listen standard input
  -v, --version                   Display previewer version
  --display=DISPLAY               X display to use


==29821== 
==29821== HEAP SUMMARY:
==29821==     in use at exit: 309,122 bytes in 1,840 blocks
==29821==   total heap usage: 4,468 allocs, 2,628 frees, 601,307 bytes allocated
==29821== 
==29821== LEAK SUMMARY:
==29821==    definitely lost: 2,108 bytes in 2 blocks
==29821==    indirectly lost: 240 bytes in 10 blocks
==29821==      possibly lost: 53,631 bytes in 148 blocks
==29821==    still reachable: 253,143 bytes in 1,680 blocks
==29821==         suppressed: 0 bytes in 0 blocks
==29821== Rerun with --leak-check=full to see details of leaked memory
==29821== 
==29821== For counts of detected and suppressed errors, rerun with: -v
==29821== ERROR SUMMARY: 12 errors from 3 contexts (suppressed: 4 from 4)



-- System Information:
Debian Release: wheezy/sid
  APT prefers stable
  APT policy: (900, 'stable'), (500, 'testing'), (410, 'unstable'), (200, 'experimental'), (111, 'oldstable'), (107, 'natty-updates'), (107, 'natty')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages glade depends on:
ii  libc6                         2.13-24    Embedded GNU C Library: Shared lib
ii  libgladeui-2-0                3.10.2-1   GTK+ User Interface Build core lib
ii  libglib2.0-0                  2.30.2-6   GLib library of C routines
ii  libgtk-3-0                    3.2.3-1    GTK+ graphical user interface libr

Versions of packages glade recommends:
ii  devhelp                       2.30.1-1   A GNOME developers help program
ii  libgtk-3-dev                  3.2.3-1    development files for the GTK+ lib

glade suggests no packages.

-- no debconf information





More information about the pkg-gnome-maintainers mailing list