X-Spam-Check-By: sourceware.org
Message-ID: <15464636.1144417735692.JavaMail.tomcat@pne-ps2-sn2>
Date: Fri, 7 Apr 2006 15:48:55 +0200 (MEST)
From: ilya beilin <ilya@telia.com>
Reply-To: ilya beilin <ilya@telia.com>
To: cygwin@cygwin.com
Subject: Bug report: fig2dev -L latex segfaults on cygwin
Cc: xfig-bugs@epb1.lbl.gov
Mime-Version: 1.0
Content-Type: text/plain;charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
X-clientstamp: [213.66.167.99]
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Hello,
fig2dev version 3.2.4 crashes when converting certain line styles to 
latex.
I could reproduce the crash only on Cygwin, on Linux the translation 
works somehow
(the line style is apparently not supported and is replaced by the 
default one).

Here is the test case:
$ cat crashes-on-cygwin.fig
#FIG 3.2
Portrait
Center
Inches
Letter
100.00
Single
-2
1200 2
2 4 3 1 0 7 50 -1 -1 4.000 0 0 7 0 0 5
         1125 2850 600 2850 600 2250 1125 2250 1125 2850
$ fig2dev.exe -L latex crashes-on-cygwin.fig
\setlength{\unitlength}{3947sp}%
%
\begingroup\makeatletter\ifx\SetFigFont\undefined%
\gdef\SetFigFont#1#2#3#4#5{%
  \reset@font\fontsize{#1}{#2pt}%
  \fontfamily{#3}\fontseries{#4}\fontshape{#5}%
  \selectfont}%
\fi\endgroup%
\begin{picture}(549,624)(589,-2023)
\thinlines
{\color[rgb]{0,0,0}\put(706,-1906){\oval(210,210)[bl]}
\put(706,-1516){\oval(210,210)[tl]}
\put(1021,-1906){\oval(210,210)[br]}
\put(1021,-1516){\oval(210,210)[tr]}
Segmentation fault (core dumped)

The example and the system details are in the attachment.

/Ilya

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

