1# From djones@zoonami.com Wed Jun 13 17:46:27 2001 2# Received: from mail.actcom.co.il [192.114.47.13] 3# by localhost with POP3 (fetchmail-5.5.0) 4# for arnold@localhost (single-drop); Wed, 13 Jun 2001 17:46:27 +0300 (IDT) 5# Received: by actcom.co.il (mbox arobbins) 6# (with Cubic Circle's cucipop (v1.31 1998/05/13) Wed Jun 13 17:47:09 2001) 7# X-From_: djones@zoonami.com Wed Jun 13 17:45:40 2001 8# Received: from lmail.actcom.co.il by actcom.co.il with ESMTP 9# (8.9.1a/actcom-0.2) id RAA07057 for <arobbins@actcom.co.il>; 10# Wed, 13 Jun 2001 17:45:34 +0300 (EET DST) 11# (rfc931-sender: mail.actcom.co.il [192.114.47.13]) 12# Received: from billohost.com (www.billohost.com [209.196.35.10]) 13# by lmail.actcom.co.il (8.11.2/8.11.2) with ESMTP id f5DEjSO24028 14# for <arobbins@actcom.co.il>; Wed, 13 Jun 2001 17:45:33 +0300 15# Received: from fencepost.gnu.org (fencepost.gnu.org [199.232.76.164]) 16# by billohost.com (8.9.3/8.9.3) with ESMTP id KAA24625 17# for <arnold@skeeve.com>; Wed, 13 Jun 2001 10:44:43 -0400 18# Received: from topcat.zoonami.com ([193.112.141.198]) 19# by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) 20# id 15ABtZ-0000FQ-00 21# for <bug-gawk@gnu.org>; Wed, 13 Jun 2001 10:45:21 -0400 22# Received: from topcat.zoonami.com (localhost [127.0.0.1]) 23# by topcat.zoonami.com (8.9.3/8.9.3) with ESMTP id OAA28329; 24# Wed, 13 Jun 2001 14:45:54 GMT 25# (envelope-from djones@topcat.zoonami.com) 26# Message-Id: <200106131445.OAA28329@topcat.zoonami.com> 27# To: bug-gawk@gnu.org 28# cc: David Jones <drj@pobox.com> 29# Subject: 3.1.0 core dumps. Fiddling with OFMT? 30# Date: Wed, 13 Jun 2001 14:45:54 +0000 31# From: David Jones <djones@zoonami.com> 32# Status: R 33# 34# The following program causes gawk to dump core: 35# 36# jot 10|./gawk '{OFMT="%."NR"f";print NR}' 37# 38# 'jot 10', if you didn't know, produces the numbers 1 to 10 each on its 39# own line (ie it's like awk 'BEGIN{for(i=1;i<=10;++i)print i}') 40# 41# Here's an example run: 42# 43# -- run being 44# 1 45# 2 46# 3 47# 4 48# gawk: cmd. line:1: (FILENAME=- FNR=5) fatal error: internal error 49# Abort trap - core dumped 50# -- run end 51# 52# Ah. print NR appears to be not interesting. The following program also 53# has the same problem: 54# 55# jot 10|./gawk '{OFMT="%."NR"f"}' 56# 57# Cheers, 58# djones 59# (version info follows) 60# 61# I'm running on FreeBSD 4.1, here's the output of uname -a 62# 63# FreeBSD topcat.zoonami.com 4.1-RELEASE FreeBSD 4.1-RELEASE #0: Fri Jul 28 14:30:31 GMT 2000 jkh@ref4.freebsd.org:/usr/src/sys/compile/GENERIC i386 64# 65# And ./gnu --version 66# 67# GNU Awk 3.1.0 68# Copyright (C) 1989, 1991-2001 Free Software Foundation. 69# 70# This program is free software; you can redistribute it and/or modify 71# it under the terms of the GNU General Public License as published by 72# the Free Software Foundation; either version 2 of the License, or 73# (at your option) any later version. 74# 75# This program is distributed in the hope that it will be useful, 76# but WITHOUT ANY WARRANTY; without even the implied warranty of 77# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 78# GNU General Public License for more details. 79# 80# You should have received a copy of the GNU General Public License 81# along with this program; if not, write to the Free Software 82# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 83# 84# 85{ OFMT="%."NR"f"; print NR } 86