
Shin-Cheng Mu
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