Profiling + External Core = trouble
Kirsten Chevalier
krc at uclink.berkeley.edu
Wed Apr 2 23:44:47 EST 2003
On Tue, Apr 01, 2003 at 04:37:35PM -0800, Kirsten Chevalier wrote:
>> In case anyone is wondering, this particular problem seems to be fixed after
> doing a cvs update, but then, any External Core program that was compiled for
> profiling would segfault. I was able to fix this by modifying the EnterFunCCS
> function in rts/Profiling.c to change the line:
> if (ccsfn->root->is_caf == CC_IS_CAF) {
> to
> if ((ccsfn->root != NULL) && (ccsfn->root->is_caf == CC_IS_CAF)) {
>
> I don't know whether that's the right solution, but it seems to work for me.
It turns out that the real problem was that the External Core renamer was
unconditionally filling in "[]" for the imports, which was screwing up
profiling bigtime. I fixed it, but I don't know whether y'all want my code...
(for some reason I feel like I'm talking to myself here.)
--
Kirsten Chevalier * krc at uclink.berkeley.edu * Often in error, never in doubt
More information about the Glasgow-haskell-bugs
mailing list