Comment 3 for bug 511361

Revision history for this message
bcrowell (launchpadcrowell07) wrote : Re: 0.47pre4 crashes when printing from command line (but not gui)

I've checked that the crash also occurs with the latest version from SVN. See below. (I don't understand why the version number of today's SVN checkout is *lower* than the version number distributed with ubuntu karmic...?)

$ /usr/local/bin/inkscape --version
Inkscape 0.46+devel r22653 (Jan 22 2010)
$ /usr/local/bin/inkscape --print=">b.ps" b.svg

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.
** Message: Error: Inkscape encountered an internal error and will close now.

Segmentation fault
$ gdb /usr/local/bin/inkscape
GNU gdb (GDB) 7.0-ubuntu
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/inkscape...done.
(gdb) run --print=">b.ps" b.svg
Starting program: /usr/local/bin/inkscape --print=">b.ps" b.svg
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
Inkscape::Extension::Extension::get_param_string (this=0x0, name=0xa8db2a "destination", doc=0x0, node=0x0) at extension/extension.cpp:430
430 param = param_shared(name, parameters);
(gdb) bt
#0 Inkscape::Extension::Extension::get_param_string (this=0x0, name=0xa8db2a "destination", doc=0x0, node=0x0) at extension/extension.cpp:430
#1 0x000000000047d603 in sp_print_document_to_file (doc=0x13e4f00, filename=0x107e030 ">b.ps") at print.cpp:157
#2 0x000000000044fa3e in sp_process_file_list (fl=0x104cd60) at main.cpp:996
#3 0x0000000000450de9 in sp_main_console (argc=3, argv=0x7fffffffe8c8) at main.cpp:1139
#4 0x000000000044e6c9 in main (argc=3, argv=<value optimized out>) at main.cpp:685