segfault if an inx has an empty <item> element

Bug #168979 reported by Aurele-users
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Krzysztof Kosinski

Bug Description

If an extension foo.inx contains a element <item> with no text inside,
inkscape fails to start giving a segfault.

Revision history for this message
Aurele-users (aurele-users) wrote :

Originator: YES

Here is the Gdb backtrace :

Starting program: /usr/local/bin/inkscape
[Thread debugging using libthread_db enabled]
[New Thread -1208740128 (LWP 15119)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208740128 (LWP 15119)]
ParamComboBox (this=0xa424478, name=0xa4946c0 "fold",
    guitext=0xa3dab88 "Folds and Creases", desc=0x0,
    scope=Inkscape::Extension::Parameter::SCOPE_USER, ext=0xa4243d8,
    xml=0xa4a9b70) at extension/paramenum.cpp:77
77 const char * contents =
sp_repr_children(child_repr)->content();
(gdb) bt
#0 ParamComboBox (this=0xa424478, name=0xa4946c0 "fold",
    guitext=0xa3dab88 "Folds and Creases", desc=0x0,
    scope=Inkscape::Extension::Parameter::SCOPE_USER, ext=0xa4243d8,
    xml=0xa4a9b70) at extension/paramenum.cpp:77
#1 0x084bbd7e in Inkscape::Extension::Parameter::make (in_repr=0xa4a9b70,

    in_ext=0xa4243d8) at extension/parameter.cpp:153
#2 0x084bcb8d in ParamNotebookPage (this=0xa41d9d8, name=0xa3d7aa0
"stylist",
    guitext=0xa3d7a80 "Stylist", desc=0x0,
    scope=Inkscape::Extension::Parameter::SCOPE_USER, ext=0xa4243d8,
    xml=0xa4a9bf0) at extension/paramnotebook.cpp:78
#3 0x084bccaf in Inkscape::Extension::ParamNotebookPage::makepage (
    in_repr=0xa4a9bf0, in_ext=0xa4243d8) at
extension/paramnotebook.cpp:176
#4 0x084bcf22 in ParamNotebook (this=0xa424e38, name=0xa4946c8 "tab",
    guitext=0x0, desc=0x0,
scope=Inkscape::Extension::Parameter::SCOPE_USER,
    ext=0xa4243d8, xml=0xa4a9c70) at extension/paramnotebook.cpp:236
#5 0x084bbdd2 in Inkscape::Extension::Parameter::make (in_repr=0xa4a9c70,

    in_ext=0xa4243d8) at extension/parameter.cpp:155
#6 0x084b77fa in Extension (this=0xa4243d8, in_repr=0xa4a81f0,
    in_imp=0xa424dd0) at extension/extension.cpp:96
#7 0x084c63a2 in Effect (this=0xa4243d8, in_repr=0xa4a81f0,
in_imp=0xa424dd0)
    at extension/effect.cpp:39
#8 0x084c36dd in build_from_reprdoc (doc=0xa4a5ce8, in_imp=0x0)
    at extension/system.cpp:474
---Type <return> to continue, or q <return> to quit---
#9 0x084c38e4 in Inkscape::Extension::build_from_file (
    filename=0xa424cf0
"/home/aurele/.inkscape/extensions/origamiHelper.inx")
    at extension/system.cpp:507
#10 0x084bacab in Inkscape::Extension::init () at extension/init.cpp:301
#11 0x0807d52b in sp_main_gui (argc=1, argv=0xbfc20424) at main.cpp:677
#12 0x081b78a3 in Inkscape::NSApplication::Application::run
(this=0xbfc20364)
    at application/application.cpp:117
#13 0x0807d41d in main (argc=1, argv=0xbfc20424) at main.cpp:505

Revision history for this message
Buliabyak-users (buliabyak-users) wrote :

Originator: NO

version?

Revision history for this message
Aurele-users (aurele-users) wrote :

Originator: YES

latest SVN gives that error

Bryce Harrington (bryce)
Changed in inkscape:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Ted Gould (ted) wrote :

Comment to test mail filter. Sorry about the static.

Revision history for this message
Krzysztof Kosinski (tweenk) wrote :

Fixed in revision 20782.

Changed in inkscape:
assignee: ted-gould → tweenk
status: Confirmed → Fix Committed
jazzynico (jazzynico)
Changed in inkscape:
milestone: none → 0.47
tags: added: extensions-plugins
removed: extensions
ScislaC (scislac)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.