Re: Bus error

From: Simon Barner <barner_at_in.tum.de>
Date: Thu, 6 Nov 2003 14:21:02 +0100
Hi,

> Hi today, cvsup'ed my source and build world ...
> and now get an so called
> 
> Bus error
> 
> while i want to su, anyone know about it (or fixed it)

I think the best is to build debugging version of su:

# cd /usr/src/usr.bin/su 
# make clean
# make depend
# set CFLAGS="$CFLAGS -g"
# make
# install  -o root -g wheel -m 4555  -fschg /usr/obj/usr/src/usr.bin/su/su /usr/bin

( 'make install' will strip the binary and all the nice debug info is
gone)

Now run su in the debugger, and will probably get a core dump:

gdb /usr/bin/su   
GNU gdb 5.2.1 (FreeBSD)
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 "i386-undermydesk-freebsd"...(no debugging symbols found)...
(gdb) run
Starting program: /usr/bin/su 


When it crashes, get a backtrace (in gdb: `bt full' and post it here).

Simon

Received on Thu Nov 06 2003 - 04:21:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:27 UTC