Subject: port-sparc64/21425: sa dumps core on a Bus error
To: None <gnats-bugs@gnats.netbsd.org>
From: Bill <talon@amoebasoft.com>
List: netbsd-bugs
Date: 05/02/2003 08:56:00
>Number:         21425
>Category:       port-sparc64
>Synopsis:       sa dumps core on a Bus error
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-sparc64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 02 12:57:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6.1
>Organization:
Amoeba software
>Environment:
System: NetBSD washu 1.6.1 NetBSD 1.6.1 (GENERIC) #0: Mon Apr 7 10:27:16 UTC 2003 autobuild@cs20.apochromatic.org:/autobuilder/build/netbsd-1-6/sparc64/OBJ/autobuilder/build/netbsd-1-6/src/sys/arch/sparc64/compile/GENERIC sparc64
Architecture: sparc64
Machine: sparc64
>Description:
sa bombs out on the sparc64 with process accounting enabled.

[washu:~]# sa
Bus error (core dumped)
[washu:~]#

heres a backtrace from gdb:

Program terminated with signal 10, Bus error.
Reading symbols from /usr/libexec/ld.elf_so...done.
Loaded symbols for /usr/libexec/ld.elf_so
Reading symbols from /usr/lib/libc.so.12...done.
Loaded symbols for /usr/lib/libc.so.12
#0  pacct_print () at /usr/src/usr.sbin/sa/pdb.c:260
260                     memcpy(&ci, cip, sizeof(ci));
(gdb) bt
#0  pacct_print () at /usr/src/usr.sbin/sa/pdb.c:260
#1  0x101968 in main (argc=0, argv=0x204868) at /usr/src/usr.sbin/sa/main.c:283
#2  0x10123c in ___start ()
(gdb)

>How-To-Repeat:
enable accounting and attempt to run sa as root.
>Fix:
unknown.
>Release-Note:
>Audit-Trail:
>Unformatted:
 Reply-To: talon@amoebasoft.com
 X-send-pr-version: 3.95