|
[ ghc-Bugs-819116 ] seg faults with STArray: msg#00017lang.haskell.glasgow.bugs
Bugs item #819116, was opened at 2003-10-07 01:59 Message generated for change (Tracker Item Submitted) made by Item Submitter 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: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) 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) ---------------------------------------------------------------------- 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: | [ ghc-Bugs-818932 ] Reading multiple files fails, SourceForge.net |
|---|---|
| Next by Date: | [ ghc-Bugs-818932 ] Reading multiple files fails, SourceForge.net |
| Previous by Thread: | [ ghc-Bugs-818932 ] Reading multiple files fails, SourceForge.net |
| Next by Thread: | [ ghc-Bugs-819116 ] seg faults with STArray, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |