Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60383 - Sodipodi segfaults when adding text
Summary: Sodipodi segfaults when adding text
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 All
: High normal
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-14 18:53 UTC by Jonathan Briggs
Modified: 2004-08-19 15:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch (j1,635 bytes, patch)
2004-08-14 18:56 UTC, Jonathan Briggs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Briggs 2004-08-14 18:53:08 UTC
I compiled Sodipodi with gcc 3.4.1 and -O3.  When I tried to add text to a drawing, it crashed.
Comment 1 Jonathan Briggs 2004-08-14 18:56:42 UTC
Created attachment 37450 [details, diff]
Patch

Patch fixes passing 0 instead of NULL in a variable argument list.
Comment 2 foser (RETIRED) gentoo-dev 2004-08-18 05:19:26 UTC
could the amd64 folk check & apply ?
Comment 3 Danny van Dyk (RETIRED) gentoo-dev 2004-08-19 07:17:46 UTC
Sorry, i can't reproduce the crash.

Jonathan: Could you give me explicit instruction how to make it crash ?
Comment 4 Jonathan Briggs 2004-08-19 07:34:45 UTC
I was using a Athlon-64 with everything compiled for AMD64.  CFLAGS in /etc/make.conf set to "-O3 -pipe" with gcc 3.4.1 as the compiler.  ACCEPT_KEYWORDS was set to "~amd64".

emerge sodipodi

Create a new drawing.
Select the text tool.
Click on the drawing.
Type a letter.

Crash!
Comment 5 Jonathan Briggs 2004-08-19 07:45:01 UTC
More data:
zephyr ~ # emerge info
Portage 2.0.50-r9 (gcc34-2004.2, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.6.8)
=================================================================
System uname: 2.6.8 x86_64 4
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.osuosl.org/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://mirror.datapipe.net/gentoo http://mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa amd64 avi berkdb bonobo cdr crypt cups dvd dvdr edl encode esd evo flac foomaticdb gcj gdbm gif gnome gpm gstreamer gtk gtk2 guile imap imlib ipv6 java jpeg kde libg++ libwww mad mikmod motif mozilla mozsvg mpeg ncurses nls nptl offensive oggvorbis opengl pam pcmcia pdflib perl png python quicktime readline samba sdl slang spell ssl svg tcpd theory tiff truetype unicode usb wmf xml2 xmms xv xvid zlib"

Program received signal SIGSEGV, Segmentation fault.
0x00000034e9f6ff12 in strcmp () from /lib/libc.so.6
(gdb) bt
#0  0x00000034e9f6ff12 in strcmp () from /lib/libc.so.6
#1  0x00000034eba1c13f in FcObjectSetAdd () from /usr/lib/libfontconfig.so.1
#2  0x00000034eba1c3dd in FcObjectSetBuild () from /usr/lib/libfontconfig.so.1
#3  0x00000000004ff8e2 in nr_type_xft_build_def ()
#4  0x00000000004fff45 in nr_type_read_xft_list ()
#5  0x00000000004fcab9 in nr_type_register ()
#6  0x00000000004fd46a in nr_type_directory_lookup_fuzzy ()
#7  0x00000000004853ed in sp_text_get_type ()
#8  0x000000000046dc20 in sp_object_invoke_build ()
#9  0x000000000046dc20 in sp_object_invoke_build ()
#10 0x0000000000486d34 in sp_text_set_repr_text_multiline ()
#11 0x000000000046dc20 in sp_object_invoke_build ()
#12 0x0000000000472a2a in sp_group_get_type ()
#13 0x0000000000478494 in sp_root_get_type ()
#14 0x00000000004b7d74 in sp_repr_add_child ()
#15 0x0000000000498fbf in sp_document_add_repr ()
#16 0x0000000000458ec1 in sp_text_context_get_type ()
#17 0x000000000045a158 in sp_text_context_get_type ()
#18 0x00000034eac0c0ac in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#19 0x00000034eac21f58 in g_signal_has_handler_pending ()
   from /usr/lib/libgobject-2.0.so.0
