#4828: ghci fails to load fat binary archives on OS X
---------------------------------+------------------------------------------
    Reporter:  gwright           |        Owner:  igloo     
        Type:  bug               |       Status:  patch     
    Priority:  normal            |    Milestone:  7.2.1     
   Component:  Runtime System    |      Version:  7.0.1     
    Keywords:                    |     Testcase:            
   Blockedby:                    |   Difficulty:            
          Os:  MacOS X           |     Blocking:            
Architecture:  Unknown/Multiple  |      Failure:  GHCi crash
---------------------------------+------------------------------------------

Comment(by gwright):

 Ugh. `loadArchive` is worse than I thought. On OS X (at least) it doesn't
 even load the objects modules in the archive. This is because we read from
 the archive header the width of the object file name field, not its
 length, so we miss the ".o" at the end of the name. I've fixed this, but
 there are more problems.

 When loading the object modules we get multiply defined symbol errors.
 This is because we don't correctly distinguish external symbols (flags
 `N_EXT` and `N_SECT` set) and internal symbols (only `N_SECT` set).

 I've added a number of debug statements so we can watch what's going on in
 detail and will attach that patch to this ticket.

 The failure to load any object modules was concealing the error that
 should have occurred when reading past the end of an archive in a fat
 archive. I still need to fix that.

 Good that we're targeting 7.2 for this one.

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