#5748: ghci segfault on OS X after dlsym failed lookup
---------------------------------+------------------------------------------
    Reporter:  gwright           |       Owner:  gwright   
        Type:  bug               |      Status:  patch     
    Priority:  normal            |   Milestone:            
   Component:  GHCi              |     Version:  7.2.1     
    Keywords:                    |          Os:  MacOS X   
Architecture:  Unknown/Multiple  |     Failure:  GHCi crash
  Difficulty:  Unknown           |    Testcase:            
   Blockedby:                    |    Blocking:            
     Related:                    |  
---------------------------------+------------------------------------------
Changes (by gwright):

  * status:  new => patch


Comment:

 The attached patch detects failed symbol lookups.  It also corrects the
 bad relocation a certain type of non-exported symbol (the "approx_tab"
 issue mentioned above).

 The patch does not address the original question of why I had an undefined
 symbol reference crash ghci.  However, at least ghci will give a proper
 error rather than a segfault.

 The patch was validated against HEAD.  There were 7 unexpected failures,
 the same unexpected failures seen in a validate run in which
 {{{rts/Linker.c}}} was not patched.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5748#comment:7>
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