#1736: GHC doesn't spot OPTIONS_GHC pragmas after 1k of comments
-----------------------+----------------------------------------------------
 Reporter:  igloo      |          Owner:             
     Type:  bug        |         Status:  closed     
 Priority:  normal     |      Milestone:  6.10 branch
Component:  Driver     |        Version:  6.8        
 Severity:  normal     |     Resolution:  fixed      
 Keywords:             |     Difficulty:  Unknown    
 Testcase:  pragma001  |   Architecture:  Unknown    
       Os:  Unknown    |  
-----------------------+----------------------------------------------------
Changes (by simonmar):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 Fixed:

 {{{
 Mon Jul  7 10:58:36 BST 2008  Simon Marlow <[EMAIL PROTECTED]>
   * FIX #1736, and probably #2169, #2240
   appendStringBuffer was completely bogus - the arguments to copyArray
   were the wrong way around, which meant that corruption was very likely
   to occur by overwriting the end of the buffer in the first argument.

   This definitely fixes #1736.  The other two bugs, #2169 and #2240 are
   harder to reproduce, but we can see how they could occur: in the case
   of #2169, the options parser is seeing the contents of an old buffer,
   and in the case of #2240, appendStringBuffer is corrupting an
   interface file in memory, since strng buffers and interface files are
   both allocated in the pinned region of memory.
 }}}

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