Skip to content

Occasional Segmentation Fault and strange object 17863

Hello,

I have noticed the last few months GHC throws an occasional segmentation fault. Unfortunately it's not repeatable and is not related to any particular progam. The error happens every couple of weeks or so. I have noticed this problem with the following GHC versions:

  • 6.4.1 generic linux distribution
  • 6.4.1 source distribution compiled with

configure --prefix=/cadtools/contrib make make install

  • 6.4.2 generic linux distribution

Here's my system info (RHEL3):

~> uname -a Linux nenya 2.4.21-37.ELsmp #1 (closed) SMP Wed Sep 7 13:28:55 EDT 2005 i686 i686 i386 GNU/Linux ~> gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux Thread model: posix gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-53)

This morning, a compilation first seg-faulted, then errored out with scavenge_mutable_list: strange object? 17863, then compiled cleanly. Unfortuanely I did not have -v set at the time of the errors. Here are the three "make" runs:

autochip/autochip/dev> make runghc MakeHelp.hs alex -g XMLLexer.x ghc --make -W -threaded -o autochip Autochip Chasing modules from: Autochip Compiling AutochipHelp ( ./AutochipHelp.hs, ./AutochipHelp.o ) Compiling XMLLexer ( ./XMLLexer.hs, ./XMLLexer.o ) make: *** [autochip] Segmentation fault Exit 2 autochip/autochip/dev> make ghc --make -W -threaded -o autochip Autochip Chasing modules from: Autochip Skipping AutochipHelp ( ./AutochipHelp.hs, ./AutochipHelp.o ) Compiling XMLLexer ( ./XMLLexer.hs, ./XMLLexer.o )

  1. /XMLLexer.hs:242:41: Warning: Defined but not used: `rest'

./XMLLexer.hs:245:43: Warning: Defined but not used: `rest'

  1. /XMLLexer.hs:266:0: Warning: Defined but not used: `alexAndPred'

./XMLLexer.hs:270:0: Warning: Defined but not used: `alexPrevCharIs'

  1. /XMLLexer.hs:273:0: Warning: Defined but not used: `alexPrevCharIsOneOf'

./XMLLexer.hs:276:0: Warning: Defined but not used: `alexRightContext'

  1. /XMLLexer.hs:285:0: Warning: Defined but not used: `iUnbox'

wrappers.hs:16:0: Warning: Defined but not used: `alexInputPrevChar'

wrappers.hs:16:19: Warning: Defined but not used: `p'

wrappers.hs:16:23: Warning: Defined but not used: s' wrappers.hs:19:13: Warning: Defined but not used: p'

wrappers.hs:19:15: Warning: Defined but not used: c' wrappers.hs:41:21: Warning: Defined but not used: c'

wrappers.hs:160:31: Warning: Defined but not used: `len' Compiling Flow.Types ( ./Flow/Types.hs, ./Flow/Types.o ) Compiling Flow.Merge ( ./Flow/Merge.hs, ./Flow/Merge.o ) Compiling XML ( ./XML.hs, ./XML.o ) Compiling Flow.XML ( ./Flow/XML.hs, ./Flow/XML.o ) Compiling DirectoryStructure ( ./DirectoryStructure.hs, ./DirectoryStructure.o ) Compiling FreeMind ( ./FreeMind.hs, ./FreeMind.o ) Compiling Utils ( ./Utils.hs, ./Utils.o ) Compiling Flow.Common ( ./Flow/Common.hs, ./Flow/Common.o ) Compiling Flow.Makefile ( ./Flow/Makefile.hs, ./Flow/Makefile.o ) Compiling Flow.Graph ( ./Flow/Graph.hs, ./Flow/Graph.o ) Compiling Flow.State ( ./Flow/State.hs, ./Flow/State.o ) Compiling Flow.Graphviz ( ./Flow/Graphviz.hs, ./Flow/Graphviz.o ) ghc-6.4.2: internal error: scavenge_mutable_list: strange object? 17863

Please report this as a compiler bug. See:

http://www.haskell.org/ghc/reportabug

make: *** [autochip] Error 254 Exit 2 autochip/autochip/dev> make ghc --make -W -threaded -o autochip Autochip Chasing modules from: Autochip Skipping AutochipHelp ( ./AutochipHelp.hs, ./AutochipHelp.o ) Skipping XMLLexer ( ./XMLLexer.hs, ./XMLLexer.o ) Skipping Flow.Types ( ./Flow/Types.hs, ./Flow/Types.o ) Skipping Flow.Merge ( ./Flow/Merge.hs, ./Flow/Merge.o ) Skipping XML ( ./XML.hs, ./XML.o ) Skipping Flow.XML ( ./Flow/XML.hs, ./Flow/XML.o ) Skipping DirectoryStructure ( ./DirectoryStructure.hs, ./DirectoryStructure.o ) Skipping FreeMind ( ./FreeMind.hs, ./FreeMind.o ) Skipping Utils ( ./Utils.hs, ./Utils.o ) Skipping Flow.Common ( ./Flow/Common.hs, ./Flow/Common.o ) Skipping Flow.Makefile ( ./Flow/Makefile.hs, ./Flow/Makefile.o ) Skipping Flow.Graph ( ./Flow/Graph.hs, ./Flow/Graph.o ) Skipping Flow.State ( ./Flow/State.hs, ./Flow/State.o ) Compiling Flow.Graphviz ( ./Flow/Graphviz.hs, ./Flow/Graphviz.o ) Compiling Execute ( ./Execute.hs, ./Execute.o ) Compiling NewBlock ( ./NewBlock.hs, ./NewBlock.o )

  1. /NewBlock.hs:17:22: Warning: Defined but not used: `technology'

Compiling CheckBlock ( ./CheckBlock.hs, ./CheckBlock.o ) Compiling Version ( ./Version.hs, ./Version.o ) Compiling Flow.HTTPD ( ./Flow/HTTPD.hs, ./Flow/HTTPD.o ) Compiling Flow ( ./Flow.hs, ./Flow.o ) Compiling Main ( Autochip.hs, Autochip.o ) Linking ... #ghc --make -W -prof -auto-all -threaded -o autochip Autochip autochip/autochip/dev>

Thanks for your help and any suggestions!

-Tom

Trac metadata
Trac field Value
Version 6.4.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information