bug-gawk
[Top][All Lists]
Advanced

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

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


From: Gordon Grimes
Subject: [bug-gawk] gawk 3.1.8 bug: empty 'switch' statement causes segmentation fault
Date: Wed, 21 Dec 2011 12:08:24 -0800

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.

 

This program is free software; you can redistribute it and/or modify

it under the terms of the GNU General Public License as published by

the Free Software Foundation; either version 3 of the License, or

(at your option) any later version.

 

This program is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY; without even the implied warranty of

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

GNU General Public License for more details.

 

You should have received a copy of the GNU General Public License

along with this program. If not, see http://www.gnu.org/licenses/.


reply via email to

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