[GHC] #13433: Segmentation faults in profiled way

GHC ghc-devs at haskell.org
Thu Mar 16 19:16:45 UTC 2017


#13433: Segmentation faults in profiled way
-------------------------------------+-------------------------------------
           Reporter:  bgamari        |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  highest        |         Milestone:  8.2.1
          Component:  Compiler       |           Version:  8.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 It seems that profiling has regressed sometime between GHC 8.0 and 8.2. A
 few times since September I have noticed that profiled programs (in
 particular, GHC itself built with profiling enabled) seem to segmentation
 fault.

 This most recent case was produced by building commit
 6ebfbdfb64cb8bb5c2ddaf2ad3ad350755c5eb2b with the following in `build.mk`,
 {{{
 BuildFlavour = prof

 define add_mods_flag =
   $(foreach mod,$(2),$(eval $(basename $(mod))_HC_OPTS += $(1)))
 endef

 $(call add_mods_flag,-fprof-auto,$(wildcard compiler/typecheck/*.hs))

 STRIP_CMD = :
 }}}

 and using the resulting stage2 compiler to bootstrap the same commit.
 Eventually the build will fail with a segmentation fault. Unfortunately it
 seems the crash isn't entirely reproducible.

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


More information about the ghc-tickets mailing list