#3789: Segfault and -dstg-lint errors using FFI and -XEmptyDataDecls
-----------------------------+----------------------------------------------
  Reporter:  judahj          |          Owner:         
      Type:  bug             |         Status:  new    
  Priority:  high            |      Milestone:  6.12.2 
 Component:  Compiler (NCG)  |        Version:  6.12.1 
Resolution:                  |       Keywords:         
Difficulty:                  |             Os:  MacOS X
  Testcase:                  |   Architecture:  x86    
   Failure:  Runtime crash   |  
-----------------------------+----------------------------------------------
Comment (by simonpj):

 I'm afraid the STG Lint failures reflect a bug in STG Lint, not in the
 program.  I've fixed STG Lint:
 {{{
 Mon Jan  4 13:46:59 PST 2010  [email protected]
   * Fix bugs in STG Lint

   The Stg Lint failure reported in Trac #3789 were bogus.
   This patch fixes STG Lint, which must have been unused
   for ages.

     M ./compiler/stgSyn/StgLint.lhs -18 +13
 }}}
 However, the underlying seg-fault is unaffected.  Since it happens with
 `-fasm` but not with `-fvia-C` it must be in the code generator.

 I believe that the machine code (and STG code) generated from `type Foo_ =
 ()` and `data Foo_` should be identical.  A good first step would be to
 see how they differ.

 Simon

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