Ticket #3771 (new bug)

Opened 3 years ago

Last modified 8 months ago

haddock: internal error: evacuate: strange closure type 19269

Reported by: dbueno Owned by:
Priority: lowest Milestone: 7.6.2
Component: Compiler Version: 6.12.1
Keywords: Cc: pho@…
Operating System: MacOS X Architecture: powerpc
Type of failure: Building GHC failed Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Here are the last few lines of make output

"rm" -f libraries/unix/dist-install/build/libHSunix-2.4.0.0_p.a
(echo   libraries/unix/dist-install/build/cbits/HsUnix.p_o libraries/unix/dist-install/build/cbits/execvpe.p_o libraries/unix/dist-install/build/cbits/dirUtils.p_o     `/usr/bin/find libraries/unix/dist-install/build -name "*_stub.p_o" -print`; /usr/bin/find libraries/unix/dist-install/build/System/Posix_p_o_split libraries/unix/dist-install/build/System/Posix/DynamicLinker/Module_p_o_split libraries/unix/dist-install/build/System/Posix/DynamicLinker/Prim_p_o_split libraries/unix/dist-install/build/System/Posix/Directory_p_o_split libraries/unix/dist-install/build/System/Posix/DynamicLinker_p_o_split libraries/unix/dist-install/build/System/Posix/Env_p_o_split libraries/unix/dist-install/build/System/Posix/Error_p_o_split libraries/unix/dist-install/build/System/Posix/Files_p_o_split libraries/unix/dist-install/build/System/Posix/IO_p_o_split libraries/unix/dist-install/build/System/Posix/Process_p_o_split libraries/unix/dist-install/build/System/Posix/Process/Internals_p_o_split libraries/unix/dist-install/build/System/Posix/Resource_p_o_split libraries/unix/dist-install/build/System/Posix/Temp_p_o_split libraries/unix/dist-install/build/System/Posix/Terminal_p_o_split libraries/unix/dist-install/build/System/Posix/Time_p_o_split libraries/unix/dist-install/build/System/Posix/Unistd_p_o_split libraries/unix/dist-install/build/System/Posix/User_p_o_split libraries/unix/dist-install/build/System/Posix/Signals_p_o_split libraries/unix/dist-install/build/System/Posix/Signals/Exts_p_o_split libraries/unix/dist-install/build/System/Posix/Semaphore_p_o_split libraries/unix/dist-install/build/System/Posix/SharedMem_p_o_split -name '*.p_o' -print) | "xargs"  "/usr/bin/ar" clqs  libraries/unix/dist-install/build/libHSunix-2.4.0.0_p.a
"inplace/bin/mkdirhier" libraries/unix/dist-install/doc/html/unix/
"inplace/bin/ghc-cabal" haddock dist-install libraries/unix --with-haddock=/Users/dbueno/Downloads/ghc-6.12.1/inplace/bin/haddock --with-ghc=/Users/dbueno/Downloads/ghc-6.12.1/inplace/bin/ghc-stage2  
Running Haddock for unix-2.4.0.0...
Preprocessing library unix-2.4.0.0...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: ffi-1.0, rts-1.0
haddock: internal error: evacuate: strange closure type 19269
    (GHC version 6.12.1 for powerpc_apple_darwin)
    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
make[1]: *** [libraries/unix/dist-install/doc/html/unix/unix.haddock] Error 6
make: *** [all] Error 2

I did the following to build:

./configure --prefix=/usr/local/ghc-6.12.4
make

I'm on Darwin power-mac-g5.local 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:54:29 PDT 2009; root:xnu-1228.12.14~1/RELEASE_PPC Power Macintosh.

What other information do you need?

Change History

  Changed 3 years ago by dbueno

Sorry, that build process isn't exactly what I did. I did that, but first I did sh boot.

  Changed 3 years ago by danrabin

I've also seen this exact behavior, also on Darwin ppc g5, Mac OS 10.5.8, all config and make parameters defaulted. There is a GHC 6.10.4 build present in the $PATH, installed under /opt/local via MacPorts?, but there were no previous GHC builds left under /usr/local.

  Changed 3 years ago by dbueno

I don't use macports for ghc; I'm bootstrapping with 6.10.4.

  Changed 3 years ago by simonmar

  • milestone set to 6.12 branch

