bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] gawk 3.1.8 bug: empty 'switch' statement causes segmentat


From: Aharon Robbins
Subject: Re: [bug-gawk] gawk 3.1.8 bug: empty 'switch' statement causes segmentation fault
Date: Fri, 23 Dec 2011 14:56:14 +0200
User-agent: Heirloom mailx 12.4 7/29/08

Hi.  Re this:

> From: Gordon Grimes <address@hidden>
> To: "address@hidden" <address@hidden>
> Date: Wed, 21 Dec 2011 12:08:24 -0800
> Subject: [bug-gawk] gawk 3.1.8 bug: empty 'switch' statement causes
>       segmentation fault
>
> HI,
> I came across this and thought you'd be interested.
> Thanks,
> -ggrimes
>
>
> % echo hi | gawk '{switch($0){}}'
> gawk: (FILENAME=- FNR=1) fatal error: internal error: segfault
> bash: [744: 1] tcsetattr: Inappropriate ioctl for device
> Aborted (core dumped)
>
> % gawk --version
> GNU Awk 3.1.8
> Copyright (C) 1989, 1991-2010 Free Software Foundation.
> ...

Thanks for the repot. This is indeed a bug.

Fortunately, it does not occur in gawk 4.0.0, which is the current
released version.  I am not maintaining the 3.1.x version anymore.  If you
really need a fix for this in 3.1.8, then please let me know offline.

Thanks!

Arnold



reply via email to

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