ghc 6.10.1 on freebsd 7 amd64 - ghci problems

Markus Barenhoff alios at alios.org
Wed Jan 7 03:41:43 EST 2009


On Mon 15.12 09:26, Simon Marlow wrote:


Hello everyone,

a happy new year first of all.

> 5.0.2 -package old-time-1.0.0.1 -package process-1.0.1.1 -package 
> template-haskell-2.3.0.0 -package unix-2.3.1.0 -O -Wall 
> -fno-warn-name-shadowing -fno-warn-orphans -XCPP -XMagicHash 
> -XUnboxedTuples -XPatternGuards -XForeignFunctionInterface -XEmptyDataDecls 
> -XTypeSynonymInstances -XMultiParamTypeClasses -XFlexibleInstances 
> -XRank2Types -XScopedTypeVariables -XDeriveDataTypeable -prof -hisuf p_hi 
> -hcsuf p_hc -osuf p_o -idist-stage2/build  -H32m -O -Rghc-timing -O2  -c 
> nativeGen/MachRegs.lhs -o dist-stage2/build/MachRegs.p_o  -ohi 
> dist-stage2/build/MachRegs.p_hi
> >ghc: panic! (the 'impossible' happened)
> >  (GHC version 6.11.20081211 for x86_64-unknown-freebsd):
> >        CoreToStg.myCollectArgs
> >    (__scc {trivColorable ghc-6.11.20081211:MachRegs !}
> >     ghc-6.11.20081211:MachRegs.isSqueesed{v r2FI} [gid] 0 0)
> >      eta_s2Ni{v} [lid]
> >
> >Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
> 
> This is a known problem with the build right now.  I'll try to install a 
> fix this week, but in the meantime you can avoid building profiled 
> libraries by copying mk/build.mk.sample to mk/build.mk and uncommenting the 
> line that says 'BuildFlavour = quick'.
> 

Yesterday I updated my sources to the current darcs version. Now the build works
again, but there still seems to exist a problem with memory allocation:

--- snip ---
 $ ghci
 GHCi, version 6.11.20090105: http://www.haskell.org/ghc/  :? for help
 ghc: mmap 28672 bytes at 0x40099000: Invalid argument
 ghc: Try specifying an address with +RTS -xm<addr> -RTS
--- snip ---

The ghci does not coredump anymore like it did in my first posting.
I also tried specifing different addresses with the -xm switch without success.

Here is the memory map just after start:

