Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Feb 2007 10:32:28 +0100
From:      Michael Nottebrock <lofi@freebsd.org>
To:        Rink Springer <rink@freebsd.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: sysctl segfaulting
Message-ID:  <200702171032.31946.lofi@freebsd.org>
In-Reply-To: <20070217090927.GA91175@rink.nu>
References:  <200702170947.49001.lofi@freebsd.org> <20070217090927.GA91175@rink.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1218885.x0h3h1R3Fa
Content-Type: text/plain;
  charset="iso-8859-6"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Saturday, 17. February 2007 10:09, Rink Springer wrote:
> Hi Michael,
>
> On Sat, Feb 17, 2007 at 09:47:45AM +0100, Michael Nottebrock wrote:
> > I've attached the ktrace output of 'sysctl kern.clockrate' to this
> > message.
>
> Hmm, could you try to rebuild sysctl manually and give that one a try?
> Maybe there's not something in sync. Something like:
>
> # cd /usr/src/sbin/sysctl
> # make
> # ./sysctl kern.clockrate
>
> Would work. If this fails, could you build a debugging version (eg. make
> CFLAGS=3D-g) and use gdb(1) to find out exactly where it crashes?

I already tried both, but to little avail, which is why I went with ktrace =
in=20
my initional mail instead. But for reference:

[lofi@lofi]:0:/usr/src/sbin/sysctl # make clean && make depend && env=20
CFLAGS=3D"-g" make && make install
rm -f sysctl sysctl.o sysctl.8.gz sysctl.8.cat.gz
cc -g   -c /usr/src/sbin/sysctl/sysctl.c
cc -g    -o sysctl sysctl.o
gzip -cn /usr/src/sbin/sysctl/sysctl.8 > sysctl.8.gz
install -s -o root -g wheel -m 555   sysctl /sbin
install -o root -g wheel -m 444 sysctl.8.gz  /usr/share/man/man8
[lofi@lofi]:0:/usr/src/sbin/sysctl # cd
[lofi@lofi]:1:~ # exit
[lofi@lofi]:1:~ > rm sysct
[lofi@lofi]:1:~ > gdb sysctl
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 condition=
s.
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-marcel-freebsd"...(no debugging symbols=20
found)...
(gdb) set args kern.clockrate
(gdb) run
Starting program: /sbin/sysctl kern.clockrate
(no debugging symbols found)...(no debugging symbols found)...kern.clockrat=
e:
Program received signal SIGSEGV, Segmentation fault.
0x08049696 in ?? ()
(gdb) bt
#0  0x08049696 in ?? ()
#1  0xbfbfe238 in ?? ()
#2  0x28050b29 in _rtld_bind_start () from /libexec/ld-elf.so.1
#3  0x28077000 in ?? ()
#4  0x00000118 in ?? ()
#5  0x00000010 in ?? ()
#6  0x00000010 in ?? ()
#7  0x00000002 in ?? ()
#8  0xbfbfeba4 in ?? ()
#9  0x0804e000 in ?? ()
#10 0xbfbfe238 in ?? ()
#11 0x0804a5f2 in ?? ()
#12 0x00000014 in ?? ()
#13 0x0804e000 in ?? ()
#14 0x0804b133 in ?? ()
#15 0xbfbfd990 in ?? ()
#16 0x00000001 in ?? ()
#17 0x00000012 in ?? ()
#18 0x28052863 in find_symdef () from /libexec/ld-elf.so.1
Previous frame inner to this frame (corrupt stack?)
(gdb)=20

=2D-=20
   ,_,   | Michael Nottebrock               | lofi@freebsd.org
 (/^ ^\) | FreeBSD - The Power to Serve     | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org

--nextPart1218885.x0h3h1R3Fa
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQBF1suvXhc68WspdLARAq6zAKCCRZEmX9dzJJEGO4IBxs7JEHaiPQCeN9Qy
W5g/6ldrHibGCyKg16ErpWs=
=+DJD
-----END PGP SIGNATURE-----

--nextPart1218885.x0h3h1R3Fa--



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