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