L.S
This is to report a BUG in EGCS 1.1.2-pre1 (i think),
when using "-O2" when compiling the Hugs interpreter.
I'm afraid it's not too helpful as a bugreport, but I thought i report it
anyway, in the hope it triggers something...
PROGRAM: Haskell interpreter Hugs
URL: http://www.cse.ogi.edu/~mpj/hugs/hugs98.html
(older hugs 1.4 versions had the same problem)
PROBLEM: on HPUX 10.20 using egcs 1.1.1 or 1.1.2-pre1:
a SIGSEGV when the source file static.c is translated with "-O2"
WORKAROUND: 1) don't use "-O2" for the file static.c
2) use regular cc or gcc 2.7.2.3
Also NO problems on linux/386.
Please find a GDB SESSION below:
Regards,
Sietse Achterop
[EMAIL PROTECTED]
===============================
Breakpoint 3 at 0x117ac: file hugs.c, line 1627.
(gdb) run
Starting program: /rug104/home6/users/sietse-tijdelijk/hugs98-990129-all/src/hugs
__ __ __ __ ____ ___ _______________________________________________
|| || || || || || ||__ Hugs 98: The Nottingham and Yale Haskell system
||___|| ||__|| ||__|| __|| Copyright (c) 1994-1999
||---|| ___|| World Wide Web: http://haskell.org/hugs
|| || Report bugs to: [EMAIL PROTECTED]
|| || Version: 990121 Beta _______________________________________________
Haskell 98 mode: Restart with command line option -98 to enable extensions
Reading file "/rug103/home3/users/sietse/share/hugs/lib/Prelude.hs":
Program received signal SIGSEGV, Segmentation fault.
0x2ed5c in tclowlink (v=1546) at scc.c:50
50 List ws = DEPENDS(v); /* adjacency list for v */
(gdb) bt
#0 0x2ed5c in tclowlink (v=1546) at scc.c:50
#1 0x2f0ac in tcscc (bs=-16269, cs=-4069) at scc.c:95
#2 0x2f6b0 in checkDefns () at static.c:5490
#3 0xf638 in addScript (fname=0x4014d4f8
"/rug103/home3/users/sietse/share/hugs/lib/Prelude.hs", len=54198) at hugs.c:754
#4 0xfbac in readScripts (n=1073789352) at hugs.c:881
#5 0xe6e8 in initialize (argc=1, argv=0x4000b06c) at hugs.c:249
#6 0x112c0 in interpreter (argc=1, argv=0x7b03a984) at hugs.c:1470
#7 0xe484 in main (argc=1, argv=0x7b03a984) at hugs.c:173
(gdb)
===========================