Bug#785141: inkscape crashes when opening any files

2015-05-13 Thread Roland Hieber
Package: inkscape
Followup-For: Bug #785141
Control: retitle -1 inkscape crashes when opening any files if there are 
strange items in the recent files list

Applying the debug symbols patch patch from #733678, I get the following
backtrace:

 8 
(gdb) bt
#0  0x7fffee8c3107 in __GI_raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x7fffee8c44e8 in __GI_abort () at abort.c:89
#2  0x7fffef3cbb3d in __gnu_cxx::__verbose_terminate_handler ()
at ../../../../src/libstdc++-v3/libsupc++/vterminate.cc:95
#3  0x7fffef3c9bb6 in __cxxabiv1::__terminate (handler=optimized out)
at ../../../../src/libstdc++-v3/libsupc++/eh_terminate.cc:47
#4  0x7fffef3c9c01 in std::terminate () at 
../../../../src/libstdc++-v3/libsupc++/eh_terminate.cc:57
#5  0x7fffef3c9e19 in __cxxabiv1::__cxa_throw (obj=0x3e699b0, 
tinfo=0xd54130 typeinfo for Glib::ConvertError, 
dest=0x754f7930 Glib::ConvertError::~ConvertError())
at ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:87
#6  0x754f77b7 in Glib::ConvertError::throw_func (gobject=0x40cd900) at 
convert.cc:322
#7  0x75508e27 in Glib::Error::throw_exception (gobject=0x40cd900) at 
error.cc:167
#8  0x754f752d in Glib::filename_from_uri (uri=...) at convert.cc:256
#9  0x0052b3f1 in Inkscape::ResourceManagerImpl::locateLinks 
(this=0x1406250, docbase=..., 
brokenLinks=std::vector of length 0, capacity 0) at resource-manager.cpp:225
#10 0x0052c786 in Inkscape::ResourceManagerImpl::fixupBrokenLinks 
(this=0x1406250, doc=0x1d0eea0)
at resource-manager.cpp:296
#11 0x004c7fe9 in sp_file_open (uri=..., key=key@entry=0x0, 
add_to_recent=add_to_recent@entry=true, 
replace_empty=replace_empty@entry=true) at file.cpp:321
#12 0x004753a3 in sp_main_gui (argc=2, argv=0x7fffe028) at 
main.cpp:1065
#13 0x7fffee8afb45 in __libc_start_main (main=0x456ad0 main(int, char**), 
argc=3, argv=0x7fffe028, 
init=optimized out, fini=optimized out, rtld_fini=optimized out, 
stack_end=0x7fffe018)
at libc-start.c:287
#14 0x00471a7f in _start ()
 8 

The URI that is passed to Glib::filename_from_uri() in #8 is
file://2014-09-14-dominik-openkeychain.osp in my case, which seems to be an
item from the recent items list, as far as I understand the code in
Inkscape::ResourceManagerImpl::locateLinks(). This file obviously does not
exist, and please don't ask me how it got into the recent item list after all –
I cannot tell :D

So it seems glibmm cannot find the filename and throws an exception, which is
not caught by Inkscape and therefore causes the program to crash.

 - Roland

___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Bug#785141: inkscape crashes when opening any files

2015-05-12 Thread Roland Hieber
Package: inkscape
Version: 0.91-4
Severity: important

Dear Maintainer,

Since a recent update, when I try to open any files, Inkscape crashes with the
error message Inkscape encountered an internal error and will close now. [Close
Button]. On the terminal, I see:

 8 
$ inkscape ~/tmp/drawing.svg 
terminate called after throwing an instance of 'Glib::ConvertError'

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed Description of the steps leading to the crash, so we can fix it.
 8 

The respective drawing.svg is attached for reference (saving SVGs in Inkscape
works as usual), though I was able to reproduce this behaviour with every
single PDF/SVG/PS/... file I tried.

Here is a gdb backtrace: (by the way, it would be _really nice_ to see #733678
fixed ;-))

 8 
