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

#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 Keywords: | Operating System: Windows Architecture: Unknown/Multiple | Type of failure: Runtime Difficulty: Unknown | performance bug Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- If you do this: cabal clean cabal configure --enable-library-profiling cabal configure --enable-executable-profiling cabal build dist\build\rogue\rogue.exe +RTS -p and run it for a few seconds before closing it. it will create a rogue.prof file that contains nothing. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9715 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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

#9715: The most minimal Gloss project causes the profiler to fail silently. -------------------------------------+------------------------------------- Reporter: Yxven | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Profiling | Version: 7.8.3 Resolution: duplicate | Keywords: Operating System: Windows | Architecture: Unknown/Multiple Type of failure: Runtime | Difficulty: Unknown performance bug | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * resolution: => duplicate Comment: This is most likely a duplicate of #6113. Feel free to re-open if you disagree. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9715#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC