Bug 2451

Summary: crashes (unable to allocate memory) where it worked before
Product: Sisyphus Reporter: imz <vanyaz>
Component: gawkAssignee: placeholder <placeholder>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P5 CC: glebfm, ldv, placeholder
Version: unstable   
Hardware: all   
OS: Linux   

Description imz 2003-04-01 01:56:49 MSD
gawk-3.1.2-alt1 crashes where gawk-3.1.1-alt4 worked (hinders  emacs compilation; that\'s how it was discovered)

---
for (( i = 0; i &lt; 10; ++i )); do emacs -q -batch -f list-load-path-shadows; done  2&gt;&amp;1 | awk \'/!! /{ r++; } END{ if (r) printf \&quot;There were %d errors while recompiling Emacs Lisp modules.\\n\&quot;, r; exit r; } /.*/\'
...
awk: cmd. line:2: (FILENAME=- FNR=222) fatal: grow_iop_buffer: iop-&gt;buf: can\'t allocate 1073741826 bytes of memory (Cannot allocate memory)


At the same time the old gawk works:

for (( i = 0; i &lt; 10; ++i )); do emacs -q -batch -f list-load-path-shadows; done  2&gt;&amp;1 | /user/imz/bin/gawk-3.1.1-alt4 \'/!! /{ r++; } END{ if (r) printf \&quot;There were %d errors while recompiling Emacs Lisp modules.\\n\&quot;, r; exit r; } /.*/\'

---
gawk-3.1.2-alt1

$ rpm -qa \'*emacs*\'
emacs-ruby-mode-1.59-alt3
emacsen-startscripts-0.0.3-alt2
emacs-X11-21.3-alt1
emacs-semantic-1.4.3-alt2
emacs-el-21.3-alt1
emacs-elib-1.0-alt6
emacs-leim-21.3-alt1
emacs-ede-1.0-alt0.6beta2
emacs-speedbar-0.14-alt0.7.beta4
emacs-jdee-2.3.2-alt4
emacs-eieio-0.17-alt5
emacs-mode-auctex-11.14-alt6
emacs-common-21.3-alt1
emacs-nox-21.3-alt1

Comment 1 imz 2003-04-01 02:00:02 MSD
The crash happens after ~ 6 iterations on altair. (At home: ~ 1).
Comment 2 imz 2003-04-01 02:00:02 MSD
The crash happens after ~ 6 iterations on altair. (At home: ~ 1).