RE: GHC 6.4.1 crash on Windows XP

2006-03-01 Thread Simon Marlow
Can you tell which process is crashing?  Is it the GHC process that is
interpreting Setup.hs, or the process invoked by Setup.hs to build the
package?

One thing you could try is compiling Setup.hs to a binary, and running
that instead.

Also, if you could run Setup like this and send us the output:

  $ ./setup build -v

(or the runhaskell version, if that's the only one that crashes)

Cheers,
Simon

On 28 February 2006 10:57, Cyril Schmidt wrote:

 Simon Marlow wrote:
 
 Does it always crash in the same way?
 
 Yes, as far as I can see. Unfortunately, most of the context is
 already lost when the error message pops up. The error code is
 always the same.
 
 Can you fire up GHCi and perform a small evaluation or two?
 
 Yes, this works just fine.
 
 Can you compile small programs, do they run?
 
 Also works fine.
 
 
 Please send us the complete output from commands that crash: eg. add
 -v to the build command above. 
 
 
 I attach the stderr and stdout from
 runhaskell -v5 Setup.hs build
 
 I could also send the sources of the package being compiled, but I do
 not think they are relevant here: it crashes on *any* package.
 
 BTW, I had installed Cabal-1-1.3, but it did not help, so I reverted
 to the version of Cabal that came with the compiler.
 
 It is strange that the same version of GHC works fine on my PC and
 breaks on that of my colleague. To the best of my knowledge, these
 two PCs are not different from each other in any special way. I did
 have some strange crashes on my PC as well, but these were cured by
 upgrading from 6.4 to 
 6.4.1.
 
 Cheers,
 
 Cyril
 
 
 Cyril Schmidt wrote:
 A freshly installed GHC 6.4.1 on my colleague's PC crashes when I
 try to build a package: 
 
 runhaskell Setup.hs build
 
 The effect is easily reproduceable (it shows up on *any* package
 that I try to build). 
 
 Does anyone have any idea of what might be wrong here?

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


RE: GHC 6.4.1 crash on Windows XP

2006-03-01 Thread Cyril Schmidt
 Can you tell which process is crashing?  Is it the GHC process that is
 interpreting Setup.hs, or the process invoked by Setup.hs to build the
 package?

I suspect it is the GHC process that is invoked by Setup.hs, but I do not
have any hard evidence to support this.

 One thing you could try is compiling Setup.hs to a binary, and running
 that instead.

That worked!
I think this counts as evidence for the above.


 Also, if you could run Setup like this and send us the output:

   $ ./setup build -v

 (or the runhaskell version, if that's the only one that crashes)

I did it via runhaskell:

runhaskell Setup.hs build -v
Preprocessing library Vasicek-0.3...
Building Vasicek-0.3...

This is all what it said before the crash...


Just about 15 minutes ago I fixed the problem (at least I hope I did)
by installing the snapshot of GHC 6.4.2 of February 27 (BTW, the
cc1.exe is missing from the tar file).

I also found at least one difference between the PC where the problem
showed up and the one where it did not. Both PCs had Cygwin installed.
On the PC where the problem did not show up, the Cygwin executables
shadowed the Windows programs with the same name: e.g. if I type
'find' in Windows command prompt, I get the UNIX find. On the PC where
the problem did show up, it was the other way: I get the Windows find
(of course, from the bash shell I always get the UNIX find).

I do not know, though, if this is linked in any way to the GHC problem.
I spent some time playing with PATH to try to make the two PCs behave
the same, but I could not (I do not have Admin priviledges). The GHC
was always started from the Windows prompt, never from bash.


Anyway, as the problem is solved by moving from 6.4.1 to 6.4.2, we can
conclude that it was caused by one of the bugs fixed after 6.4.1, and
close the issue for now.  If you, however, would like to continue
investigation, please let me know -- I can easily reproduce
the problem, and I'll be happy to get any extra information for you
(once I know how to get it). I will keep version 6.4.1 for the time being.

Thank you very much for the help.

Cheers,

Cyril



___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: GHC 6.4.1 crash on Windows XP

2006-02-28 Thread Simon Marlow

Cyril Schmidt wrote:

A freshly installed GHC 6.4.1 on my colleague's PC crashes when I try
to build a package:

runhaskell Setup.hs build

The effect is easily reproduceable (it shows up on *any* package
that I try to build).

Does anyone have any idea of what might be wrong here?


Does it always crash in the same way?

Can you fire up GHCi and perform a small evaluation or two?

Can you compile small programs, do they run?

Please send us the complete output from commands that crash: eg. add -v 
to the build command above.


Cheers,
Simon
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


GHC 6.4.1 crash on Windows XP

2006-02-24 Thread Cyril Schmidt
A freshly installed GHC 6.4.1 on my colleague's PC crashes when I try
to build a package:

runhaskell Setup.hs build

The effect is easily reproduceable (it shows up on *any* package
that I try to build).

Does anyone have any idea of what might be wrong here?

Cyril
___

For the record, the information given by Windows at the point of crash:

Exception Information
Code: 0xc005Flags: 0x0
Record: 0x0  Address: 0x0

System Information
Windows NT 5.1 Build: 2600

Module 1
ghc.exe
Image Base: 0x0040  Image Size: 0x0
Checksum: 0x0088d2bdTime Stamp: 0x433058b8

(The IP and SP already point somewhere inside Dr. Watson, as far
as I can see, so I don't think the registers and stack contents
are of any use at this point.)


___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users