gnumeric: segfaults on 64-bit platforms when clicking on "Page Setup"
Package: gnumeric
Version: 1.2.4-1
Severity: normal
Tags: patch
gnumeric crashes when clicking on File->Page Setup. The patch below
fixes the problem. The problem is that without include of
gtkmenuitem.h, gtk_menu_item_new_with_label() was implicitly declared
to return an "int", but since it returns a pointer in reality, the top
32 bits got sign-extended/corrupted on 64-bit platforms. Simply including
the appropriate header-file fixes the problem.
Thanks,
--david
--- gnumeric-1.2.4/src/dialogs/dialog-printer-setup.c 2003-10-26 22:45:16.000000000 -0800
+++ gnumeric-1.2.4-davidm/src/dialogs/dialog-printer-setup.c 2004-01-06 00:46:31.527247142 -0800
@@ -53,6 +53,7 @@
#include <gtk/gtktable.h>
#include <gtk/gtktogglebutton.h>
#include <gtk/gtkoptionmenu.h>
+#include <gtk/gtkmenuitem.h>
#include <stdio.h>
/* FIXME: do not hardcode pixel counts. */
-- System Information:
Debian Release: testing/unstable
Architecture: ia64
Kernel: Linux panda.mostang.com 2.6.0 #15 Sun Dec 21 10:27:08 PST 2003 ia64
Locale: LANG=C, LC_CTYPE=C
Versions of packages gnumeric depends on:
ii gconf2 2.4.0.1-2 GNOME configuration database syste
ii gsfonts 6.0-2.1 Fonts for the ghostscript interpre
ii libart-2.0-2 2.3.16-1 Library of functions for 2D graphi
ii libatk1.0-0 1.4.1-1 The ATK accessibility toolkit
ii libaudiofile0 0.2.3-4 The Audiofile Library
ii libbonobo2-0 2.4.2-1 Bonobo CORBA interfaces library
ii libbonoboui2-0 2.4.2-1 The Bonobo UI library
ii libbz2-1.0 1.0.2-1 A high-quality block-sorting file
ii libc6.1 2.3.2.ds1-10.0.1 GNU C Library: Shared libraries an
ii libesd0 0.2.29-1 Enlightened Sound Daemon - Shared
ii libfontconfig1 2.2.1-8 generic font configuration library
ii libfreetype6 2.1.7-1 FreeType 2 font engine, shared lib
ii libgconf2-4 2.4.0.1-2 GNOME configuration database syste
ii libgcrypt1 1.1.12-4 LGPL Crypto library - runtime libr
ii libglade2-0 2.0.1-6 Library to load .glade files at ru
ii libglib2.0-0 2.2.3-1 The GLib library of C routines
ii libgnome2-0 2.4.0-4 The GNOME 2 library - runtime file
ii libgnomecanvas2-0 2.4.0-1 A powerful object-oriented display
ii libgnomeprint2.2-0 2.4.2-2 The GNOME 2.2 print architecture -
ii libgnomeprintui2.2-0 2.4.2-1 The GNOME 2.2 print architecture U
ii libgnomeui-0 2.4.0.1-5 The GNOME 2 libraries (User Interf
ii libgnomevfs2-0 2.4.1-4 The GNOME virtual file-system libr
ii libgnomevfs2-common 2.4.1-4 The GNOME virtual file-system libr
ii libgnutls7 0.8.12-3.1 GNU TLS library - runtime library
ii libgsf-1 1.8.2-5 Structured File Library - runtime
ii libgsf-gnome-1 1.8.2-5 Structured File Library - runtime
ii libgtk2.0-0 2.2.4-2 The GTK+ graphical user interface
ii liborbit2 1:2.8.2-1.1 Libraries for ORBit2 - a CORBA ORB
ii libpango1.0-0 1.2.5-2 Layout and rendering of internatio
ii libpopt0 1.7-3 lib for parsing cmdline parameters
ii libtasn1-0 0.1.2-1 Manage ASN.1 structures (runtime)
ii libxml2 2.6.3-1 GNOME XML library
ii xlibs 4.2.1-12.1 X Window System client libraries
ii zlib1g 1:1.2.1-1 compression library - runtime
-- no debconf information
Reply to: