Opened 9 years ago

Closed 9 years ago

Last modified 44 years ago

#378 closed bug (Fixed)

make depend of ghc-6.5 segfaults on x86-64

Reported by: juhp Owned by: simonmar
Priority: normal Milestone:
Component: Compiler Version: 6.4
Keywords: Cc:
Operating System: Architecture:
Type of failure: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Building current anoncvs HEAD with ghc-6.4 gives a segfault
during make depend on x86_64:

../../glafp-utils/mkdependC/mkdependC -f .depend
-IControl -IControl/Concurrent -IControl/Parallel
-IControl/Monad -IControl/Monad/ST -IData
-IData/Generics -IData/Array -IData/Array/IO
-IData/STRef -IDebug -IForeign -IForeign/C
-IForeign/Marshal -IGHC -ISystem -ISystem/Console
-ISystem/Mem -ISystem/IO -ISystem/Posix
-ISystem/Process -ISystem/Directory -IText -IText/Html
-IText/PrettyPrint -IText/ParserCombinators
-IText/Regex -IText/Show -IText/Read
-I../../ghc/includes   -s p -- -O    --
System/CPUTime_hsc.c System/Time_hsc.c
Text/Regex/Posix_hsc.c 
../../ghc/compiler/ghc-inplace -M -optdep-f
-optdep.depend -optdep-s -optdepp -osuf o    -H16m -O
-fglasgow-exts -cpp -Iinclude -"#include" HsBase.h
-funbox-strict-fields -ignore-package base -O
-Rghc-timing -fgenerics -fgenerics Control/Arrow.hs
Control/Concurrent.hs Control/Concurrent/Chan.hs
Control/Concurrent/MVar.hs Control/Concurrent/QSem.hs
Control/Concurrent/QSemN.hs
Control/Concurrent/SampleVar.hs Control/Exception.hs
Control/Monad.hs Control/Monad/Fix.hs
Control/Monad/ST.hs Control/Monad/ST/Lazy.hs
Control/Monad/ST/Strict.hs Control/Parallel.hs
Control/Parallel/Strategies.hs Data/Array.hs
Data/Array/Base.hs Data/Array/Diff.hs
Data/Array/IArray.hs Data/Array/IO.hs
Data/Array/IO/Internals.hs Data/Array/MArray.hs
Data/Array/ST.hs Data/Array/Storable.hs
Data/Array/Unboxed.hs Data/Bits.hs Data/Bool.hs
Data/Char.hs Data/Complex.hs Data/Dynamic.hs
Data/Either.hs Data/Eq.hs Data/FiniteMap.hs
Data/FunctorM.hs Data/Generics.hs
Data/Generics/Aliases.hs Data/Generics/Basics.hs
Data/Generics/Instances.hs Data/Generics/Schemes.hs
Data/Generics/Text.hs Data/Generics/Twins.hs
Data/Graph.hs Data/HashTable.hs Data/IORef.hs
Data/Int.hs Data/IntMap.hs Data/IntSet.hs Data/Ix.hs
Data/List.hs Data/Map.hs Data/Maybe.hs Data/Monoid.hs
Data/Ord.hs Data/PackedString.hs Data/Queue.hs
Data/Ratio.hs Data/STRef.hs Data/STRef/Lazy.hs
Data/STRef/Strict.hs Data/Set.hs Data/Tree.hs
Data/Tuple.hs Data/Typeable.hs Data/Unique.hs
Data/Version.hs Data/Word.hs Debug/Trace.hs Foreign.hs
Foreign/C.hs Foreign/C/Error.hs Foreign/C/String.hs
Foreign/C/Types.hs Foreign/Concurrent.hs
Foreign/ForeignPtr.hs Foreign/Marshal.hs
Foreign/Marshal/Alloc.hs Foreign/Marshal/Array.hs
Foreign/Marshal/Error.hs Foreign/Marshal/Pool.hs
Foreign/Marshal/Utils.hs Foreign/Ptr.hs
Foreign/StablePtr.hs Foreign/Storable.hs GHC/Arr.lhs
GHC/Base.lhs GHC/Conc.lhs GHC/ConsoleHandler.hs
GHC/Dotnet.hs GHC/Enum.lhs GHC/Err.lhs
GHC/Exception.lhs GHC/Exts.hs GHC/Float.lhs
GHC/ForeignPtr.hs GHC/Handle.hs GHC/IO.hs
GHC/IOBase.lhs GHC/Int.hs GHC/List.lhs GHC/Num.lhs
GHC/PArr.hs GHC/Pack.lhs GHC/PrimopWrappers.hs
GHC/Ptr.lhs GHC/Read.lhs GHC/Real.lhs GHC/ST.lhs
GHC/STRef.lhs GHC/Show.lhs GHC/Stable.lhs
GHC/Storable.lhs GHC/TopHandler.lhs GHC/Unicode.hs
GHC/Weak.lhs GHC/Word.hs Numeric.hs Prelude.hs
System/CPUTime.hs System/Cmd.hs
System/Console/GetOpt.hs System/Directory.hs
System/Directory/Internals.hs System/Environment.hs
System/Exit.hs System/IO.hs System/IO/Error.hs
System/IO/Unsafe.hs System/Info.hs System/Locale.hs
System/Mem.hs System/Mem/StableName.hs
System/Mem/Weak.hs System/Posix/Internals.hs
System/Posix/Signals.hs System/Posix/Types.hs
System/Process.hs System/Process/Internals.hs
System/Random.hs System/Time.hs Text/Html.hs
Text/Html/BlockTable.hs Text/ParserCombinators/ReadP.hs
Text/ParserCombinators/ReadPrec.hs Text/PrettyPrint.hs
Text/PrettyPrint/HughesPJ.hs Text/Printf.hs
Text/Read.hs Text/Read/Lex.hs Text/Regex.hs
Text/Regex/Posix.hs Text/Show.hs Text/Show/Functions.hs
<<ghc: 169931752 bytes, make[2]: *** [depend]
Segmentation fault

