Bus error

Simon Barner barner at in.tum.de
Thu Nov 6 05:21:06 PST 2003


> 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

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).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20031106/2e5bcd95/attachment.bin

More information about the freebsd-current mailing list