bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gawk-stable] bug: fatal error when getline from directory


From: Paolo
Subject: Re: [gawk-stable] bug: fatal error when getline from directory
Date: Sat, 10 Jan 2009 12:50:03 +0100
User-agent: Mutt/1.3.28i

On Fri, Jan 09, 2009 at 11:40:14PM +0100,  wrote:
> 
> Note there's a problem with my hack, in that iop_open() won't opendir() 

fixed in diff attached - still just a POC, but at least it's a fixed POC :)

> But seems there's a deeper problem with all such specfd stuff, eg:

uh, free() on a statically allocated struct :} 
fixed - er POC of workaround:

#-[io.c specfdopen()]--
- iop->flag |= IOP_NO_FREE;
+ iop->flag |= IOP_NOFREE_OBJ;

so spec_setup() is no more used; the whole thing looks a bit messy to me, 
yet seems to yield expected result now; pls see attached .out, obtained 
with pgawk, where -orig means plain Debian's 1:3.1.5.dfsg-4.3. 
There seems to be no mem leakage.


thx
-- 
paolo

Attachment: awk-orig_sock-no-2nd-close.out
Description: Text document

Attachment: awk_dir-no-2nd-close.out
Description: Text document

Attachment: awk_dir.out
Description: Text document

Attachment: awk_sock-no-2nd-close.out
Description: Text document

Attachment: awk_sock.out
Description: Text document

Attachment: awkprof-orig_sock-no-2nd-close.out
Description: Text document

Attachment: awkprof_dir-no-2nd-close.out
Description: Text document

Attachment: awkprof_dir.out
Description: Text document

Attachment: awkprof_sock-no-2nd-close.out
Description: Text document

Attachment: awkprof_sock.out
Description: Text document

Attachment: gawk-3.1.5.1_io.c.diff
Description: Text document

Attachment: gawk-3.1.5_awk.h.diff
Description: Text document

Attachment: awk-orig_sock.out
Description: Text document

Attachment: awkprof-orig_sock.out
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]