[GHC] #1288: ghci 6.6 foreign import stdcall broken, panic, panic!!!!

GHC trac at galois.com
Sat Apr 21 07:18:47 EDT 2007


#1288: ghci 6.6 foreign import stdcall broken, panic, panic!!!!
-------------------------------------------------+--------------------------
 Reporter:  jvlask at hotmail.com                   |          Owner:                  
     Type:  bug                                  |         Status:  new             
 Priority:  high                                 |      Milestone:                  
Component:  GHCi                                 |        Version:  6.6             
 Severity:  critical                             |     Resolution:                  
 Keywords:  ghci foreign ffi dll import stdcall  |     Difficulty:  Moderate (1 day)
 Testcase:                                       |   Architecture:  x86             
       Os:  Windows                              |  
-------------------------------------------------+--------------------------
Comment (by guest):

 appon reflection 5c of above ...

   hey this has me stumped test_proxy5b.o imports symbol _test at 4.
 test1b.dll exports symbol _test hmmm how is the symbol _test at 4 resolved
 ??? why isn't the stack corrupted when test is called ??? MYSTERY ???


 if ghci is doing the linking and uses the same name resolution to resolve
 these names i.e. '''_test at 4''' is dropping the '''@4''' to get '''_test'''
 then it would make sense that linking is successful. But why dosn't it
 crash when called?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1288>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
-------------- next part --------------
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


More information about the Glasgow-haskell-bugs mailing list