#20 0x00000034eac2376c in g_signal_emit_valist ()
   from /usr/lib/libgobject-2.0.so.0
#21 0x00000034eac2392d in g_signal_emit_by_name ()
   from /usr/lib/libgobject-2.0.so.0
#22 0x00000034eac0c0ac in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#23 0x00000034eac21f58 in g_signal_has_handler_pending ()
   from /usr/lib/libgobject-2.0.so.0
#24 0x00000034eac2376c in g_signal_emit_valist ()
   from /usr/lib/libgobject-2.0.so.0
#25 0x00000034eac2392d in g_signal_emit_by_name ()
   from /usr/lib/libgobject-2.0.so.0
#26 0x00000034ee307b95 in gtk_im_context_simple_new ()
   from /usr/lib/libgtk-x11-2.0.so.0
#27 0x00000034ee3081cc in gtk_im_context_simple_new ()
   from /usr/lib/libgtk-x11-2.0.so.0
#28 0x0000000000459376 in sp_text_context_get_type ()
#29 0x000000000043e8b2 in sp_event_context_root_handler ()
#30 0x00000000004e7b77 in sp_marshal_BOOLEAN__POINTER ()
#31 0x00000034eac0c0ac in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#32 0x00000034eac21f58 in g_signal_has_handler_pending ()
   from /usr/lib/libgobject-2.0.so.0
#33 0x00000034eac233d1 in g_signal_emit_valist ()
   from /usr/lib/libgobject-2.0.so.0
#34 0x00000034ee36986a in gtk_signal_emit () from /usr/lib/libgtk-x11-2.0.so.0
#35 0x00000000004e9ac6 in sp_canvas_new_aa ()
#36 0x00000034ee325916 in _gtk_marshal_BOOLEAN__BOXED ()
   from /usr/lib/libgtk-x11-2.0.so.0
#37 0x00000034eac0c0ac in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#38 0x00000034eac218c6 in g_signal_has_handler_pending ()
   from /usr/lib/libgobject-2.0.so.0
#39 0x00000034eac233d1 in g_signal_emit_valist ()
   from /usr/lib/libgobject-2.0.so.0
#40 0x00000034eac23ac1 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#41 0x00000034ee40fc70 in gtk_widget_activate ()
   from /usr/lib/libgtk-x11-2.0.so.0
#42 0x00000034ee41ec7d in gtk_window_propagate_key_event ()
   from /usr/lib/libgtk-x11-2.0.so.0
#43 0x00000034ee42353b in gtk_window_activate_key ()
   from /usr/lib/libgtk-x11-2.0.so.0
#44 0x00000034ee325916 in _gtk_marshal_BOOLEAN__BOXED ()
   from /usr/lib/libgtk-x11-2.0.so.0
#45 0x00000034eac0c0ac in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#46 0x00000034eac218c6 in g_signal_has_handler_pending ()
   from /usr/lib/libgobject-2.0.so.0
#47 0x00000034eac233d1 in g_signal_emit_valist ()
   from /usr/lib/libgobject-2.0.so.0
#48 0x00000034eac23ac1 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#49 0x00000034ee40fc70 in gtk_widget_activate ()
   from /usr/lib/libgtk-x11-2.0.so.0
#50 0x00000034ee323a1c in gtk_propagate_event ()
   from /usr/lib/libgtk-x11-2.0.so.0
#51 0x00000034ee323c85 in gtk_main_do_event ()
   from /usr/lib/libgtk-x11-2.0.so.0
#52 0x00000034ec6476c0 in _gdk_events_queue ()
   from /usr/lib/libgdk-x11-2.0.so.0
#53 0x00000034e9b280ea in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#54 0x00000034e9b2a4c7 in g_main_context_acquire ()
   from /usr/lib/libglib-2.0.so.0
#55 0x00000034e9b2a85a in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#56 0x00000034ee3230e1 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#57 0x000000000045d29a in sp_main_gui ()
#58 0x000000000045d4c8 in main ()
(gdb)
Comment 6 Danny van Dyk (RETIRED) gentoo-dev 2004-08-19 15:39:30 UTC
In CVS now, thanks!