Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!hacker!hacker.uucp From: steve@hacker.uucp (Stephen M. Youndt) Newsgroups: comp.unix.sysv386 Subject: THANKS!! Ghostscript FP exception solved Summary: problem solved Message-ID: <223@hacker.UUCP> Date: 22 Mar 91 03:29:28 GMT Sender: steve@hacker.UUCP Organization: HaL Systems, Burke, VA Lines: 22 Thanks to Dick Dunn for the following: >I didn't see your first posting, but I have built Ghostscript on ISC UNIX. >There is a problem in some 386 C compilers in handling conditional ex- >pressions involving floating-point; I found one such problem and just coded >around it. > >With sdb, you're right, the connection to the source for a core dump is >worthless. However, you can get a stacktrace (t) to find out what >procedure you were in, find the source file containing the procedure, and >use the line number it gives you--that'll get you pretty close. > The problem was indeed a conditional. In gsline.c around line 84 is an expression using the ternary operator ( a ? b : c). I recoded the statement as an if-else statement, and ghostscript came up like a champ. Thanks again to everybody that offered suggestions, and thanks, Dick, for giving me the hints I needed to get this working. smy -- Stephen M. Youndt / "Remember, no matter where you go, uunet!hacker!steve / there you are." -- B. Banzai