Attached are two programs, both of which are supposed to print a string.
Long.hs looks fairly simple to me. However when compiled with
ghc -O2, I get a segmentation fault:
> ghc Long.hs -o long -O2
> ./long
> Segmentation Fault
With ghc -O or ghc it works. I suppose this is probably a memory
pr
On Fri, Nov 05, 1999 at 15:59:29 +0100, George Russell wrote:
> Long.hs looks fairly simple to me. However when compiled with
> ghc -O2, I get a segmentation fault:
> > ghc Long.hs -o long -O2
> > ./long
> > Segmentation Fault
works, regardless of '', '-O', '-O2'...
> ABC.hs is a little more co
> Attached are two programs, both of which are supposed to
> print a string.
>
> Long.hs looks fairly simple to me. However when compiled with
> ghc -O2, I get a segmentation fault:
> > ghc Long.hs -o long -O2
> > ./long
> > Segmentation Fault
> With ghc -O or ghc it works. I suppose this is p
Simon Marlow wrote:
> This one is probably fixed by the commit I made last thing Friday;
> non-blocking writes weren't happening properly. I'll take a look at your
> other problem on Monday - I assume this is a ghc built from recently
> checked-out CVS sources? If so, what date?
Yes it is. They
> Simon Marlow wrote:
> > This one is probably fixed by the commit I made last thing Friday;
> > non-blocking writes weren't happening properly. I'll take
> a look at your
> > other problem on Monday - I assume this is a ghc built from recently
> > checked-out CVS sources? If so, what date?
> Y
Simon Marlow wrote:
[snip]
> I can't reproduce either of these bugs with the current sources. The first
> one may be dependent on your gcc version - I'm using gcc 2.95.2 here
> (earlier versions have known optimiser bugs). The second bug was fixed late
> last week.
I have now recompiled GHC from
> I have now recompiled GHC from the latest CVS sources. This
> does indeed fix the
> first bug. The second (the one which caused the segmentation
> fault) is still
> there, but I am only using gcc 2.95.1. But it only happens
> with -O2, which
> is not a very useful option anyway, so perhap