|
[ ghc-Bugs-819116 ] seg faults with STArray: msg#00055lang.haskell.glasgow.bugs
Bugs item #819116, was opened at 2003-10-07 08:59 Message generated for change (Comment added) made by simonmar You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=819116&group_id=8032 Category: Runtime System Group: 6.0.1 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) >Assigned to: Simon Marlow (simonmar) Summary: seg faults with STArray Initial Comment: While trying to eliminate a space leak in a program with lots of array updates, I switched the update function to a (thaw to STArray, do the update, freeze). This gave an order of magnitude improvement over standard Haskell arrays (but not enough yet). However, with big arrays I get segmentation faults with unsafeThaw. This happens with ghc 5.04.1 and 6.0.1. Attached is a small example program to illustrate the problem. For small problem sizes the result is OK, then at some point ghc 5.04.1 issues the ominous fatal error: scavenge: unimplemented/strange closure type 63 @ 0x50088000 and for even bigger sizes it just seg faults (see comments in code for actual sizes). ghc 6.0.1's output is OK until 5218, from 5219-5221 there's a seg fault immediately following the result, and from 5222 it just seg faults (this is on RedHat 7.1 w/ 512 MB memory). We even tried the ghc 6.2 CVS version from 10/07/03, but it's the same problem as 6.0.1. I would like to use both unsafe versions as I'm trying to avoid copying in order to reduce the process' footprint. My array usage would be single threaded so strict arrays with in-place update would be nice to have. Cheers, Nils Ellmenreich (nils at fmi dot uni dash passau dot de) ---------------------------------------------------------------------- >Comment By: Simon Marlow (simonmar) Date: 2003-10-22 15:02 Message: Logged In: YES user_id=48280 Good bug, thanks for the report. Will be fixed in 6.2. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=819116&group_id=8032
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: GHCI crashes on Mac OS X, Simon Marlow |
|---|---|
| Next by Date: | RE: Missing table for -opt? flags in users_guide:phases.sgml, Simon Marlow |
| Previous by Thread: | [ ghc-Bugs-819116 ] seg faults with STArray, SourceForge.net |
| Next by Thread: | RE: Bug compiling with -fglasgow-exts, Simon Peyton-Jones |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |