logo       

Re: Profiling + External Core = trouble: msg#00005

lang.haskell.glasgow.bugs

Subject: Re: Profiling + External Core = trouble

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@xxxxxxxxxxxxxxxxxxx * Often in error, never in doubt


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise