
Hi, I have a ghc program that appears to be causing a memory error (either segfaulting or tripping up X and killing my session). The program is rather disorganised, so I'm trying to reduce it to something more compact before submitting a report. Is there anything that would help me locate the source of the error so I know what to include/exclude, apart from trial and error? The error occured with both ghc5 (whatever is in debian stable) and 6.0.1 (again from debian package). Thanks, Andrew -- http://www.acooke.org/andrew

In local.glasgow-haskell-users, you wrote:
I have a ghc program that appears to be causing a memory error (either segfaulting or tripping up X and killing my session).
Are you sure it's segfaulting? You might simply run low on memory and your system starts killing processes to free up memory. Maybe you can find more details in the syslog. -- http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME rage against the finite state machine

no, i'm not sure it's segfaulting (i should have used a less specific term), but i am seeing memory related errors. i've had messages in the syslog that describes a null pointer passed to the kernel and i've also just seen an error on stderr that says internal error: evacuate: strange closure type 39216 Please report this as a bug to glasgow-haskell-bugs@haskell.org, or http://www.sourceforge.net/projects/ghc/ the trouble is that when if first got the error with ghc5, i updated my system. not only ghc, but also a slew of other packages. now i'm worried that there are two different errors (one possibly related to X or Mozilla), or even that ghc is merely the victim of an error in some other program. i'm about to run the program on windows, using the parameters that gave that message, to see if i can reproduce it. so far my attempts to restrict the program scope and repeat the error have failed. once i'm a little clearer on what's happening i'll file a bug report. i just wondered whether there was any way of getting the system to give more informative errors when it dies (eg recompiling ghc in some kind of debug mode). cheers, andrew ps. just got a segmentation fault re-running the code that previously gave the error above :o/ Volker Stolz said:
In local.glasgow-haskell-users, you wrote:
I have a ghc program that appears to be causing a memory error (either segfaulting or tripping up X and killing my session).
Are you sure it's segfaulting? You might simply run low on memory and your system starts killing processes to free up memory. Maybe you can find more details in the syslog. -- http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME rage against the finite state machine
participants (2)
-
andrew cooke
-
Volker Stolz