Subject: Re: 2.0 for sgimips broken
To: Christopher SEKIYA <wileyc@rezrov.net>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-mips
Date: 05/10/2004 22:19:56
On Sun, May 09, 2004 at 12:02:13PM +0900, Christopher SEKIYA wrote:
> All,
> 
> As previously discussed, libc.so.12.114 (as included in the 2.0 branch) causes
> cache errors on sgimips (all supported platforms).

I have a sgimips running 2.0 with libc.so.12.114 (Indy with R5000 CPU),
and I didn't notice this king of troubles (the box is now running a
build.sh release, it has already self-compiled the binaries it's running).
However, I just noticed a strange behavoir of an older tcsh binary:
islates:/home/sources/netbsd-2-0/src>alias ll
ls -lgF
islates:/home/sources/netbsd-2-0/src>ll /lib/libc.so*
Segmentation fault (core dumped)
islates:/home/sources/netbsd-2-0/src>ls -l /lib/libc.so*
lrwxr-xr-x  1 root  wheel       14 May  6 20:13 /lib/libc.so -> libc.so.12.114
lrwxr-xr-x  1 root  wheel       14 May  6 20:13 /lib/libc.so.12 -> libc.so.12.114
-r--r--r--  1 root  wheel  1211356 Nov 20 16:05 /lib/libc.so.12.106
-r--r--r--  1 root  wheel  1213904 Jan  4 04:10 /lib/libc.so.12.109
-r--r--r--  1 root  wheel  1215822 Feb 13 23:24 /lib/libc.so.12.111
-r--r--r--  1 root  wheel  1232648 May  6 16:25 /lib/libc.so.12.114
islates:/home/sources/netbsd-2-0/src>gdb /usr/pkg/bin/tcsh tcsh.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 "mipseb--netbsd"...(no debugging symbols found)...
Core was generated by `tcsh'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.elf_so...(no debugging symbols found)...
done.
Loaded symbols for /usr/libexec/ld.elf_so
Reading symbols from /usr/lib/libtermcap.so.0...(no debugging symbols found)...
done.
Loaded symbols for /usr/lib/libtermcap.so.0
Reading symbols from /usr/lib/libcrypt.so.0...(no debugging symbols found)...
done.
Loaded symbols for /usr/lib/libcrypt.so.0
Reading symbols from /usr/lib/libc.so.12...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libc.so.12

warning: Warning: GDB can't find the start of the function at 0x880692b0.

    GDB is unable to find the start of the function at 0x880692b0
and thus can't determine the size of that function's stack frame.
This means that GDB may be unable to access that stack frame, or
the frames below it.
    This problem is most likely caused by an invalid program counter or
stack pointer.
---Type <return> to continue, or q <return> to quit---
    However, if you think GDB should simply search farther back
from 0x880692b0 for code which looks like the beginning of a
function, you can increase the range of the search using the `set
heuristic-fence-post' command.

warning: Warning: GDB can't find the start of the function at 0x880692b0.
#0  0x880692b0 in ?? ()

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 2.0_BETA (GENERIC32_IP2x) #1: Wed May  5 02:13:47 CEST 2004
        bouyer@islates.antioche.eu.org:/home/sgimips/obj/home/sources/netbsd-2-0/src/sys/arch/sgimips/compile/GENERIC32_IP2x
total memory = 65536 KB
(768 KB reserved for ARCS)
avail memory = 59564 KB
mainbus0 (root): SGI-IP22 [SGI, 6906de17], 1 processor
cpu0 at mainbus0: MIPS R5000 CPU (0x2310) Rev. 1.0 with built-in FPU Rev. 1.0
cpu0: 32KB/32B 2-way set-associative L1 Instruction cache, 48 TLB entries
cpu0: 32KB/32B 2-way set-associative write-back L1 Data cache
ioc0 at mainbus0 addr 0x1fbd9800: rev 0, machine Indy (Guiness), board rev 0
int0 at mainbus0 addr 0x1fbd9880: bus 75MHz, CPU 150MHz
imc0 at mainbus0 addr 0x1fa00000: revision 3
gio0 at imc0
Synchronous ISDN (product 0x04 revision 0x00) at gio0 slot 2 addr 0x1f000000 not configured
hpc0 at gio0 addr 0x1fb80000: SGI HPC3
zsc0 at hpc0 offset 0x59830
zstty0 at zsc0 channel 1 (console i/o)
zstty1 at zsc0 channel 0
pckbc0 at hpc0 offset 0x59840
sq0 at hpc0 offset 0x54000: SGI Seeq 80c03
sq0: Ethernet address 08:00:69:06:de:17
wdsc0 at hpc0 offset 0x44000: WD33C93B SCSI, rev=0, target 0
scsibus0 at wdsc0: 8 targets, 8 luns per target
dsclock0 at hpc0 offset 0x60000
haltwo0 at hpc0 offset 0x58000: HAL2 revision 4.1.0
audio0 at haltwo0: half duplex
biomask 07 netmask 07 ttymask 0f clockmask bf
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 3 lun 0: <QUANTUM, FIREBALL ST3.2S, 0F0C> disk fixed
sd0: 3090 MB, 7068 cyl, 4 head, 223 sec, 512 bytes/sect x 6328861 sectors
sd0: sync (200.00ns offset 12), 8-bit (5.000MB/s) transfers, tagged queueing
sd1 at scsibus0 target 4 lun 0: <IBM, DPES-31080, S31Q> disk fixed
sd1: 1034 MB, 4903 cyl, 4 head, 108 sec, 512 bytes/sect x 2118144 sectors
sd1: sync (200.00ns offset 12), 8-bit (5.000MB/s) transfers, tagged queueing
boot device: sd1
root on sd1a dumps on sd1b
root file system type: ffs