Subject: SIGSYS on lseek with new libc
To: None <port-vax@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-vax
Date: 05/21/2001 11:48:29
Hi,
I'm trying to do a 'make build' on my vax, but it fails on a problem:
some programs dumps core with a SIGSYS. I can reproduce it with a
'cat <some_file> | tail' (while 'tail <some_file>' works fine). tail dies
with a SIGSYS in lseek:
cordouan#/home/sources-vax/src>kdump
<...>
8449 tail CALL lseek(0,0,0,0,0x1)
8449 tail RET lseek -1 errno 29 Illegal seek
8449 tail CALL syscall
8449 tail PSIG SIGSYS SIG_DFL
8449 tail NAMI "tail.core"
cordouan#/home/sources-vax/src>gdb /usr/bin/tail tail.core
GNU gdb 4.17
Copyright 1998 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--netbsd"...(no debugging symbols found)...
Core was generated by `tail'.
Program terminated with signal 12, Bad system call.
Reading symbols from /usr/libexec/ld.so...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libc.so.12.76...(no debugging symbols found)...
done.
#0 0x1875998 in __syscall (0, 0, 1)
(gdb) where
#0 0x1875998 in __syscall (0, 0, 1)
#1 0x187594a in lseek (0, 0, 0, 1)
#2 0x2b0f in main (0, 2147482560, 2147482568)
#3 0x109e in __start (2147482556)
#4 0x1028 in start (Cannot access memory at address 0x7fffbe90.
)
Cannot access memory at address 0x7fffbe88.
(gdb) quit
I rebuild the kernel and libc from scratch, after a 'make includes'. Reverting
to the old libc (libc.so.12.62.1) makes the problem go away.
Anyone else seeing this ?
--
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr
--