Changes between Initial Version and Version 3 of Ticket #1357


Ignore:
Timestamp:
May 27, 2007 6:04:33 PM (8 years ago)
Author:
igloo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1357

    • Property Priority changed from normal to high
  • Ticket #1357 – Description

    initial v3  
    11I am attaching files to hopefully reproduce a problem I am having. I have not upgraded to 6.6.1 yet so let me know if it has been fixed.
    2 
     2{{{
    33$ touch fpenv_c.c fpenv.hs && cc -g -Wall -c fpenv_c.c && ghc -fasm --make fpenv.hs fpenv_c.o -lc
    44[1 of 1] Compiling Main             ( fpenv.hs, fpenv.o )
     
    1010[139]$ ghc --version
    1111The Glorious Glasgow Haskell Compilation System, version 6.6.20070420
    12 
     12}}}
    1313Running in valgrind shows:
    14 
     14{{{
    1515...
    1616fin_test: env=0x437c008, p=0x1
     
    1919==12777==    at 0x1F: ???
    2020==12777==  Address 0x1F is not stack'd, malloc'd or (recently) free'd
    21 
     21}}}
    2222I think this is when fin_test exits. I am experiencing this problem in a much larger program, so I wrote this test case to figure out what is going wrong. Am I using the newForeignPtrEnv API incorrectly?