Re: what's a bad array tag ?
David MacQueen <[email protected]> Mon, 20 Oct 2008 11:04:51 -0700
| Newsgroups | gmane.comp.lang.sml.smlnj |
|---|---|
| Message-ID | <[email protected]> |
Hi, Can you track the VM usage? Any chance that your program is exhausting VM space? That has been a cause of failure for large, long- running programs in the past. Otherwise, it may be a garbage-collector or nlffi bug, or a violation of some implicit assumptions of the nlffi system? Is this deterministic and reproducible? It sounds like it is the sort of problem that is not going to be easy to whittle down to a small test case. Would it be possible for you to send us your code? Dave MacQueen On Oct 19, 2008, at 9:31 AM, brian wrote: > > On Oct 18, 2008, at 11:21 PM, Gergely Buday wrote: > >>> smlnj gets kind of grumpy when you start pushing it hard (at least >>> on >>> the mac). >>> >>> So this looks bad: >>> >>> /usr/local/smlnj/bin/sml: Fatal error -- bad array tag 0, obj = >>> 0x100c0004, desc = 0x6e696c00 >>> >>> New one. >>> Can anyone enlighten me on the potential causes ? >> >> What do you mean by pushing it hard? Allocating large vectors? >> > > 1Meg elements (reals) is large ? The gc is doing a lot of work, it's > about 30% of my run time. I probably need to quit using vectors and > destructively update an array instead. > > Mostly it's number crunching which is running for awhile, about 2 > hours for each curve that I need. > > I have some nlffi, i.e. malloc, allocation going on also, which > probably isn't helping. > > This is the first time I've seen this problem, however this was also > the first time that I let the program run as long as it did. The > system monitor doesn't indicate any memory leaks, so I'm not > convinced this is memory related, but that error message sure makes > me think it is. > > Just wish I had more information to go on to figure out what happened. > > Brian > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Smlnj-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/smlnj-list > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/