#5386: GHCi crashes with SIGFPE when using double-conversion package
---------------------------------+------------------------------------------
    Reporter:  bos               |        Owner:            
        Type:  bug               |       Status:  new       
    Priority:  high              |    Milestone:  7.4.1     
   Component:  GHCi              |      Version:  7.0.4     
    Keywords:                    |     Testcase:            
   Blockedby:                    |   Difficulty:            
          Os:  Unknown/Multiple  |     Blocking:            
Architecture:  Unknown/Multiple  |      Failure:  GHCi crash
---------------------------------+------------------------------------------
Changes (by simonmar):

  * priority:  normal => high
  * milestone:  => 7.4.1


Comment:

 It's true, GHCi doesn't call constructors when it loads a `.o` or a `.a`
 file.  However, shared libraries are loaded by the system linker and
 constructors will be run as normal.  So one workaround is to put your C++
 code into a shared library (but then you can't just use `c-sources` in
 Cabal of course).

 How difficult it would be to implement this I don't know, maybe it
 wouldn't be too hard.  We should at least look into it.

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