#3693: Show stack traces
---------------------------------+------------------------------------------
    Reporter:  jpet              |        Owner:              
        Type:  feature request   |       Status:  new         
    Priority:  normal            |    Milestone:  6.14.1      
   Component:  Runtime System    |      Version:  6.10.4      
    Keywords:                    |   Difficulty:              
          Os:  Unknown/Multiple  |     Testcase:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
       Patch:  1                 |  
---------------------------------+------------------------------------------

Comment(by batterseapower):

 Well, the "fast" testsuite basically works, with the exception of some of
 the GHC performance tests (and ffi005 which I have never seen pass on any
 of my OS X machines). This is encouraging, but I need to look carefully at
 the performance tests.

 I'm not having much luck with providing a way to strip out the debug info.
 I played with the suggestion by Simon to have an optionally-strippable
 section, but:

   * OS X strip has no option to strip sections with a given name
   * If I install GNU strip using Macports, trying to strip anything
 produces by GHC causes the stripped thing to die immediately upon running
 with "Illegal instruction". gstrip itself complains about "unable to read
 unknown load command 0x22". I have no idea what to make of that.

 Which is kind of discouraging. Even if I got it all working on every
 platform, we would never be able to strip the .ghc_debug section from
 shared libraries, which is sort of annoying.

 I guess I could probably stuff the info into a normally-named .debug
 section, and then just run plain "strip" on the result if you have
 requested that stack traces be disabled. This might be annoying for those
 who link in their own .o files with debug info they want to preserve, but
 maybe that is an acceptable tradeoff. Thoughts?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3693#comment:17>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to