Inkscape 0.47 crashing when using gradients ("libgobject-2.0.so.0" glib-2.22.2 FreeBSD 7.1 arch: AMD64))

Joe Marcus Clarke marcus at marcuscom.com
Wed Dec 16 18:54:52 UTC 2009


On Wed, 2009-12-16 at 20:22 +0100, simon.prive at xs4all.nl wrote:
> Inkscape 0.47 crashing when using gradients ("libgobject-2.0.so.0" glib-2.22.2 FreeBSD 7.1 arch: AMD64)
> 
> When i:
> 1. draw a rectangle/square 
> 2. create a gradient in it
> 3. Undo it
> 4. inkscape crashes
> 
> The same with:
> 1. draw a rectangler/square
> 2. Menu Object, Fill and Stroke (shift+Ctrl+F)
> 3. choose a gradient
> 4. switch to another gradient
> 5. inkscape crashes

I can't reproduce on i386.  Any chance you can test there?  I have a
feeling this might be a case of 64-bit pointer truncation.

Joe

> 
> Here are my debugging logs:
> 
> GDB backtrace:
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x00000008040ea68d in g_type_class_ref () from /usr/local/lib/libgobject-2.0.so.0
> (gdb) bt
> #0  0x00000008040ea68d in g_type_class_ref () from /usr/local/lib/libgobject-2.0.so.0
> #1  0x00000000004dd538 in std::_List_base<std::string, std::allocator<std::string> >::_M_clear ()
> #2  0x000000000057755c in sigc::visit_each<sigc::internal::limit_derived_target<sigc::trackable*, sigc::internal::slot_do_unbind>, sigc::trackable> ()
> #3  0x0000000000570168 in sigc::visit_each<sigc::internal::limit_derived_target<sigc::trackable*, sigc::internal::slot_do_unbind>, sigc::trackable> ()
> #4  0x000000000057234e in sigc::visit_each<sigc::internal::limit_derived_target<sigc::trackable*, sigc::internal::slot_do_unbind>, sigc::trackable> ()
> #5  0x0000000000570168 in sigc::visit_each<sigc::internal::limit_derived_target<sigc::trackable*, sigc::internal::slot_do_unbind>, sigc::trackable> ()
> #6  0x000000000057234e in sigc::visit_each<sigc::internal::limit_derived_target<sigc::trackable*, sigc::internal::slot_do_unbind>, sigc::trackable> ()
> #7  0x0000000000570168 in sigc::visit_each<sigc::internal::limit_derived_target<sigc::trackable*, sigc::internal::slot_do_unbind>, sigc::trackable> ()
> #8  0x000000000057234e in sigc::visit_each<sigc::internal::limit_derived_target<sigc::trackable*, sigc::internal::slot_do_unbind>, sigc::trackable> ()
> #9  0x0000000000570168 in sigc::visit_each<sigc::internal::limit_derived_target<sigc::trackable*, sigc::internal::slot_do_unbind>, sigc::trackable> ()
> #10 0x0000000000969e84 in std::vector<unsigned int, std::allocator<unsigned int> >::_M_insert_aux ()
> #11 0x00000000005991b7 in std::vector<double, std::allocator<double> >::operator= ()
> #12 0x000000000059d475 in std::vector<double, std::allocator<double> >::operator= ()
> #13 0x00000000005991b7 in std::vector<double, std::allocator<double> >::operator= ()
> #14 0x000000000059d475 in std::vector<double, std::allocator<double> >::operator= ()
> #15 0x00000000005991b7 in std::vector<double, std::allocator<double> >::operator= ()
> #16 0x000000000059ce02 in std::vector<double, std::allocator<double> >::operator= ()
> #17 0x000000000059d1f2 in std::vector<double, std::allocator<double> >::operator= ()
> #18 0x000000080443f671 in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.0
> #19 0x0000000804442a0e in g_main_context_check () from /usr/local/lib/libglib-2.0.so.0
> #20 0x0000000804442cdb in g_main_loop_run () from /usr/local/lib/libglib-2.0.so.0
> #21 0x000000080249f612 in gtk_main () from /usr/local/lib/libgtk-x11-2.0.so.0
> 
> 
> 
> VALGRIND log:
> 
> simon at devel$ valgrind --tool=memcheck inkscape
> ==46863== Memcheck, a memory error detector
> ==46863== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
> ==46863== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
> ==46863== Command: inkscape
> ==46863==
> Xlib:  extension "Generic Event Extension" missing on display ":0.0".
> Xlib:  extension "Generic Event Extension" missing on display ":0.0".
> Xlib:  extension "Generic Event Extension" missing on display ":0.0".
> Xlib:  extension "Generic Event Extension" missing on display ":0.0".
> Xlib:  extension "Generic Event Extension" missing on display ":0.0".
> Xlib:  extension "Generic Event Extension" missing on display ":0.0".
> ==46863== Invalid read of size 8
> ==46863==    at 0x24777: ??? (in /libexec/ld-elf.so.1)
> ==46863==    by 0x149DD: ??? (in /libexec/ld-elf.so.1)
> ==46863==    by 0x169A6: ??? (in /libexec/ld-elf.so.1)
> ==46863==    by 0x17B32: dlopen (in /libexec/ld-elf.so.1)
> ==46863==    by 0x4A27B1F: g_module_open (in /usr/local/lib/libgmodule-2.0.so.0)
> ==46863==    by 0x331EFDB: _gdk_pixbuf_load_module (in /usr/local/lib/libgdk_pixbuf-2.0.so.0)
> ==46863==    by 0x332001B: gdk_pixbuf_new_from_file (in /usr/local/lib/libgdk_pixbuf-2.0.so.0)
> ==46863==    by 0x8137CC: ??? (in /usr/local/bin/inkscape)
> ==46863==    by 0x9AC27F: ??? (in /usr/local/bin/inkscape)
> ==46863==    by 0x8113EB: ??? (in /usr/local/bin/inkscape)
> ==46863==    by 0x6F189D: ??? (in /usr/local/bin/inkscape)
> ==46863==    by 0x491059F: g_type_create_instance (in /usr/local/lib/libgobject-2.0.so.0)
> ==46863==  Address 0xc508898 is 56 bytes inside a block of size 61 alloc'd
> ==46863==    at 0x24567B: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck-amd64-freebsd.so)
> ==46863==    by 0x4C6C3CB: g_malloc (in /usr/local/lib/libglib-2.0.so.0)
> ==46863==    by 0x4C82ADE: g_strdup (in /usr/local/lib/libglib-2.0.so.0)
> ==46863==    by 0x4A27AD3: g_module_open (in /usr/local/lib/libgmodule-2.0.so.0)
> ==46863==    by 0x331EFDB: _gdk_pixbuf_load_module (in /usr/local/lib/libgdk_pixbuf-2.0.so.0)
> ==46863==    by 0x332001B: gdk_pixbuf_new_from_file (in /usr/local/lib/libgdk_pixbuf-2.0.so.0)
> ==46863==    by 0x8137CC: ??? (in /usr/local/bin/inkscape)
> ==46863==    by 0x9AC27F: ??? (in /usr/local/bin/inkscape)
> ==46863==    by 0x8113EB: ??? (in /usr/local/bin/inkscape)
> ==46863==    by 0x6F189D: ??? (in /usr/local/bin/inkscape)
> ==46863==    by 0x491059F: g_type_create_instance (in /usr/local/lib/libgobject-2.0.so.0)
> ==46863==    by 0x48F5D0C: ??? (in /usr/local/lib/libgobject-2.0.so.0)
> ==46863==
> ==46863== Syscall param write(buf) points to uninitialised byte(s)
> ==46863==    at 0x6EEA78C: __sys_write (in /lib/libc.so.7)
> ==46863==    by 0x6CFB05F: write (in /lib/libthr.so.3)
> ==46863==    by 0x47BBECE: FcDirCacheWrite (in /usr/local/lib/libfontconfig.so.1)
> ==46863==    by 0x47C2519: FcDirCacheScan (in /usr/local/lib/libfontconfig.so.1)
> ==46863==    by 0x47BED18: FcConfigAddDirList (in /usr/local/lib/libfontconfig.so.1)
> ==46863==    by 0x47BEF85: FcConfigBuildFonts (in /usr/local/lib/libfontconfig.so.1)
> ==46863==    by 0x47C598A: FcInitLoadConfigAndFonts (in /usr/local/lib/libfontconfig.so.1)
> ==46863==    by 0x47C5A4C: FcInit (in /usr/local/lib/libfontconfig.so.1)
> ==46863==    by 0x47BE281: FcConfigGetCurrent (in /usr/local/lib/libfontconfig.so.1)
> ==46863==    by 0x47BE9B1: FcConfigSubstituteWithPat (in /usr/local/lib/libfontconfig.so.1)
> ==46863==    by 0x34396BF: ??? (in /usr/local/lib/libpangocairo-1.0.so.0)
> ==46863==    by 0x3F22A86: ??? (in /usr/local/lib/libpangoft2-1.0.so.0)
> ==46863==  Address 0xd7ec9c4 is 212 bytes inside a block of size 11,440 alloc'd
> ==46863==    at 0x24567B: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck-amd64-freebsd.so)
> ==46863==    by 0x47BC1C9: FcDirCacheBuild (in /usr/local/lib/libfontconfig.so.1)
> ==46863==    by 0x47C2504: FcDirCacheScan (in /usr/local/lib/libfontconfig.so.1)
> ==46863==    by 0x47BED18: FcConfigAddDirList (in /usr/local/lib/libfontconfig.so.1)
> ==46863==    by 0x47BEF85: FcConfigBuildFonts (in /usr/local/lib/libfontconfig.so.1)
> ==46863==    by 0x47C598A: FcInitLoadConfigAndFonts (in /usr/local/lib/libfontconfig.so.1)
> ==46863==    by 0x47C5A4C: FcInit (in /usr/local/lib/libfontconfig.so.1)
> ==46863==    by 0x47BE281: FcConfigGetCurrent (in /usr/local/lib/libfontconfig.so.1)
> ==46863==    by 0x47BE9B1: FcConfigSubstituteWithPat (in /usr/local/lib/libfontconfig.so.1)
> ==46863==    by 0x34396BF: ??? (in /usr/local/lib/libpangocairo-1.0.so.0)
> ==46863==    by 0x3F22A86: ??? (in /usr/local/lib/libpangoft2-1.0.so.0)
> ==46863==    by 0x4507FDA: ??? (in /usr/local/lib/libpango-1.0.so.0)
> ==46863==
> 
> (inkscape:46863): Gdk-WARNING **: shmat failed: error 22 (Invalid argument)
> 
> ** (inkscape:46863): WARNING **: Incomplete undo transaction:
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute inkscape:collect to "always" on #<Element:0x0x10fc8a60>
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute style to "stop-color:#0000ff;stop-opacity:1;" on #<Element:0x0x1145bfc0>
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute offset to "0" on #<Element:0x0x1145bfc0>
> 
> ** (inkscape:46863): WARNING **: Event: Added #<Element:0x0x10fc8a60> to #<Element:0x0x1145bfc0> after beginning
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute style to "stop-color:#0000ff;stop-opacity:0;" on #<Element:0x0x1321e420>
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute offset to "1" on #<Element:0x0x1321e420>
> 
> ** (inkscape:46863): WARNING **: Event: Added #<Element:0x0x10fc8a60> to #<Element:0x0x1321e420> after #<Element:0x0x1145bfc0>
> 
> ** (inkscape:46863): WARNING **: Event: Added #<Element:0x0xa4354c0> to #<Element:0x0x10fc8a60> after beginning
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute id to "linearGradient2818" on #<Element:0x0x10fc8a60>
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute id to "stop2820" on #<Element:0x0x1145bfc0>
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute id to "stop2822" on #<Element:0x0x1321e420>
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute style to "fill:#0000ff;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1.0" on #<Element:0x0x131785f0>
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute inkscape:collect to "always" on #<Element:0x0xfb9b8c0>
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute xlink:href to "#linearGradient2818" on #<Element:0x0xfb9b8c0>
> 
> ** (inkscape:46863): WARNING **: Event: Added #<Element:0x0xa4354c0> to #<Element:0x0xfb9b8c0> after #<Element:0x0xaed8a20>
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute id to "linearGradient2824" on #<Element:0x0xfb9b8c0>
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute x1 to "239.5" on #<Element:0x0xfb9b8c0>
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute y1 to "515.21933" on #<Element:0x0xfb9b8c0>
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute x2 to "543.35715" on #<Element:0x0xfb9b8c0>
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute y2 to "515.21933" on #<Element:0x0xfb9b8c0>
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute gradientUnits to "userSpaceOnUse" on #<Element:0x0xfb9b8c0>
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute style to "fill:url(#linearGradient2824);fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1" on #<Element:0x0x131785f0>
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute x1 to "288.57144" on #<Element:0x0xfb9b8c0>
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute y1 to "446.64789" on #<Element:0x0xfb9b8c0>
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute x2 to "302.85715" on #<Element:0x0xfb9b8c0>
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute y2 to "455.21933" on #<Element:0x0xfb9b8c0>
> 
> ** (inkscape:46863): WARNING **: Event: Set attribute style to "fill:url(#linearGradient2824);fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1" on #<Element:0x0x131785f0>
> 
> 
> Greetings,
> Simon
> _______________________________________________
> freebsd-gnome at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-gnome
> To unsubscribe, send any mail to "freebsd-gnome-unsubscribe at freebsd.org"
> 


-- 
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20091216/64a7054f/attachment.pgp


More information about the freebsd-gnome mailing list