[nhc-bugs] Bus Error and Segmentation Fault when Heap Profiling is On

Shin-Cheng Mu scm at iis.sinica.edu.tw
Mon May 22 09:39:42 EDT 2006


Hi,

This is another potential bug. Unfortunately I currently
cannot reproduce it on smaller programs. I tried to do
heap profiling on the following code:

    http://www.psdlab.org/~scm/hx.tar.gz

The main program is hxpc.hs. I tried to compile it with

    hmake -nhc98 -p hxpc

and run it on a small sample input

    scm$ cat > temp.xml
    <a><b><item>123</item></b><c></c></a>
    scm$ ./hxpc temp.xml
    Bus error
    scm$ ./hxpc temp.xml +RTS -p
    Segmentation fault

Increasing the heap size does not seem to help.

If I compile the program without the -p option, it runs fine.

Since Malcolm Wallace has already profiled the program
on his machine, it seems to be a platform specific problem
I installed NHC98 1.18_4 using Darwin Ports, on a PowerPC
G4 based Mac, running OS X 10.4 and GCC 4.0.

sincerely,
Shin-Cheng Mu 


More information about the Nhc-bugs mailing list