--- snip ---
$ cat /proc/19219/map
0x400000 0x14f8000 4213 0 0xffffff0006094d00 r-x 1 0 0x2100 COW NNC vnode /usr/local/haskell/lib/ghc-6.11.20090105/ghc
0x15f7000 0x178a000 251 0 0xffffff000618dd00 rw- 1 0 0x2100 COW NNC vnode /usr/local/haskell/lib/ghc-6.11.20090105/ghc
0x178a000 0x178e000 3 0 0xffffff00370a6dd0 rw- 2 0 0x2100 NCOW NNC default -
0x178e000 0x1800000 1 0 0xffffff00370a6dd0 rwx 2 0 0x2100 NCOW NNC default -
0x8015f7000 0x80161c000 28 0 0xffffff003af6f8f0 r-x 1 0 0x2100 COW NNC vnode /libexec/ld-elf.so.1
0x80161c000 0x801624000 7 0 0xffffff000618da90 rw- 1 0 0x2100 NCOW NNC default -
0x80171b000 0x801722000 7 0 0xffffff0037db6680 rw- 1 0 0x2100 COW NNC vnode /libexec/ld-elf.so.1
0x801722000 0x801728000 6 0 0xffffff00062de680 rw- 1 0 0x2100 NCOW NNC default -
0x801728000 0x801738000 16 0 0xffffff002ed375b0 r-x 1 0 0x2100 COW NNC vnode /lib/libthr.so.3
0x801738000 0x801739000 1 0 0xffffff003a5d2410 r-x 1 0 0x2100 COW NNC vnode /lib/libthr.so.3
0x801739000 0x801839000 4 0 0xffffff0001caa000 r-x 172 41 0x4 COW NC vnode /lib/libthr.so.3
0x801839000 0x80183c000 3 0 0xffffff000621d820 rw- 1 0 0x2100 COW NNC vnode /lib/libthr.so.3
0x80183c000 0x80183e000 2 0 0xffffff0037f9aa90 rw- 1 0 0x2100 NCOW NNC default -
0x80183e000 0x801849000 9 0 0xffffff00015c2c30 r-x 166 74 0x4 COW NC vnode /lib/libutil.so.7
0x801849000 0x80184a000 1 0 0xffffff00061e5680 r-x 1 0 0x2100 COW NNC vnode /lib/libutil.so.7
0x80184a000 0x80194a000 3 0 0xffffff00015c2c30 r-x 166 74 0x4 COW NC vnode /lib/libutil.so.7
0x80194a000 0x80194c000 2 0 0xffffff00061e5820 rw- 1 0 0x2100 COW NNC vnode /lib/libutil.so.7
0x80194c000 0x80194d000 0 0 0 rw- 0 0 0x0 NCOW NNC none -
0x80194d000 0x801965000 17 0 0xffffff00015ee0d0 r-x 204 48 0x4 COW NC vnode /lib/libm.so.5
0x801965000 0x801966000 1 0 0xffffff00061ae000 r-x 1 0 0x2100 COW NNC vnode /lib/libm.so.5
0x801966000 0x801a65000 3 0 0xffffff00015ee0d0 r-x 204 48 0x4 COW NC vnode /lib/libm.so.5
0x801a65000 0x801a67000 2 0 0xffffff003a102750 rw- 1 0 0x2100 COW NNC vnode /lib/libm.so.5
0x801a67000 0x801a6a000 3 0 0xffffff0001cf2680 r-x 8 4 0x4 COW NC vnode /usr/lib/librt.so.1
0x801a6a000 0x801a6b000 1 0 0xffffff000618e000 r-x 1 0 0x2100 COW NNC vnode /usr/lib/librt.so.1
0x801a6b000 0x801b6b000 1 0 0xffffff0001cf2680 r-x 8 4 0x4 COW NC vnode /usr/lib/librt.so.1
0x801b6b000 0x801b6c000 1 0 0xffffff0031604270 rw- 1 0 0x2100 COW NNC vnode /usr/lib/librt.so.1
0x801b6c000 0x801c57000 93 0 0xffffff00015c2270 r-x 512 182 0x4 COW NC vnode /lib/libc.so.7
0x801c57000 0x801c58000 1 0 0xffffff00312f0820 r-x 1 0 0x2100 COW NNC vnode /lib/libc.so.7
0x801c58000 0x801d58000 0 0 0xffffff00015c2270 r-x 512 182 0x4 COW NC vnode /lib/libc.so.7
0x801d58000 0x801d75000 29 0 0xffffff000631e340 rw- 1 0 0x2100 COW NNC vnode /lib/libc.so.7
0x801d75000 0x801d8c000 5 0 0xffffff0006248270 rw- 2 0 0x2100 NCOW NNC default -
0x801e00000 0x801f00000 3 0 0xffffff0006248270 rw- 2 0 0x2100 NCOW NNC default -
0x7fffffbff000 0x7fffffc00000 0 0 0 --- 0 0 0x0 NCOW NNC none -
0x7ffffffe0000 0x800000000000 3 0 0xffffff00061704e0 rwx 1 0 0x2100 NCOW NNC default -
--- snip ---

Regards
Markus

-- 
Markus Barenhoff - Münster - Germany - Europe - Earth

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 479 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20090107/139d0f11/attachment.bin


More information about the Glasgow-haskell-users mailing list