Change History (7)

comment:1 Changed 9 years ago by simonmar

Logged In: YES 
user_id=48280

I can't remember what this bug was, but I remember fixing it :-)

Could you try with the latest ghc-6-4-branch and let me know
if that helps?

comment:2 Changed 9 years ago by simonmar

Logged In: YES 
user_id=48280

Definitely fixed since 6.4.  I tried with both the 6.4
release (fails), a later 6.4 snapshot (works) and the HEAD
(works).

comment:3 Changed 9 years ago by ggd

Logged In: YES 
user_id=728695

Hi! 
 
Today I checked latest ghc code and attempt to compile 
it on amd64 segfaults: 
 
[...] 
../../ghc/utils/hsc2hs/hsc2hs-inplace -Iinclude 
-I../../ghc/includes -I.    Text/Regex/Posix.hsc 
../../glafp-utils/mkdependC/mkdependC -f .depend 
-IControl -IControl/Concurrent -IControl/Parallel 
-IControl/Monad -IControl/Monad/ST -IData 
-IData/Generics -IData/Array -IData/Array/IO 
-IData/STRef -IDebug -IForeign -IForeign/C 
-IForeign/Marshal -IGHC -ISystem -ISystem/Console 
-ISystem/Mem -ISystem/IO -ISystem/Posix 
-ISystem/Process -ISystem/Directory -IText -IText/Html 
-IText/PrettyPrint -IText/ParserCombinators 
-IText/Regex -IText/Show -IText/Read -I../../ghc/includes   
-s p -- -O    -- System/CPUTime_hsc.c 
System/Time_hsc.c Text/Regex/Posix_hsc.c 
../../ghc/compiler/ghc-inplace -M -optdep-f 
-optdep.depend -optdep-s -optdepp -osuf o    -H16m 
-O -fglasgow-exts -cpp -Iinclude -"#include" HsBase.h 
-funbox-strict-fields -ignore-package base -O 
-Rghc-timing -fgenerics -fgenerics Control/Arrow.hs 
Control/Concurrent.hs Control/Concurrent/Chan.hs 
Control/Concurrent/MVar.hs 
Control/Concurrent/QSem.hs 
Control/Concurrent/QSemN.hs 
Control/Concurrent/SampleVar.hs Control/Exception.hs 
Control/Monad.hs Control/Monad/Fix.hs 
Control/Monad/ST.hs Control/Monad/ST/Lazy.hs 
Control/Monad/ST/Strict.hs Control/Parallel.hs 
Control/Parallel/Strategies.hs Data/Array.hs 
Data/Array/Base.hs Data/Array/Diff.hs 
Data/Array/IArray.hs Data/Array/IO.hs 
Data/Array/IO/Internals.hs Data/Array/MArray.hs 
Data/Array/ST.hs Data/Array/Storable.hs 
Data/Array/Unboxed.hs Data/Bits.hs Data/Bool.hs 
Data/Char.hs Data/Complex.hs Data/Dynamic.hs 
Data/Either.hs Data/Eq.hs Data/FiniteMap.hs 
Data/FunctorM.hs Data/Generics.hs 
Data/Generics/Aliases.hs Data/Generics/Basics.hs 
Data/Generics/Instances.hs Data/Generics/Schemes.hs 
Data/Generics/Text.hs Data/Generics/Twins.hs 
Data/Graph.hs Data/HashTable.hs Data/IORef.hs 
Data/Int.hs Data/IntMap.hs Data/IntSet.hs Data/Ix.hs 
Data/List.hs Data/Map.hs Data/Maybe.hs 
Data/Monoid.hs Data/Ord.hs Data/PackedString.hs 
Data/Queue.hs Data/Ratio.hs Data/STRef.hs 
Data/STRef/Lazy.hs Data/STRef/Strict.hs Data/Set.hs 
Data/Tree.hs Data/Tuple.hs Data/Typeable.hs 
Data/Unique.hs Data/Version.hs Data/Word.hs 
Debug/Trace.hs Foreign.hs Foreign/C.hs 
Foreign/C/Error.hs Foreign/C/String.hs 
Foreign/C/Types.hs Foreign/Concurrent.hs 
Foreign/ForeignPtr.hs Foreign/Marshal.hs 
Foreign/Marshal/Alloc.hs Foreign/Marshal/Array.hs 
Foreign/Marshal/Error.hs Foreign/Marshal/Pool.hs 
Foreign/Marshal/Utils.hs Foreign/Ptr.hs 
Foreign/StablePtr.hs Foreign/Storable.hs GHC/Arr.lhs 
GHC/Base.lhs GHC/Conc.lhs GHC/ConsoleHandler.hs 
GHC/Dotnet.hs GHC/Enum.lhs GHC/Err.lhs 
GHC/Exception.lhs GHC/Exts.hs GHC/Float.lhs 
GHC/ForeignPtr.hs GHC/Handle.hs GHC/IO.hs 
GHC/IOBase.lhs GHC/Int.hs GHC/List.lhs GHC/Num.lhs 
GHC/PArr.hs GHC/Pack.lhs GHC/PrimopWrappers.hs 
GHC/Ptr.lhs GHC/Read.lhs GHC/Real.lhs GHC/ST.lhs 
GHC/STRef.lhs GHC/Show.lhs GHC/Stable.lhs 
GHC/Storable.lhs GHC/TopHandler.lhs GHC/Unicode.hs 
GHC/Weak.lhs GHC/Word.hs Numeric.hs Prelude.hs 
System/CPUTime.hs System/Cmd.hs 
System/Console/GetOpt.hs System/Directory.hs 
System/Directory/Internals.hs System/Environment.hs 
System/Exit.hs System/IO.hs System/IO/Error.hs 
System/IO/Unsafe.hs System/Info.hs System/Locale.hs 
System/Mem.hs System/Mem/StableName.hs 
System/Mem/Weak.hs System/Posix/Internals.hs 
System/Posix/Signals.hs System/Posix/Types.hs 
System/Process.hs System/Process/Internals.hs 
System/Random.hs System/Time.hs Text/Html.hs 
Text/Html/BlockTable.hs 
Text/ParserCombinators/ReadP.hs 
Text/ParserCombinators/ReadPrec.hs 
Text/PrettyPrint.hs Text/PrettyPrint/HughesPJ.hs 
Text/Printf.hs Text/Read.hs Text/Read/Lex.hs 
Text/Regex.hs Text/Regex/Posix.hs Text/Show.hs 
Text/Show/Functions.hs 
<<ghc: 161600336 bytes, make[2]: *** [depend] 
Segmentation fault 
make[1]: *** [boot] Error 1 
make[1]: Leaving directory 
`/home/gour/repos/fptools/libraries' 
make: *** [build] Error 1 
 
Sincerely, 
Gour 
 

comment:4 Changed 9 years ago by simonmar

Logged In: YES 
user_id=48280

HEAD or STABLE?  What version of GHC are you compiling 
with?  (try getting a stable snapshot if you're using 6.4).

comment:5 Changed 9 years ago by ggd

Logged In: YES 
user_id=728695

>HEAD or STABLE?  
 
HEAD 
 
> What version of GHC are you compiling with?  
 
6.4 
 
> (try getting a stable snapshot if you're using 6.4). 
 
ok. I am downloading 20050506-src snapshot...let's 
see. 
 
Sincerely, 
Gour 
 

comment:6 Changed 9 years ago by ggd

Logged In: YES 
user_id=728695

Hi! 
 
It works with 20050506-src snapshot. 
 
Sincerely, 
Gour 

comment:7 Changed 9 years ago by simonmar

  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.