[GHC] #9715: The most minimal Gloss project causes the profiler to fail silently.

GHC ghc-devs at haskell.org
Sat Oct 25 23:47:49 UTC 2014


#9715: The most minimal Gloss project causes the profiler to fail silently.
-------------------------------------+-------------------------------------
              Reporter:  Yxven       |            Owner:
                  Type:  bug         |           Status:  new
              Priority:  normal      |        Milestone:
             Component:  Profiling   |          Version:  7.8.3
            Resolution:              |         Keywords:
      Operating System:  Windows     |     Architecture:  Unknown/Multiple
       Type of failure:  Runtime     |       Difficulty:  Unknown
  performance bug                    |       Blocked By:
             Test Case:              |  Related Tickets:
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 My guess is that gloss or a C library it uses is exiting abruptly and not
 giving the GHC RTS a chance to shut down and write out the profiling
 information. For example if I build with `-debug` instead of profiling and
 run with `+RTS -Ds` the output ends with
 {{{
 ...
 7f1da4134740: freeing capability 0
 7f1da4134740: task exiting
 }}}
 whereas a Hello, World program prints
 {{{
 ...
 7f198b4fd700: freeing capability 0
 7f198dbf5740: shutting down capability 0, attempt 1598
 7f198dbf5740: task exiting
 7f198dbf5740: freeing task manager, 0 tasks still running
 7f198dbf5740: removed cap 0 from capset 0
 7f198dbf5740: removed cap 0 from capset 1
 7f198dbf5740: cap 0: shutting down
 7f198dbf5740: deleted capset 0
 7f198dbf5740: deleted capset 1
 }}}

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


More information about the ghc-tickets mailing list