Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22290 - memory allocation problem in gawk-3.1.2
Summary: memory allocation problem in gawk-3.1.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-05 13:30 UTC by Thomas Eckert
Modified: 2003-09-09 03:52 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
code to reproduce (gawk-mem-error,455 bytes, text/plain)
2003-06-05 13:32 UTC, Thomas Eckert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Eckert 2003-06-05 13:30:42 UTC
There seems to be a (timing?) bug in gawk v3.1.2 (ebuild -r3) (see attachement
for code to reproduce).
compilers tried: gcc-2.95.3 (-O2), gcc-3.2.2 (-O2 and -O1).

gawk v3.1.1 (ebuild -r2) worked without trouble.

see also: http://mail.gnu.org/archive/html/bug-gnu-utils/2003-04/msg00043.html
(the code in the attach is taken from that msg too).

I've seen this error also with "dev-util/arch" when doing "larch what-changed"
on a particular src-tree.

Reproducible: Always
Steps to Reproduce:
run the attachment, wait a few seconds, boooom
Actual Results:  
gawk: cmd. line:2: fatal: grow_iop_buffer: iop->buf: can't allocate -2147483646
bytes of memory (Cannot allocate memory)
Comment 1 Thomas Eckert 2003-06-05 13:32:19 UTC
Created attachment 12840 [details]
code to reproduce
Comment 2 Thomas Eckert 2003-06-26 10:56:40 UTC
After the last masking of 3.1.2 I first thought it was due to this report and did
not check the bug-id -- but then 3.1.2 came back in stable :(

Please check this out.

Tested with gcc-2.95.3 and gcc-3.2.2 on gentoo -- same result for both.

Thomas
Comment 3 Thomas Eckert 2003-07-05 05:33:37 UTC
Hi,
the response-time to bug-report is a bit frustrating -- I can understand that for enhancements and minor bugs but not for something like _this_.
If there wasn't that bug in portage that prevents "pinning" of apps in the personal world-file it wouldn't be _that_ annoying :(

Thomas
Comment 4 Brandon Low (RETIRED) gentoo-dev 2003-07-06 17:18:24 UTC
Hey Azarah, not sure what the status on gawk upstream is, there are now 2 critical bugs in the 3.1.2 release that we know of... last time 3.1.2 was masked however it caused issues (bootstrap stopping issues) so please take a look at this and advise.

Thomas: Yes the response time has been significant, unfortunately we are stuck between a rock and a hard place on this bug because as I mentioned above there are critical bugs in this release version, and appear to be compatibility issues with downgrading stable gentoo to 3.1.1, calm down.
Comment 5 Thomas Eckert 2003-07-13 01:57:12 UTC
OK. If upstream still has the problem, could we construct a workaround with 2 SLOTs of gawk: one for portage with 3.1.2 (as the bugs doesn't seem to bite it) and one for "normal use" with 3.1.1 ?

Thomas
Comment 6 Thomas Eckert 2003-07-16 14:57:07 UTC
Tested gawk-3.1.3.ebuild with the code from the attachment above and one other
application that crashed frequently with 3.1.2
=> at least regarding this bug 3.1.3 behaves well.
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2003-07-17 14:40:30 UTC
Sorry, pretty tied up currently, and mail down again :/

Anyhow, what is the take on this ?  Think we can unmask 3.1.3 ?
Comment 8 Thomas Eckert 2003-07-19 15:50:42 UTC
I encountered no problems using 3.1.3 so far -- using it for a few days now.
I'd unmask it -- it fixes this known bug so we can discover new ones :|
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2003-07-22 08:40:31 UTC
Lolo unmasked 3.1.3 for x86 and other arch devs will follow.

Comment 10 Evert 2003-09-09 03:52:32 UTC
For the record, this bug also exists on Alpha. With next command it's not always reproducable:

TRACKS=`cdparanoia -Q 2>&1 |awk -F. '/^ [ 0-9][0-9]\./ {printf "%02d\n",$1}'`
awk: cmd. line:1: (FILENAME=- FNR=26) fatal: grow_iop_buffer: iop->buf: can't allocate 1073741826 bytes of memory (Cannot allocate memory)

The problem went away went added a grep like this:
TRACKS=`cdparanoia -Q 2>&1 | grep '^ [ 0-9][0-9]\.' |\
        awk -F. '/^ [ 0-9][0-9]\./ {printf "%02d\n",$1}'`

I just tried attachment (id=12840) and I also get this bug, but with a positive number:
gawk: cmd. line:2: fatal: grow_iop_buffer: iop->buf: can't allocate 1073741826 bytes of memory (Cannot allocate memory)