Segmentation fault while exporting to Plain SVG

Bug #1202753 reported by Anshul Bhatnagar on 2013-07-18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Tomasz Boczkowski

Bug Description

Inkscape crashes when we try and export the attached SVG from the SVG test suite to Plain SVG.

command used:
inkscape -z orig_shapes-polygon-02-t.svg --export-plain-svg=output.svg

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

Also tried using the UI. Some issue.

Anshul Bhatnagar (anshul223) wrote :
su_v (suv-lp) wrote :

Please provide information about OS/platform and Inkscape version (see Inkscape menu 'Help > About Inkscape').

tags: added: cli crash exporting svg
removed: plain-svg segmentation-fault
Changed in inkscape:
importance: Undecided → High
status: New → Incomplete

Ubuntu 12.04.2 LTS and Inkscape r9886
Ubuntu 12.04.2 LTS and Inkscape 0.48+devel r12426

With GUI "Save as" plain SVG. Confirmed, crashes for me aswell with both versions listed above.

su_v (suv-lp) wrote :

Reproduced on OS X 10.7.5 with 0.48.x r9950 and 0.48+devel r12425 (backtrace from trunk r12425 attached).

Changed in inkscape:
status: Incomplete → Triaged
su_v (suv-lp) wrote :

Reduced test case based on 'orig_shapes-polygon-02-t.svg' attached: AFAICT the object which triggers the crash is

    <!-- Test polygon without points attribute. -->
    <polygon xml:id="polygon-01" fill="red" stroke="black" />

This patch adds NULL pointer check in sp_polygon_write, avoiding crash.

Also sending patch for 0.48.x series.

su_v (suv-lp) on 2013-07-25
Changed in inkscape:
assignee: nobody → Tomasz Boczkowski (penginsbacon)
milestone: none → 0.48.5
status: Triaged → In Progress
tags: added: backport-proposed
su_v (suv-lp) wrote :

Attaching updated version of patch based on current trunk (r12572)

(original one no longer applies - please review new version)

jazzynico (jazzynico) wrote :

Fix confirmed on Windows XP, 0.48.x branch revision 9663.

Updated patch for ikscape trunk confirmed on revision 12583 on Debian 7.1

Kris (kris-degussem) wrote :

Thanks for the path Anshul.
Fix committed to trunk revision 12839.

Kris (kris-degussem) wrote :

Committed for 0.48.5 in 0.48.x branch revision 9989.

Changed in inkscape:
status: In Progress → Fix Committed
Kris (kris-degussem) on 2013-12-11
tags: removed: backport-proposed
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers