After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 108380 - Infinite loops on zero radius arcs
Infinite loops on zero radius arcs
Status: RESOLVED FIXED
Product: librsvg
Classification: Core
Component: general
2.2.x
Other HP-UX
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2003-03-14 14:15 UTC by joshg
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.1/2.2



Description joshg 2003-03-14 14:15:57 UTC
Filed on behalf of Ross Alexander; he posted to nautilus-list -


I have the following simple example.

<?xml version="1.0" standalone="yes"?>
<svg width="3100" height="2200">
<g style="stroke-width: 4pt;">
<rect x="0" y="0" width="310" height="220" style="fill:pink;"/>
</g>
</svg>

This works on linux, but only by luck.  On HP-UX it goes into infinite
loops.  Below is a trace from gdb.


  • #0 rsvg_path_arc
    at rsvg-path.c line 153
  • #1 rsvg_parse_path_do_cmd
    at rsvg-path.c line 364
  • #2 rsvg_parse_path_data
    at rsvg-path.c line 497
  • #3 rsvg_parse_path
    at rsvg-path.c line 549
  • #4 rsvg_render_path
    at rsvg-shapes.c line 256
  • #5 rsvg_start_rect
    at rsvg-shapes.c line 574
  • #6 rsvg_start_element
    at rsvg.c line 830
  • #7 xmlParseStartTag
    at parser.c line 6747
  • #8 xmlParseTryOrFinish
    at parser.c line 8574
  • #9 xmlParseChunk
    at parser.c line 9011
  • #10 rsvg_handle_write_impl
    at rsvg.c line 998
  • #11 rsvg_handle_write
    at rsvg.c line 1189
  • #12 rsvg_pixbuf_from_file_with_size_data_ex
    at rsvg-file-util.c line 134
  • #13 rsvg_pixbuf_from_file_with_size_data
    at rsvg-file-util.c line 188
  • #14 rsvg_pixbuf_from_file_at_zoom
    at rsvg-file-util.c line 405
  • #15 main
    at test-rsvg.c line 100
  • #4 rsvg_render_path
    at rsvg-shapes.c line 256


Many thanks

Ross

---------------------------------------------------------------------------------
Ross Alexander                           "We demand clearly defined
MIS - NEC Europe Limited            boundaries of uncertainty and
Work ph: +44 20 8752 3394         doubt."
Comment 1 joshg 2003-03-14 14:19:31 UTC
See original post:
http://mail.gnome.org/archives/nautilus-list/2003-March/msg00116.html
Comment 2 Dominic Lachowicz 2003-03-14 14:44:37 UTC
what is the value of n_segs and th_arc at rsvg-path.c:153 on your hpux
machine
Comment 3 Ross Alexander 2003-03-14 14:53:37 UTC
(gdb) print n_segs
$3 = 2147483647
(gdb) print th_arc
$4 = nan(0x4000000000000)
Comment 4 Dominic Lachowicz 2003-03-14 15:36:52 UTC
patch committed, as well as some w3 rect conformance fixes. thanks.