[Magic-dev] SCNA.80 and Magic 7.2: Segmentation Fault
R. Timothy Edwards
tim at opencircuitdesign.com
Fri Feb 11 13:15:23 EST 2005
Dear John,
> I also tried downloading and compiling magic 7.3, but compilation quit in
> the graphics module with an error:
> grOGL1.c:37: variable-sized type declared outside of any function.
>
> Any suggestions how to fix this?
Magic-7.3 will compile without the Tcl option if you change line
37 of graphics/grOGL1.c to:
GLubyte **grOGLStipples;
> I just tried installing Jeff Sondeen's SCNA.80 technology file under Magic
> 7.2 (on RedHat Linux 7.2). When I fire it up (magic -T SCNA.80) I get the
> message that it is using this file, and then Magic has a segmentation fault.
I looked at your debug session from 7.2 and the SCNA80 file, but,
unfortunately, it's one of those things where the error shows up
deep in the memory allocation. These errors are notoriously difficult to
trace. The only hint is:
> #8 0x080f2cb2 in mzBuildPlanes () at mzInit.c:317
> #9 0x080f29c9 in MZInit () at mzInit.c:128
> #10 0x0809a213 in mainInitAfterArgs () at main.c:650
so the error occurred when the "mzrouter" section was encountered in the
tech file. I would guess that the source of the error happened while
processing the "cifinput" section. But I can't find anything obvious
there. I ran magic-7.2 on the SCNA.80 tech file and it just came up
and ran. However, this was compiled under Fedora Core 3 with gcc-3.3,
so that introduces a number of differences in the compiled code. I was
using "version 2002a" of SCNA.80.tech27.
Regards,
Tim
+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim) | email: tim.edwards at multigig.com |
| MultiGiG, Inc. | web: http://www.multigig.com |
| 3600 Glen Canyon Road | phone: (831) 440-0600 ext. 20 |
| Scotts Valley, CA 95066 | cell: (240) 401-0616 |
+--------------------------------+-------------------------------------+
More information about the magic-dev
mailing list