https://bugzilla.novell.com/show_bug.cgi?id=860322 https://bugzilla.novell.com/show_bug.cgi?id=860322#c0 Summary: Xfig crashes on dash-dotted lines (gcc bug?) Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: X11 Applications AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: munderl@tnt.uni-hannover.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Created an attachment (id=575749) --> (http://bugzilla.novell.com/attachment.cgi?id=575749) Patch against xfig 3.2.5c User-Agent: Opera/9.80 (X11; Linux x86_64) Presto/2.12.388 Version/12.15 If a line style is set to dash-dotted in xfig, xfig seg faults. Reproducible: Always Steps to Reproduce: 1. Open xfig 2. Draw a line 3. Set line style to dash-dotted Actual Results: seg fault If I compile the sources myself, same crash. valgrind reports uninitilized values. If optimizations are turned off (-O0), xfig runs fine and valgrind reports no problems. I tracked the problem down to a static int variable in w_drawprim.c, specifying the size of the dash-dot description array. I made it volatile (patch attached) and everything is fine now, even with optimizations turned on again. Therefore it may be a problem of gcc, or gcc is confused by the xfig code - no clue. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.