Package: libgtk2.0-0 Version: 2.12.8-1 Severity: normal -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I found a segmentation fault when using gtk_accelerator_get_label(). The file is attached. You can easily compile it with: make segfault CFLAGS="`pkg-config --cflags gdk-2.0 gtk+-2.0`" \ LDLIBS="`pkg-config --libs gdk-2.0 gtk+-2.0`" Maybe I made the mistake, but I think, the test-code is correct. Regards, Daniel - -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (850, 'unstable'), (700, 'testing'), (550, 'stable'), (110, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.22-3-k7 (SMP w/1 CPU core) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages libgtk2.0-0 depends on: ii libatk1.0-0 1.20.0-1 The ATK accessibility toolkit ii libc6 2.7-9 GNU C Library: Shared libraries ii libcairo2 1.4.14-1 The Cairo 2D vector graphics libra ii libcomerr2 1.40.7-1 common error description library ii libcupsys2 1.3.6-1 Common UNIX Printing System(tm) - ii libfontconfig1 2.5.0-2 generic font configuration library ii libglib2.0-0 2.14.6-1 The GLib library of C routines ii libgnutls26 2.2.2-1 the GNU TLS library - runtime libr ii libgtk2.0-common 2.12.8-1 Common files for the GTK+ graphica ii libjpeg62 6b-14 The Independent JPEG Group's JPEG ii libkrb53 1.6.dfsg.3~beta1-3 MIT Kerberos runtime libraries ii libpango1.0-0 1.18.4-1 Layout and rendering of internatio ii libpng12-0 1.2.15~beta5-3 PNG library - runtime ii libtiff4 3.8.2-7 Tag Image File Format (TIFF) libra ii libx11-6 2:1.0.3-7 X11 client-side library ii libxcomposite1 1:0.4.0-1 X11 Composite extension library ii libxcursor1 1:1.1.9-1 X cursor management library ii libxdamage1 1:1.1.1-3 X11 damaged region extension libra ii libxext6 2:1.0.4-1 X11 miscellaneous extension librar ii libxfixes3 1:4.0.3-2 X11 miscellaneous 'fixes' extensio ii libxi6 2:1.1.3-1 X11 Input extension library ii libxinerama1 2:1.0.3-1 X11 Xinerama extension library ii libxrandr2 2:1.2.2-1 X11 RandR extension library ii libxrender1 1:0.9.4-1 X Rendering Extension client libra ii zlib1g 1:1.2.3.3.dfsg-11 compression library - runtime Versions of packages libgtk2.0-0 recommends: ii hicolor-icon-theme 0.10-1 default fallback theme for FreeDes ii libgtk2.0-bin 2.12.8-1 The programs for the GTK+ graphica - -- no debconf information -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFH0iXim0bx+wiPa4wRApHHAJ9BGbmHRbmFTdJ/0QmI8R+tzOZ+fQCffvwK e7VE+rb4j8bZlj+2uxxDHBw= =36VH -----END PGP SIGNATURE-----
#include <gtk/gtk.h> #include <gdk/gdk.h> #include <gdk/gdkkeysyms.h> #include <stdio.h> int main(void) { gchar * keystring; keystring = gtk_accelerator_get_label(GDK_1, GDK_CONTROL_MASK); printf("%s\n", keystring); return 0; }