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=-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 my initional mail instead. But for reference: [EMAIL PROTECTED]:0:/usr/src/sbin/sysctl # make clean && make depend && env CFLAGS="-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 [EMAIL PROTECTED]:0:/usr/src/sbin/sysctl # cd [EMAIL PROTECTED]:1:~ # exit [EMAIL PROTECTED]:1:~ > rm sysct [EMAIL PROTECTED]: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 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-marcel-freebsd"...(no debugging symbols found)... (gdb) set args kern.clockrate (gdb) run Starting program: /sbin/sysctl kern.clockrate (no debugging symbols found)...(no debugging symbols found)...kern.clockrate: 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) -- ,_, | Michael Nottebrock | [EMAIL PROTECTED] (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org
pgpGoNjvozGd3.pgp
Description: PGP signature