Bus Error when profiled

Sven Panne Sven_Panne at BetaResearch.de
Fri Sep 20 03:28:17 EDT 2002


Dean Herington wrote:
> I compiled a program with [...]  When I run it, it evokes a "Bus
> Error" (with or without "+RTS -p").  Any ideas what's wrong?
>
> I'm using GHC 5.02.3 on Sparc/Solaris.

Do you use the FFI and don't use -O or -fvia-C? There were some
problems with the native code generator on SPARC, which have been
fixed in 5.04.1. So as a rule of thumb, try using -O or -fvia-C on
SPARC if you're experiencing segfaults or the like. Another source of
trouble is GCC 3.x on SPARC, but I've lost track in this area. SimonM?

Anyway, a program demonstrating the bug would be helpful.

Cheers,
   S.



More information about the Glasgow-haskell-bugs mailing list