
Hi, Making hat 2.0 resulted in a system crash. Environment: Redhat Linux 7.2 i686 SMP GHC 5.02.3 hamke 3.05 Unable to capture output. A later try resulted in "segmentation fault." Best Regards, Byron Hale byron.hale@einfo.com

Byron Hale
Making hat 2.0 resulted in a system crash. Environment: Redhat Linux 7.2 i686 SMP GHC 5.02.3 hamke 3.05
Unable to capture output. A later try resulted in "segmentation fault."
I understand that you couldn't capture the output of the first build, but can you supply a full log of the second build that resulted in a seg fault? [ To be honest, this sounds like a problem with your machine, not with Hat, but it is difficult to be certain without more detailed information from the logs. Are you by any chance using a laptop with ACPI support? ] Regards, Malcolm

At 02:22 PM 6/15/2002 +0100, you wrote:
Byron Hale
writes: Making hat 2.0 resulted in a system crash. Environment: Redhat Linux 7.2 i686 SMP GHC 5.02.3 hmake 3.05
Unable to capture output. A later try resulted in "segmentation fault."
I understand that you couldn't capture the output of the first build, but can you supply a full log of the second build that resulted in a seg fault?
I tried redirecting output to a text file, but the results weren't very useful. Following is what I was able to capture from that: cd src/hat/lib; make HC=ghc all install-ghc make[1]: Entering directory `/home/bhale/dl/programming/functional/haskell98/hat/v2.0/hat-2.00/src/hat/lib' /home/bhale/dl/programming/functional/haskell98/hat/v2.0/hat-2.00/script/hat-trans -trusted -prelude PreludeBasic.hs Wrote TPreludeBasic.hs ghc -package-name hat -package lang -fglasgow-exts -fno-warn-overlapping-patterns -fno-warn-missing-methods -cpp -c -o /home/bhale/dl/programming/functional/haskell98/hat/v2.0/hat-2.00/targets/ix86-Linux/obj/hatlib/ghc/TPreludeBasic.o TPreludeBasic.hs
[ To be honest, this sounds like a problem with your machine, not with Hat, but it is difficult to be certain without more detailed information from the logs. Are you by any chance using a laptop with ACPI support? ]
Hm... Compatibility is everything for me. I'd rather have software that runs rather than something a little faster or bigger. It could always be my machine, though. Also, I'm not a Linux/Unix guru, although I'm getting better at hacking around in it and Redhat is improving from version to version. The hardware is a mid-tower with IDE (HD & DVD-ROM) a floppy. There's an extra IDE interface for an extra drive, but it's not installed at the moment. So the hardware is pretty simple and generic. Should I look for a system log somewhere? How long should it take for twin 686 (P3)'s to compile this when running at 850 MHz? No need to answer these, but I am curious. Best Regards, Byron

At 09:50 AM 6/15/2002 -0700, you wrote:
At 02:22 PM 6/15/2002 +0100, you wrote:
Byron Hale
writes: Making hat 2.0 resulted in a system crash. Environment: Redhat Linux 7.2 i686 SMP GHC 5.02.3 hmake 3.05
I understand that you couldn't capture the output of the first build, but can you supply a full log of the second build that resulted in a seg fault?
The problem seems to be a bug in gcc 2.96: cd src/hat/lib; make HC=ghc all install-ghc make[1]: Entering directory `/home/bhale/dl/programming/functional/haskell98/hat/v2.0/hat-2.00/src/hat/lib' /home/bhale/dl/programming/functional/haskell98/hat/v2.0/hat-2.00/script/hat-trans -trusted -prelude PreludeTracing.hs Wrote TPreludeTracing.hs ghc -package-name hat -package lang -fglasgow-exts -fno-warn-overlapping-patterns -fno-warn-missing-methods -cpp -c -o /home/bhale/dl/programming/functional/haskell98/hat/v2.0/hat-2.00/targets/ix86-Linux/obj/hatlib/ghc/TPrelude.o TPreludeTracing.hs mv PreludeTracing.hx Prelude.hx /home/bhale/dl/programming/functional/haskell98/hat/v2.0/hat-2.00/script/hat-trans -trusted -prelude IxTracing.hs Wrote TIxTracing.hs ghc -package-name hat -package lang -fglasgow-exts -fno-warn-overlapping-patterns -fno-warn-missing-methods -cpp -c -o /home/bhale/dl/programming/functional/haskell98/hat/v2.0/hat-2.00/targets/ix86-Linux/obj/hatlib/ghc/TIx.o TIxTracing.hs make[1]: Leaving directory `/home/bhale/dl/programming/functional/haskell98/hat/v2.0/hat-2.00/src/hat/lib' gcc: Internal Error: segmentation fault (program as) See http://www.bugzilla.redhat.com/bugzilla. make[1]: *** [/home/bhale/dl/programming/functional/haskell98/hat/v2.0/hat-2.00/targets/i86-Linux/obj/hatlib/ghc/TIx.o] Error 1 make: *** [targets/i86-Linux/hat-lib-ghc] Error 2 Best Regards, Byron

