#1128: The impossible happened, code commented
----------------------+-----------------------------------------------------
 Reporter:  humasect  |          Owner:         
     Type:  bug       |         Status:  new    
 Priority:  normal    |      Milestone:  6.6.1  
Component:  Compiler  |        Version:  6.6    
 Severity:  major     |     Resolution:         
 Keywords:            |     Difficulty:  Unknown
 Testcase:            |   Architecture:  Unknown
       Os:  Unknown   |  
----------------------+-----------------------------------------------------
Comment (by humasect):

 More clues found during investigation (use ODE library if needed):

 foreign import ccall unsafe "dWorldSetContactSurfaceLayer"
 worldSetContactSurfaceLayer ::
         WorldID -> Real -> IO ()

 type WorldID = Int
 type Real = Double

 initializeWorld = (\w -> do
                 --worldSetGravity w 0 (-1.0) 0
                 --worldSetERP w 0.2
                 --worldSetCFM w 1e-5
                 --worldSetContactMaxCorrectingVel w 0.9
                 worldSetContactSurfaceLayer w 0.001
                 ), --worldSetAutoDisableFlag w 1),

 --- now here is the:
 --

 ghc-6.6: panic! (the 'impossible' happened)
   (GHC version 6.6 for i386-apple-darwin):
         lookupDeprec base:GHC.Real.fromRational{v 01G}

 -- Then change worldSetContactSurfaceLayer's second argument to 1.0 ....
 bug disappears.


 I hope this helps

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