HP3000-L Archives

July 2003, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Wonsil <[log in to unmask]>
Reply To:
[log in to unmask][log in to unmask], 11 Jul 2003 14:13:47 EDT471_US-ASCII Tracy No. 2 writes:

> So the recommendation to set "preferences" before entering QEdit
> is spurious as far as QCTerm is concerned, you're going to lose
> lines greater than 24 every time, and pull your Window back
> down with your mouse. (Or maximize it.)
>
> Entering SET VISUAL BELOW 46 only help as long as you're
> in VISUAL mode. As soon as you exit, 'POP' goes your Window,
> back to 24. [...]37_11Jul200314:13:[log in to unmask]
Date:
Wed, 9 Jul 2003 13:56:31 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
Just need a sounding board:

I wrote an awk script to reformat a 3KB file.  I developed the script on XP
and moved it to HP-UX 10.2  It runs just fine in Windows XP but on HP-UX I
get:

Memory fault(coredump)

A Google searched turns up:

ftp://europe-ffs.external.hp.com/hp-ux_patches/s700_800/10.X/PHCO_20721.txt
...
        PHCO_18515:
        1. awk produces memory leak if number of elements in array
           is large. The process grows until maxdsize is reached
           and awk coredumps.
        Resolution:
        The awk program uses regcomp(3C) to compile regular
        expression. The memory was allocated for a parameter
        to regcomp(3C). The awk program was assuming that this
        memory is freed by regfree(3C). Because of this incorrect
        assumption, memory leak was happening. A call to free
        function has been introduced to take care of this.
...

Does this look like the culprit or might there be another based on other's
experience?  I'm not adding that much to any arrays.  The default maxdsize
is something like 65MB and I'm nowhere near that in my 3KB file.

Mark W.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2