segfault if an inx has an empty <item> element
Bug #168979 reported by
Aurele-users
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.
Changed in inkscape: | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in inkscape: | |
milestone: | none → 0.47 |
tags: |
added: extensions-plugins removed: extensions |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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. 0xa3dab88 "Folds and Creases", desc=0x0, Inkscape: :Extension: :Parameter: :SCOPE_ USER, ext=0xa4243d8, paramenum. cpp:77 children( child_repr) ->content( ); 0xa3dab88 "Folds and Creases", desc=0x0, Inkscape: :Extension: :Parameter: :SCOPE_ USER, ext=0xa4243d8, paramenum. cpp:77 :Extension: :Parameter: :make (in_repr=0xa4a9b70,
[Switching to Thread -1208740128 (LWP 15119)]
ParamComboBox (this=0xa424478, name=0xa4946c0 "fold",
guitext=
scope=
xml=0xa4a9b70) at extension/
77 const char * contents =
sp_repr_
(gdb) bt
#0 ParamComboBox (this=0xa424478, name=0xa4946c0 "fold",
guitext=
scope=
xml=0xa4a9b70) at extension/
#1 0x084bbd7e in Inkscape:
in_ ext=0xa4243d8) at extension/ parameter. cpp:153 0xa3d7a80 "Stylist", desc=0x0, Inkscape: :Extension: :Parameter: :SCOPE_ USER, ext=0xa4243d8, paramnotebook. cpp:78 :Extension: :ParamNotebookP age::makepage ( repr=0xa4a9bf0, in_ext=0xa4243d8) at paramnotebook. cpp:176 :Extension: :Parameter: :SCOPE_ USER, paramnotebook. cpp:236 :Extension: :Parameter: :make (in_repr=0xa4a9c70,
#2 0x084bcb8d in ParamNotebookPage (this=0xa41d9d8, name=0xa3d7aa0
"stylist",
guitext=
scope=
xml=0xa4a9bf0) at extension/
#3 0x084bccaf in Inkscape:
in_
extension/
#4 0x084bcf22 in ParamNotebook (this=0xa424e38, name=0xa4946c8 "tab",
guitext=0x0, desc=0x0,
scope=Inkscape:
ext=0xa4243d8, xml=0xa4a9c70) at extension/
#5 0x084bbdd2 in Inkscape:
in_ ext=0xa4243d8) at extension/ parameter. cpp:155 imp=0xa424dd0) at extension/ extension. cpp:96 effect. cpp:39 system. cpp:474 :Extension: :build_ from_file ( 0xa424cf0 aurele/ .inkscape/ extensions/ origamiHelper. inx") system. cpp:507 :Extension: :init () at extension/ init.cpp: 301 :NSApplication: :Application: :run application. cpp:117
#6 0x084b77fa in Extension (this=0xa4243d8, in_repr=0xa4a81f0,
in_
#7 0x084c63a2 in Effect (this=0xa4243d8, in_repr=0xa4a81f0,
in_imp=0xa424dd0)
at extension/
#8 0x084c36dd in build_from_reprdoc (doc=0xa4a5ce8, in_imp=0x0)
at extension/
---Type <return> to continue, or q <return> to quit---
#9 0x084c38e4 in Inkscape:
filename=
"/home/
at extension/
#10 0x084bacab in Inkscape:
#11 0x0807d52b in sp_main_gui (argc=1, argv=0xbfc20424) at main.cpp:677
#12 0x081b78a3 in Inkscape:
(this=0xbfc20364)
at application/
#13 0x0807d41d in main (argc=1, argv=0xbfc20424) at main.cpp:505