#3516: ppc64: broken 'foreign import wrapper'
-----------------------------+----------------------------------------------
Reporter:  slyfox            |          Owner:           
    Type:  bug               |         Status:  new      
Priority:  normal            |      Component:  Compiler 
 Version:  6.10.4            |       Severity:  normal   
Keywords:  ffi, wrapper      |       Testcase:  yet      
      Os:  Unknown/Multiple  |   Architecture:  powerpc64
-----------------------------+----------------------------------------------
 Attaching simple testcase failing horribly on ppc64:

 amd64 test output:
 {{{
 $ ./dist/build/fct/fct
 C call:[result = 105]

 C call with registered C callback function:C(72)C(33)[result = 735]

 C call with registered Hs-C callback function:H(72)H(33)[result = 735]

 TEST PASSED
 }}}

 ppc64 test output:
 {{{
 $ dist/build/fct/fct
 C call:[result = 105]

 C call with registered C callback function:C(72)C(33)[result = 735]

 C call with registered Hs-C callback function:[result = 105]

 Segmentation fault

 }}}

 As you see '''C call with registered Hs-C callback function''' called not
 a registered function, but something strange. There is no even registered
 callback (glo_cb == 0).

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