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

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

Re: Memory exhausted when doing a case-insensitive match to an empty reg


From: Karel Zak
Subject: Re: Memory exhausted when doing a case-insensitive match to an empty regexp
Date: Wed, 26 Oct 2005 16:31:44 +0200

On Tue, 2005-10-25 at 23:25 -0700, Tony Leneis wrote:
>       Gawk has started having problems with case-insensitive empty
> regexp matches sometime between version 3.1.1 and 3.1.4.  Here's what I
> see with gawk 3.1.4 and 3.1.5:
> 
> # gawk 'BEGIN { IGNORECASE=0; print "test" ~ "" }'
> 1
> # gawk 'BEGIN { IGNORECASE=1; print "test" ~ "" }'
> gawk: fatal: memory exhausted
> 
> When I try the same program under gawk 3.0.3, 3.1.0, and 3.1.1 I get a
> response of 1 regardless of how IGNORECASE is set.

It works for me:

        $ ./gawk 'BEGIN { IGNORECASE=1; print "test" ~ "" }';
        1
        $ ./gawk --version | head -1
        GNU Awk 3.1.5

Note that it's raw upstream version without any patch. You should try it
with gdb.

        Karel

-- 
Karel Zak <address@hidden>





reply via email to

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