fix random segfaults when using ForeignPtr
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ghc6 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
If you're merging 6.10.3 into karmic, you might want to consider also pulling in this change from the forthcoming 6.10.4. It fixes a problem that can randomly cause segfaults in code that uses ForeignPtrs, and there's no workaround. The fix will not cause a change in ABIs, so shouldn't force a recompile of dependent packages.
Source package: 6.10.3-2ubuntu1
Fix:
Fri May 15 10:23:56 BST 2009 Simon Marlow <email address hidden>
* fix cut-and-pasto in mkWeakForeignEnv#, causing random segfaults
hunk ./rts/PrimOps.cmm 370
- ALLOC_PRIM( SIZEOF_StgWeak, R1_PTR & R2_PTR & R3_PTR, mkWeakForeignEn
+ ALLOC_PRIM( SIZEOF_StgWeak, R1_PTR & R2_PTR, mkWeakForeignEn
Changed in ghc6 (Ubuntu): | |
status: | Triaged → Fix Released |
Thanks a lot. I have forwarded the patch to the Debian maintainer and it will be fixed there before being synced across to Ubuntu.