$ gdb --args inkscape ~/tmp/drawing.svg 
Reading symbols from inkscape...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/bin/inkscape /home/rohieb/tmp/drawing.svg
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1.
terminate called after throwing an instance of 'Glib::ConvertError'
[New Thread 0x7fffe1dc2700 (LWP 13989)]
[New Thread 0x7fffe3cc9700 (LWP 13988)]
[New Thread 0x7fffe4723700 (LWP 13987)]

Program received signal SIGABRT, Aborted.
0x7fffee8d5107 in __GI_raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
56  ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x7fffee8d5107 in __GI_raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x7fffee8d64e8 in __GI_abort () at abort.c:89
#2  0x7fffef3ddb3d in __gnu_cxx::__verbose_terminate_handler ()
at ../../../../src/libstdc++-v3/libsupc++/vterminate.cc:95
#3  0x7fffef3dbbb6 in __cxxabiv1::__terminate (handler=optimized out)
at ../../../../src/libstdc++-v3/libsupc++/eh_terminate.cc:47
#4  0x7fffef3dbc01 in std::terminate () at 
../../../../src/libstdc++-v3/libsupc++/eh_terminate.cc:57
#5  0x7fffef3dbe19 in __cxxabiv1::__cxa_throw (obj=0x401e8f0, 
tinfo=0xd542b0 typeinfo for Glib::ConvertError, 
dest=0x754ff820 Glib::ConvertError::~ConvertError())
at ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:87
#6  0x754ff6a7 in Glib::ConvertError::throw_func (gobject=0x40c48b0) at 
convert.cc:322
#7  0x75510977 in Glib::Error::throw_exception (gobject=0x40c48b0) at 
error.cc:167
#8  0x754ff41d in Glib::filename_from_uri (uri=...) at convert.cc:256
#9  0x0052b3f1 in ?? ()
#10 0x0052c786 in ?? ()
#11 0x004c7fe9 in ?? ()
#12 0x004753a3 in ?? ()
#13 0x7fffee8c1b45 in __libc_start_main (main=0x456ad0, argc=2, 
argv=0x7fffe038, init=optimized out, 
fini=optimized out, rtld_fini=optimized out, stack_end=0x7fffe028) 
at libc-start.c:287
#14 0x00471a7f in ?? ()
(gdb) q
 8 

Symbol mappings are attached, it seems that stack frames #12-#9 are from
/usr/bin/inkscape, and #8-#6  are in
/usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1.3.0. I have installed
libglibmm-2.4-dbg, but was not able to step through Glib::filename_from_uri()
properly due to optimized-out symbols.

Thanks for looking into this.

- Roland


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (200, 'testing'), (170, 'unstable'), (150, 
'testing-proposed-updates'), (150, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages inkscape depends on:
ii  gconf-service  3.2.6-3
ii  libaspell150.60.7~20110707-3
ii  libatk1.0-02.14.0-1
ii  libatkmm-1.6-1 2.22.7-2.1
ii  libc6  2.19-18
ii  libcairo2  1.14.0-2.1
ii  libcairomm-1.0-1   1.10.0-1.1
ii  libcdr-0.1-1   0.1.1-2
ii  libexif12  0.6.21-2
ii  libfontconfig1 2.11.0-6.3
ii  libfreetype6   2.5.2-4
ii  libgc1c2   1:7.2d-6.4
ii  libgcc11:4.9.2-10
ii  libgconf-2-4   3.2.6-3
ii  libgdk-pixbuf2.0-0 2.31.1-2+b1
ii  libglib2.0-0   2.42.1-1
ii  libglibmm-2.4-1c2a 2.42.0-1
ii  libgnomevfs2-0 1:2.24.4-6+b1
ii  libgomp1   4.9.2-10
ii  libgsl0ldbl1.16+dfsg-2
ii  libgtk2.0-02.24.25-3
ii  libgtkmm-2.4-1c2a  1:2.24.4-1.1
ii  libgtkspell0   2.0.16-1.1
ii  libjpeg62-turbo1:1.3.1-12
ii  liblcms2-2 2.6-3+b3
ii  libmagick++-6.q16-58:6.8.9.9-5
ii  libmagickcore-6.q16-2  8:6.8.9.9-5
ii  libmagickwand-6.q16-2  8:6.8.9.9-5
ii  libpango-1.0-0 1.36.8-3
ii  libpangocairo-1.0-0