Segmentation fault while exporting to Plain SVG

Bug #1202753 reported by Anshul Bhatnagar
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
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 www.inkscape.org
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.

Revision history for this message
Anshul Bhatnagar (anshul223) wrote :
Revision history for this message
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
Revision history for this message
Christoffer Holmstedt (christoffer-holmstedt) wrote :

Ubuntu 12.04.2 LTS and Inkscape 0.48.3.1 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.

Revision history for this message
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
Revision history for this message
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" />

Revision history for this message
Tomasz Boczkowski (penginsbacon) wrote :

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

Revision history for this message
Tomasz Boczkowski (penginsbacon) wrote :

Also sending patch for 0.48.x series.

su_v (suv-lp)
Changed in inkscape:
assignee: nobody → Tomasz Boczkowski (penginsbacon)
milestone: none → 0.48.5
status: Triaged → In Progress
tags: added: backport-proposed
Revision history for this message
su_v (suv-lp) wrote :

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

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

Revision history for this message
jazzynico (jazzynico) wrote :

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

Revision history for this message
Tomasz Boczkowski (penginsbacon) wrote :

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

Revision history for this message
Kris (kris-degussem) wrote :

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

Revision history for this message
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)
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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