trouble running GHCi 6.4 on PowerPC GNU/Linux

2006-02-21 Thread K.D.P.Ross

Hello-

I am having a bit of trouble running GHCi on my GNU/Linux  
distribution and was

referred to this mail address by the crash message:

[begin terminal session-
$ ghci
   ___ ___ _
  / _ \ /\  /\/ __(_)
/ /_\// /_/ / /  | |  GHC Interactive, version 6.4, for Haskell 98.
/ /_\\/ __  / /___| |  http://www.haskell.org/ghc/
\/\/ /_/\/|_|  Type :? for help.

Loading package base-1.0 ... linking ... done.
Loading package mtl-1.0 ... linking ... done.
Loading package lang-1.0 ... linking ... done.
Loading package QuickCheck-1.0 ... linking ... done.
Loading package readline-1.0 ... linking ... done.
Loading package unix-1.0 ... ghc-6.4: Unable to mmap( MAP_FIXED ) for  
Jump Islands


ghc-6.4: panic! (the `impossible' happened, GHC version 6.4):
loadObj: failed

Please report it as a compiler bug to glasgow-haskell-bugs@haskell.org,
or http://sourceforge.net/projects/ghc/.


$
-end terminal session]

I am running Kubuntu 5.10 (Breezy Badger) with kernel Linux  
2.6.12-9-powerpc
on a 400mhz iBook. I am not sure what other information would help  
you in
diagnosing the problem, but I am, of course, happy to provide  
anything else that

would be helpful.

//cheers
-Kyle Ross



PGP.sig
Description: This is a digitally signed message part
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


weird activation record found on stack

2006-02-21 Thread Ben Clifford


Hello.

I got this one off. The rest of the time this program gives a simple 
Segmentation Fault near startup (about 1 in 5 times), and the other 4 in 5 
times runs through to completion.


$ ~/src/haskellgitmaildir/a.out master mundungusmaster
base=aeb5d7eb11acbb81d77f37d381b75a51a8897eb9
a.out: internal error: scavenge_stack: weird activation record found on 
stack: 59

Please report this as a bug to glasgow-haskell-bugs@haskell.org,
or http://www.sourceforge.net/projects/ghc/
piva:~/tmp/littlemaildir benc$


For my reference, the version of the code that produces this is commit 
9c3e10ea248b1391851ac0d7f8e15f3b0939ec01.


Possibly of relevance, I'm doing some forkIO and running processes.

piva:~/tmp/littlemaildir benc$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.4.1

piva:~/tmp/littlemaildir benc$ uname -a
Darwin piva.hawaga.org.uk 8.3.0 Darwin Kernel Version 8.3.0: Mon Oct  3 
20:04:04 PDT 2005; root:xnu-792.6.22.obj~2/RELEASE_PPC Power Macintosh 
powerpc


What other info do you want?

Ben
--

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


memory allocation (non) bug

2006-02-21 Thread Iain Gray
Running primes1 from the following code in The Haskell Road to  
Logic, Maths and Programming


ldp :: Integer - Integer
ldp n = ldpf primes1 n

ldpf :: [Integer] - Integer - Integer
ldpf (p:ps) n | rem n p == 0 = p
  | p^2  n  = n
  | otherwise= ldpf ps n

primes1 :: [Integer]
primes1 = 2 : filter prime [3..]

prime :: Integer - Bool
prime n | n  1 = error not a positive integer
| n == 1= False
| otherwise = ldp n == n

I got the following message after a lot of lines of output, and a  
very long run.


,100038989,100038997,100039003,100039007,100039019,100039031,100039039
interactive: internal error: memory allocation failed (requested  
2097152 bytes)

Please report this as a bug to glasgow-haskell-bugs@haskell.org,
or http://www.sourceforge.net/projects/ghc/

I am using a 2 GHz G5 iMac with 1 Gbyte RAM, OS X 10.4.5 and GHC(I)  
6.4.1. Further I can hardly consider this a bug as HUGS on a PC gave  
up with a garbage collection error when the primes had reached only  
just over three million. Thought you should know anyway.


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


Re: weird activation record found on stack

2006-02-21 Thread Simon Marlow

Ben Clifford wrote:


Hello.

I got this one off. The rest of the time this program gives a simple 
Segmentation Fault near startup (about 1 in 5 times), and the other 4 in 
5 times runs through to completion.


$ ~/src/haskellgitmaildir/a.out master mundungusmaster
base=aeb5d7eb11acbb81d77f37d381b75a51a8897eb9
a.out: internal error: scavenge_stack: weird activation record found on 
stack: 59

Please report this as a bug to glasgow-haskell-bugs@haskell.org,
or http://www.sourceforge.net/projects/ghc/
piva:~/tmp/littlemaildir benc$


For my reference, the version of the code that produces this is commit 
9c3e10ea248b1391851ac0d7f8e15f3b0939ec01.


Possibly of relevance, I'm doing some forkIO and running processes.

piva:~/tmp/littlemaildir benc$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.4.1

piva:~/tmp/littlemaildir benc$ uname -a
Darwin piva.hawaga.org.uk 8.3.0 Darwin Kernel Version 8.3.0: Mon Oct  3 
20:04:04 PDT 2005; root:xnu-792.6.22.obj~2/RELEASE_PPC Power Macintosh 
powerpc


What other info do you want?


Could you provide us with the code to reproduce the bug?

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


Re: trouble running GHCi 6.4 on PowerPC GNU/Linux

2006-02-21 Thread Simon Marlow

K.D.P.Ross wrote:

Hello-

I am having a bit of trouble running GHCi on my GNU/Linux  distribution 
and was

referred to this mail address by the crash message:

[begin terminal session-
$ ghci
   ___ ___ _
  / _ \ /\  /\/ __(_)
/ /_\// /_/ / /  | |  GHC Interactive, version 6.4, for Haskell 98.
/ /_\\/ __  / /___| |  http://www.haskell.org/ghc/
\/\/ /_/\/|_|  Type :? for help.

Loading package base-1.0 ... linking ... done.
Loading package mtl-1.0 ... linking ... done.
Loading package lang-1.0 ... linking ... done.
Loading package QuickCheck-1.0 ... linking ... done.
Loading package readline-1.0 ... linking ... done.
Loading package unix-1.0 ... ghc-6.4: Unable to mmap( MAP_FIXED ) for  
Jump Islands


ghc-6.4: panic! (the `impossible' happened, GHC version 6.4):
loadObj: failed

Please report it as a compiler bug to glasgow-haskell-bugs@haskell.org,
or http://sourceforge.net/projects/ghc/.


I believe this one has been fixed post-6.4.1, so the fix will be in 
6.4.2.  Revision 1.209 of ghc/rts/Linker.c is the relevant commit, which 
has been merged into the 6.4 branch.


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


Re: ghci command history broken under rxvt and xterm

2006-02-21 Thread Bruno Martínez
On Mon, 20 Feb 2006 12:10:03 -0200, Simon Marlow  
[EMAIL PROTECTED] wrote:



Bruno Martínez wrote:
When using ghci with rxvt under cygwin, the command history doesn't  
work.  When I press the up arrow, for example, the cursor moves up,  
instead of showing the previous command.  xterm has the same problem,  
but with cygwin's default console it works.
 I don't know where to start looking.  Maybe this is something  
solveable thinkering with ~/.inputrc, but I'm not knowledgeable enough  
about it.


GHCi doesn't use readline on Windows, at least by default, so nothing is  
interpreting the up or down arrow keys so they generate some control  
sequences that just move the cursor around.


Something strange is afoot though, because you say that it works under a  
cygwin console - that's not the case here.  What version of GHC is this?  
  where did you get it?


It's
b80c3a86a1589398d6f111540d9e8d15 *ghc-6-4-1.zip

I'm pretty sure I just downloaded it from haskell.org.

The only thing unusual is that I changed ghcii.sh as described in a recent  
post.  I'm running from a fresh Windows/Cygwin/Haskell install.   Cygwin  
may not be the lastest, but it's less than 3 months old.


I believe that GHC can be compiled against mingw's readline library, but  
I seem to recall it was pretty flaky which is why we don't do it.  I'd  
be happy to use a cut-down line editing library on Windows if someone  
could do the work of making sure it did something reasonable in all the  
environments we're interested in (windows command shell, cygwin terminal  
window, xterm).


Another difference is that under Cygwin quitting with Ctrl-Z works, but it  
doesn't under rxvt.  Very strange.


Bruno

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