[GHC] #10159: cabal build/ghc compiler causes sudden hard reboot of my computer!

GHC ghc-devs at haskell.org
Sun Apr 26 00:32:38 UTC 2015


#10159: cabal build/ghc compiler causes sudden hard reboot of my computer!
---------------------------------+-----------------------------------------
        Reporter:  jamshid       |                   Owner:
            Type:  bug           |                  Status:  infoneeded
        Priority:  normal        |               Milestone:
       Component:  Compiler      |                 Version:  7.8.4
      Resolution:                |                Keywords:
Operating System:  Linux         |            Architecture:  x86_64 (amd64)
 Type of failure:  None/Unknown  |               Test Case:
      Blocked By:                |                Blocking:
 Related Tickets:                |  Differential Revisions:
---------------------------------+-----------------------------------------

Comment (by jamshid):

 OK, I've learned more, and have a better idea of what is going on.

 So, I started monitoring CPU usage during builds, and noticed that when I
 type in "cabal build", the CPU would go to about 400%, whereas when I type
 in "cabal install", it tops out at about 99%....  For some reason "cabal
 install" only uses one core of my CPU, "cabal build" tried to use more.

 I was able to fix this problem by adding a "ghc-options: -j8" in my cabal
 file (well, the full line was "ghc-options: -Wall -O2 -j8".  As soon as I
 did this, "cabal install" started crashing my machine also.

 So, now I am more convinced that I have faulty hardware....  A CPU that
 overheats when I use multiple cores.  There still are some open questions
 though.

 First, why doesn't anything else trigger this, even when I rev up all my
 cores with processes running an empty loop....

 and second, why does "cabal install" use 1 core, while "cabal build" uses
 many (by default).

 BTW- I did film the build with -v3, but the last comments were pretty
 nondescript, a bunch of

 *** CPSZ:
 *** CPSZ:
 *** CPSZ:
 *** CPSZ:
 *** CPSZ:
 *** CPSZ:
 *** CPSZ:


 I have the full video if you want it, although at this point it seems less
 important.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10159#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list