Crash after dragging and dropping tiger.svgz from gwenview into an empty inkscape doc
Steps to reproduce:
- start Inkscape git master inside gdb
- gwenview share/examples/tiger.svgz
- drag and drop tiger.svgz into the empty inkscape document
What happened?
Inkscape crashed:
#0 0x00007ffff308b625 in raise () at /lib64/libc.so.6
#1 0x00007ffff30748d9 in abort () at /lib64/libc.so.6
#2 0x00007ffff33fc6b6 in __gnu_cxx::__verbose_terminate_handler() ()
at ../../../../libstdc++-v3/libsupc++/vterminate.cc:95
#3 0x00007ffff340886c in __cxxabiv1::__terminate(void (*)())
(handler=<optimized out>)
at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:47
#4 0x00007ffff34088c7 in std::terminate() ()
at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:57
#5 0x00007ffff3408b29 in __cxxabiv1::__cxa_throw(void*, std::type_info*, void (*)(void*))
(obj=<optimized out>, tinfo=tinfo@entry=0x7ffff7da44d0 <typeinfo for Inkscape::Extension::Extension::param_not_exist>, dest=dest@entry=0x0)
at ../../../../libstdc++-v3/libsupc++/eh_throw.cc:95
#6 0x00007ffff6da3dcf in Inkscape::Extension::Extension::get_param(char const*) (this=this@entry=0x495ee0, name=name@entry=0x7ffff7a3d84f "do_not_ask")
at /home/shlomif/Download/unpack/graphics/inkscape/inkscape/src/extension/extension.cpp:610
#7 0x00007ffff6da3ead in Inkscape::Extension::Extension::get_param(char const*) const (this=this@entry=0x495ee0, name=name@entry=0x7ffff7a3d84f "do_not_ask")
at /home/shlomif/Download/unpack/graphics/inkscape/inkscape/src/extension/extension.cpp:633
#8 0x00007ffff6da3ebb in Inkscape::Extension::Extension::get_param_bool(char const*) const
(this=this@entry=0x495ee0, name=name@entry=0x7ffff7a3d84f "do_not_ask")
at /home/shlomif/Download/unpack/graphics/inkscape/inkscape/src/extension/extension.cpp:648
#9 0x00007ffff6e02f29 in Inkscape::Extension::Internal::Svg::open(Inkscape::Extension::Input*, char const*)
(this=<optimized out>, mod=0x495ee0, uri=<optimized out>)
at /home/shlomif/Download/unpack/graphics/inkscape/inkscape/src/extension/internal/svg.cpp:821
#10 0x00007ffff6da7d15 in Inkscape::Extension::Input::open(char const*)
(this=0x495ee0, uri=uri@entry=0x266f540 "/home/shlomif/Download/unpack/graphics/inkscape/inkscape/share/examples/tiger.svgz")
at /home/shlomif/Download/unpack/graphics/inkscape/inkscape/src/extension/input.cpp:156
#11 0x00007ffff6da90f3 in Inkscape::Extension::open(Inkscape::Extension::Extensi--Type <RET> for more, q to quit, c to continue without paging--
What should have happened?
Inkscape should have displayed the file import dialog.
Inkscape Version and Operating System:
- Inkscape Version: Inkscape 1.1-dev (e1f5eb16, 2020-01-26)
- Operating System: Fedora Linux
- Operating System version: 31
See https://gitlab.com/inkscape/inkscape/blob/master/share/examples/tiger.svgz and this commit which fixes the issue but I wish to add a test: shlomif/inkscape@72658718 .