Subject: Re: awk dumping core on -current snapshot
To: Hugh Graham <hugh@openbsd.org>
From: Tillman Hodgson <tillman@seekingfire.com>
List: port-vax
Date: 07/20/2004 09:26:28
On Mon, Jul 19, 2004 at 01:36:15PM -0600, Tillman Hodgson wrote:
> On Mon, Jul 19, 2004 at 11:53:45AM -0700, Hugh Graham wrote:
> > IIRC NetBSD recently switched to nawk, which makes frequent use
> > of modf(), which on vax is implemented with the emodd instruction. 
> > 
> > Unfortunately, most newer vaxes lack this instruction. You can
> > confirm that with gdb on the core and seeing what instruction
> > lies under the PC.
> 
> I'll take a look at that after I'm done unrolling a newer (July 12)
> -current build and report back to the list.

bash-2.05b# gdb /usr/bin/awk ./awk.core
GNU gdb 5.3nb1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "vax--netbsdelf"...(no debugging symbols found)...
Core was generated by `awk'.
Program terminated with signal 4, Illegal instruction.   <--- Interesting
(gdb) bt
#0  0x7f786048 in strtod (266294, 2147476564) from /usr/lib/libc.so.12
#1  0x00018742 in is_number (266294)
#2  0x00017b08 in fldbld ()
#3  0x000191cc in execute (296384)
#4  0x0001bec3 in printstat (296432, 319)
#5  0x000191b5 in execute (296416)
#6  0x0001b28f in pastat (296464, 259)
#7  0x000191b5 in execute (296448)
#8  0x000192af in program (296496, 258)
#9  0x000191b5 in execute (296480)
#10 0x00019108 in run (296480)
#11 0x00018b37 in main (2, 2147477052, 2147477064)
#12 0x0001279f in ___start (2, 2147477052, 2147477064, 2138976790,
2138939392, 2147483632)

Unfortunately, I've very weak with gdb. A "disass $pc" shows the
function strtod, which is likely not what I want.

-T


-- 
There is no reality -- only our own order imposed on everything.
	- Basic Bene Gesserit Dictum