#5250: SEGFAULT in FFI to C++ library
-----------------------------+----------------------------------------------
  Reporter:  acowley         |          Owner:                  
      Type:  bug             |         Status:  closed          
  Priority:  high            |      Milestone:  7.2.1           
 Component:  Compiler (FFI)  |        Version:  7.0.3           
Resolution:  fixed           |       Keywords:                  
  Testcase:                  |      Blockedby:                  
Difficulty:                  |             Os:  Unknown/Multiple
  Blocking:                  |   Architecture:  x86             
   Failure:  Runtime crash   |  
-----------------------------+----------------------------------------------

Comment(by marlowsd@…):

 {{{
 commit 81eddb4c58c6d4171a46c727574112e2083c4878
 Author: Simon Marlow <[email protected]>
 Date:   Mon Jul 18 13:48:53 2011 +0100

     Fix Windows breakage (#5322).  When I modified StgRun to use the pure
     assembly version as part of the fix for #5250, we inadvertently lost
     the Windows magic for extending the stack.  Win32 requires that the
     stack is extended a page at a time, otherwise you get a segfault.  The
     C compiler knows how to do this, so we now call a C stub to ensure
     there's enough stack space at each invocation of the scheduler.
 }}}

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