From Malcolm.Wallace at cs.york.ac.uk Fri Jun 2 09:06:57 2006 From: Malcolm.Wallace at cs.york.ac.uk (Malcolm Wallace) Date: Fri Jun 2 09:01:02 2006 Subject: [nhc-bugs] Bus Error and Segmentation Fault when Heap Profiling is On In-Reply-To: <7D6EED92-927D-474C-863C-B16120CF2B28@iis.sinica.edu.tw> References: <7D6EED92-927D-474C-863C-B16120CF2B28@iis.sinica.edu.tw> Message-ID: <20060602140657.386eb572.Malcolm.Wallace@cs.york.ac.uk> Shin-Cheng Mu wrote: > scm$ cat > temp.xml > 123 > 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