Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Nov 2003 14:21:02 +0100
From:      Simon Barner <barner@in.tum.de>
To:        Philipp Westphal <wasa@dark-waves.de>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Bus error
Message-ID:  <20031106132102.GA968@zi025.glhnet.mhn.de>
In-Reply-To: <3FB68966.6000300@dark-waves.de>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/qkq+Ckn+/eutqCoRAtIkAJ4ixZwctfVa57GD26X8uYKLl5wQHACfUXEW
HsQE1qcpS5mW4j5ayxv1Fis=
=T8vs
-----END PGP SIGNATURE-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031106132102.GA968>