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

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

3.1.0 core dumps. Fiddling with OFMT?


From: David Jones
Subject: 3.1.0 core dumps. Fiddling with OFMT?
Date: Wed, 13 Jun 2001 14:45:54 +0000

The following program causes gawk to dump core:

jot 10|./gawk '{OFMT="%."NR"f";print NR}'

'jot 10', if you didn't know, produces the numbers 1 to 10 each on its
own line (ie it's like awk 'BEGIN{for(i=1;i<=10;++i)print i}')

Here's an example run:

-- run being
1
2
3
4
gawk: cmd. line:1: (FILENAME=- FNR=5) fatal error: internal error
Abort trap - core dumped
-- run end

Ah.  print NR appears to be not interesting.  The following program also
has the same problem:

jot 10|./gawk '{OFMT="%."NR"f"}'

Cheers,
 djones
(version info follows)

I'm running on FreeBSD 4.1, here's the output of uname -a

FreeBSD topcat.zoonami.com 4.1-RELEASE FreeBSD 4.1-RELEASE #0: Fri Jul 28 
14:30:31 GMT 2000     address@hidden:/usr/src/sys/compile/GENERIC  i386

And ./gnu --version

GNU Awk 3.1.0
Copyright (C) 1989, 1991-2001 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 2 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, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.




reply via email to

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