From owner-freebsd-current Thu Aug 24 12:27:27 2000 Delivered-To: freebsd-current@freebsd.org Received: from ego.mind.net (ego.mind.net [206.99.66.9]) by hub.freebsd.org (Postfix) with ESMTP id 745FA37B424 for ; Thu, 24 Aug 2000 12:27:23 -0700 (PDT) Received: from takhus-home.ashlandfn.org (AFN-Dynamic-21924.ashlandfiber.net [208.46.219.24]) by ego.mind.net (8.9.3/8.9.3) with ESMTP id MAA15592; Thu, 24 Aug 2000 12:27:21 -0700 Received: from localhost (fleisher@localhost) by takhus-home.ashlandfn.org (8.11.0/8.9.3) with ESMTP id e7OJREu58499; Thu, 24 Aug 2000 12:27:14 -0700 (PDT) (envelope-from takhus@takhus.mind.net) Date: Thu, 24 Aug 2000 12:27:14 -0700 (PDT) From: Tony Fleisher X-Sender: fleisher@takhus-home.ashlandfn.org To: Sheldon Hearn Cc: freebsd-current@FreeBSD.ORG Subject: Re: problems with /usr/bin/awk In-Reply-To: <85892.967130374@axl.fw.uunet.co.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I also was able to get it to run properly when not redirecting to a file. I wonder if there might be some dependancy in the system that causes different behavior with this when output is to a tty vs. a filehandle. I tried this with a copy of /bin/sh from 4.0-RELEASE, and had the same result, so I think we can probably rule out /bin/sh as the culprit. This might provide some further help: # pwd /usr/ports/lang/guile/work/guile-1.4/libguile # PATH=.:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin ./guile-doc-snarf eval.c -DHAVE_CONFIG_H -I.. -I./.. -I../libltdl -O -pipe -Wall -Wmissing-prototypes eval.c > eval.x awk: ./guile-snarf.awk:17: (FILENAME=- FNR=9680) fatal error: internal error Abort trap - core dumped # cat eval.x scm_unbound_variable_key = scm_permanent_object (( ((scm_bits_t) ( ((scm_bits_t *) ((SCM_CELLPTR) (( scm_intern0 ( "unbound-variable" ) ) )) ) [ 0 ] )) ) ) ; On Thu, 24 Aug 2000, Sheldon Hearn wrote: > > > On Tue, 22 Aug 2000 12:27:01 +0200, Sheldon Hearn wrote: > > > > awk: ./guile-snarf.awk:17: (FILENAME=- FNR=9680) fatal error: internal > > > error > > > Abort trap - core dumped > > > *** Error code 1 > > > > I get the same thing here. Inspecting the core dump, one finds that the > > abort() happens in eval.c:1668, just below a huge FIXME comment. I'll > > contact the gawk maintainers. > > This is a bitch. If I run the problematic awk script from the > command-line, feeding it exactly the same input as it is given from the > Makefile, awk does not dump core, but rather completes successfully. > When run from gmake, it dumps core. > > So I'm a bit stumped as far as formulating an easy How-To-Repeat is > concerned. :-( > > Ciao, > Sheldon. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message