Just so you don't think we're ignoring you: the GHC developers don't have PPC hardware or expertise, so we rely on outside help to support PPC. At the moment we're lucky that it mostly works, although there are a number of worrying tickets open.

  Changed 3 years ago by igloo

You should have more luck with an unregisterised build, though.

follow-up: ↓ 12   Changed 3 years ago by danrabin

For me, building unregisterised yields:

ghc-stage1: could not execute: /Users/danrabin/Software/-ProgrammingLanguages/Haskell?/GHC/ghc-6.12.1/inplace/lib/ghc-asm make[1]: *** [libraries/ghc-prim/dist-install/build/GHC/Generics.o] Error 1 make: *** [all] Error 2

  Changed 3 years ago by maeder

  • architecture changed from powerpc64 to powerpc

I get the same error on Power Mac G5 (32bit powerpc)

Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh
"inplace/bin/ghc-cabal" haddock dist-install libraries/base --with-haddock=/Users/Shared/maeder/haskell/ghc-6.12.1/inplace/bin/haddock --with-ghc=/Users/Shared/maeder/haskell/ghc-6.12.1/inplace/bin/ghc-stage2
Running Haddock for base-4.2.0.0...
Preprocessing library base-4.2.0.0...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: ffi-1.0, rts-1.0

GHC/IO/Handle/Internals.hs:1:15:
    Warning: -#include is deprecated: No longer has any effect

GHC/IO/Handle/Text.hs:1:15:
    Warning: -#include is deprecated: No longer has any effect

GHC/Unicode.hs:2:11:
    Warning: -#include is deprecated: No longer has any effect

Foreign/C/Error.hs:1:15:
    Warning: -#include is deprecated: No longer has any effect
haddock: internal error: evacuate: strange closure type 19269
    (GHC version 6.12.1 for powerpc_apple_darwin)
    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
make[1]: *** [libraries/base/dist-install/doc/html/base/base.haddock] Error 6
make: *** [all] Error 2

  Changed 3 years ago by abutterfield

I just got a very similar error from GHCi on 6.10.4 on Windows XP (it said i386_inknown_mingw32), expect it reported strange closure type 18375

GHCi was idle at the time whilst I was editing a source file...

  Changed 3 years ago by simonmar

The error "strange closure type" indicates some kind of memory corruption, which can have many different causes, from bugs in the GC to hardware failures.

It's unlikely that the occurrence on Win XP is related to original report in this ticket, which I suspect is something specific to GHC's powerpc support (there are a few other similar reports of problems on powerpc).

  Changed 3 years ago by igloo

  • milestone changed from 6.12 branch to 6.12.3

  Changed 3 years ago by PHO

  • cc pho@… added

in reply to: ↑ 6   Changed 3 years ago by Mikolaj

Replying to danrabin:

For me, building unregisterised yields: ghc-stage1: could not execute: /Users/danrabin/Software/-ProgrammingLanguages/Haskell?/GHC/ghc-6.12.1/inplace/lib/ghc-asm make[1]: *** [libraries/ghc-prim/dist-install/build/GHC/Generics.o] Error 1 make: *** [all] Error 2

The same for me on PowerPC Linux for 6.12.3, with options from  http://hackage.haskell.org/trac/ghc/wiki/Building/Unregisterised, so I've built ghc-asm by hand and copied over. However, with options from  http://hackage.haskell.org/trac/ghc/wiki/Building/Porting I didn't get that error. No "strange closure" bugs on Linux, either.

  Changed 3 years ago by igloo

  • priority changed from normal to low
  • milestone changed from 6.12.3 to 6.14.1

  Changed 2 years ago by igloo

  • milestone changed from 7.0.1 to 7.0.2

  Changed 2 years ago by igloo

  • milestone changed from 7.0.2 to 7.2.1

  Changed 20 months ago by igloo

  • milestone changed from 7.2.1 to 7.4.1

  Changed 16 months ago by igloo

  • priority changed from low to lowest
  • milestone changed from 7.4.1 to 7.6.1

  Changed 8 months ago by igloo

  • milestone changed from 7.6.1 to 7.6.2
Note: See TracTickets for help on using tickets.