[GHC] #8661: Segfault on System.Time during validate

#8661: Segfault on System.Time during validate ----------------------------+------------------------------------- Reporter: Fuuzetsu | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Operating System: Unknown/Multiple Architecture: x86 | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ----------------------------+------------------------------------- I was running ‘sh validate’ today (commit d4f0fcf368765ae4aa7ebe914bc2f254026694c8) and I ended up with this error: {{{ cat ghc/ghc.wrapper >> inplace/bin /ghc-stage2 chmod +x inplace/bin /ghc-stage2 "inplace/bin/ghc-stage2" -hisuf hi -osuf o -hcsuf hc -static -H32m -O -Werror -Wall -H64m -O0 -package-name old-time-1.1.0.2 -hide-all- packages -i -ilibraries/old-time/. -ilibraries/old-time/dist-install/build -ilibraries/old-time/dist-install/build/autogen -Ilibraries/old-time/dist- install/build -Ilibraries/old-time/dist-install/build/autogen -Ilibraries /old-time/include -optP-include -optPlibraries/old-time/dist- install/build/autogen/cabal_macros.h -package base-4.7.0.0 -package old- locale-1.0.0.6 -Wall -XHaskell2010 -O2 -O -dcore-lint -fno-warn-amp -fno- warn-deprecated-flags -no-user-package-db -rtsopts -odir libraries /old-time/dist-install/build -hidir libraries/old-time/dist-install/build -stubdir libraries/old-time/dist-install/build -dynamic-too -c libraries /old-time/dist-install/build/System/Time.hs -o libraries/old-time/dist- install/build/System/Time.o -dyno libraries/old-time/dist- install/build/System/Time.dyn_o gmake[1]: *** [libraries/old-time/dist-install/build/System/Time.o] Segmentation fault gmake[1]: *** Waiting for unfinished jobs.... Writing docs/users_guide/users_guide/ix01.html for index Writing docs/users_guide/users_guide/index.html for book(users-guide) cp mk/fptools.css docs/users_guide/users_guide/ gmake: *** [all] Error 2 }}} It built fine when I ran validate just the other day (at least after commit 32002b3dfdfd6a3c6a1a1eb52d8a257b42e17e51). 32-bit Linux Linux misaki 3.12.3-gentoo `#2` SMP Sat Dec 7 23:14:57 GMT 2013 i686 Intel(R) Core(TM)2 Duo CPU L7700 @ 1.80GHz GenuineIntel GNU/Linux Attaching full build log. This is a tree without any local changes. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8661 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8661: Segfault on System.Time during validate -------------------------------------+--------------------------- Reporter: Fuuzetsu | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: x86 Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+--------------------------- Comment (by Fuuzetsu): Actually, I see that there's a 256KB limit on attachments. You can find the build log at http://fuuzetsu.co.uk/misc/cleanvalidate -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8661#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8661: Segfault on System.Time during validate -------------------------------------+--------------------------- Reporter: Fuuzetsu | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: x86 Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+--------------------------- Comment (by Fuuzetsu): I'd like to add that the `ghc-stage2` binary produced segfaults the moment we try to compile anything with it, be it an invalid Haskell file (garbage string) or a valid program. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8661#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8661: Segfault on System.Time during validate
-------------------------------------+---------------------------
Reporter: Fuuzetsu | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.7
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: x86
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+---------------------------
Comment (by Herbert Valerio Riedel

#8661: Segfault on System.Time during validate -------------------------------------+--------------------------- Reporter: Fuuzetsu | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: x86 Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+--------------------------- Comment (by nomeata): I still observe a weridness, ghc spins for a long time trying to compile System.Time. According to `-v`, it is somewhere in the desugarer – is that possibly related to this ticket or did I hit a different, possibly local, issue? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8661#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8661: Segfault on System.Time during validate -------------------------------------+--------------------------- Reporter: Fuuzetsu | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: x86 Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+--------------------------- Comment (by nomeata): Nevermind, it is only on my branch... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8661#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8661: Segfault on System.Time during validate
-------------------------------------+---------------------------
Reporter: Fuuzetsu | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.7
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: x86
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+---------------------------
Comment (by Herbert Valerio Riedel

#8661: Segfault on System.Time during validate -------------------------------------+--------------------------- Reporter: Fuuzetsu | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: x86 Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+--------------------------- Changes (by hvr): * status: new => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8661#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC