Re: Bus Error and Segmentation Fault when Heap Profiling is On
Malcolm Wallace <[email protected]> Fri, 2 Jun 2006 14:06:57 +0100
| Newsgroups | gmane.comp.lang.haskell.nhc.bugs |
|---|---|
| Organization | Dept of Computer Science, University of York |
| Message-ID | <[email protected]> |
Shin-Cheng Mu <[email protected]> wrote: > 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 > > 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 When I profiled your code previously, it worked fine on either a Linux/x86 or Solaris/sparc machine (I don't remember which), but not on MacOS/powerpc, so yes it does look like a platform-specific problem. Strangely, although the profile was generated OK on the other platform, the hp2graph tool for converting it to a graph seg faulted there, but worked correctly on MacOS/powerpc. Regards, Malcolm