Byron Hale
The problem seems to be a bug in gcc 2.96: gcc: Internal Error: segmentation fault (program as)
Curious, because I have almost exactly the same environment as you: RedHat 7.2, i686, ghc-5.02.2, hmake-3.05, gcc-2.96 and it compiles just fine for me. However, I have seen segmentation faults in gcc which are due to hardware errors. When I have watched this happen before, usually gcc gives a seg fault, then if you restart the `make', it successfully completes the task that failed before, then continues a bit further and seg faults again. You can do that a few times, but eventually the whole system has a hard crash. It often means either bad RAM, or your CPU is overheating. Can you check whether the processor cooling fans are operating correctly? Older ball-bearing fans sometimes get sticky or clog up with dust and no longer turn. Also, I mentioned ACPI earlier, because that is a form of hardware/BIOS control where often the CPU fans are only switched on in response to a thermal sensor. The Linux 2.4 series kernels do not implement the thermal control, so it is very easy to overheat the processor just by max-ing it out for 15-20 minutes. Regards, Malcolm

At 12:27 PM 6/16/2002 +0100, you wrote:
Byron Hale
writes: The problem seems to be a bug in gcc 2.96: gcc: Internal Error: segmentation fault (program as)
Curious, because I have almost exactly the same environment as you: RedHat 7.2, i686, ghc-5.02.2, hmake-3.05, gcc-2.96 and it compiles just fine for me.
I actually found an upgrade of gcc 2.96-98 to gcc 2.96-110 on Redhat's site and upgraded to it with the appropriate packages also installed to assure system stability. It upgraded without complaint. However, the problem persists and that is the only rpm upgrade for gcc 2.96-98.
However, I have seen segmentation faults in gcc which are due to hardware errors. When I have watched this happen before, usually gcc gives a seg fault, then if you restart the `make', it successfully completes the task that failed before, then continues a bit further and seg faults again. You can do that a few times, but eventually the whole system has a hard crash.
It often means either bad RAM, or your CPU is overheating. Can you check whether the processor cooling fans are operating correctly? Older ball-bearing fans sometimes get sticky or clog up with dust and no longer turn. Also, I mentioned ACPI earlier, because that is a form of hardware/BIOS control where often the CPU fans are only switched on in response to a thermal sensor. The Linux 2.4 series kernels do not implement the thermal control, so it is very easy to overheat the processor just by max-ing it out for 15-20 minutes.
Well, I've opened the case. The fans run all the time and the CPUs are just above room temperature. The RAM is lifetime warranty PC133 ECC running on a 100MHz system bus, which should give some degree of fault tolerance, but maybe doesn't. However, the failure always happens at the same place. A former, somewhat grizzled EE boss once pointed out that hardware errors tend to be random, but that software errors tend to be repeatable. So, I'm leaning toward the idea that a C/C++ pointer is being de referenced incorrectly. Best Regards, Byron

On a cold night last week, with the door open and a coat on, I successfully installed hat 2.00. Perhaps it was a thermal problem after all, or maybe I need to slow the processor. Best Regards, Byron At 12:27 PM 6/16/2002 +0100, you wrote:
Byron Hale
writes: The problem seems to be a bug in gcc 2.96: gcc: Internal Error: segmentation fault (program as)
Curious, because I have almost exactly the same environment as you: RedHat 7.2, i686, ghc-5.02.2, hmake-3.05, gcc-2.96 and it compiles just fine for me.
However, I have seen segmentation faults in gcc which are due to hardware errors. When I have watched this happen before, usually gcc gives a seg fault, then if you restart the `make', it successfully completes the task that failed before, then continues a bit further and seg faults again. You can do that a few times, but eventually the whole system has a hard crash.
It often means either bad RAM, or your CPU is overheating. Can you check whether the processor cooling fans are operating correctly? Older ball-bearing fans sometimes get sticky or clog up with dust and no longer turn. Also, I mentioned ACPI earlier, because that is a form of hardware/BIOS control where often the CPU fans are only switched on in response to a thermal sensor. The Linux 2.4 series kernels do not implement the thermal control, so it is very easy to overheat the processor just by max-ing it out for 15-20 minutes.
Regards, Malcolm _______________________________________________ Hat mailing list Hat@haskell.org http://www.haskell.org/mailman/listinfo/hat
participants (2)
-
Byron Hale
-
Malcolm Wallace