#4901: Possible bug in GHCi archive loading:
---------------------------------+------------------------------------------
    Reporter:  batterseapower    |        Owner:            
        Type:  bug               |       Status:  patch     
    Priority:  high              |    Milestone:  7.2.1     
   Component:  Compiler          |      Version:  7.0.1     
    Keywords:                    |     Testcase:            
   Blockedby:  5062              |   Difficulty:            
          Os:  Unknown/Multiple  |     Blocking:            
Architecture:  Unknown/Multiple  |      Failure:  GHCi crash
---------------------------------+------------------------------------------
Changes (by batterseapower):

  * status:  new => patch


Comment:

 The problem is that GCC is generating BSD-format archives with filenames
 of the form #1//20, but where the filename stored in the field is actually
 null-terminated in such a way that is is less than 20 bytes long. However,
 our current code assumes that the archive-supplied length is exactly the
 length of the string when indexing backwards to determine the file
 extension, which means that it fails to detect that the files in the
 archives are actually object files!

 Simple fix is just to call strlen once we have copied the string out of
 the object file.

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