From owner-freebsd-stable@FreeBSD.ORG Sat Feb 17 09:32:39 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 27BE416A401 for ; Sat, 17 Feb 2007 09:32:39 +0000 (UTC) (envelope-from lofi@freebsd.org) Received: from mail-in-12.arcor-online.net (mail-in-12.arcor-online.net [151.189.21.52]) by mx1.freebsd.org (Postfix) with ESMTP id 90D1F13C441 for ; Sat, 17 Feb 2007 09:32:38 +0000 (UTC) (envelope-from lofi@freebsd.org) Received: from mail-in-12-z2.arcor-online.net (mail-in-12-z2.arcor-online.net [151.189.8.29]) by mail-in-12.arcor-online.net (Postfix) with ESMTP id 6886A4C682; Sat, 17 Feb 2007 10:32:37 +0100 (CET) Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by mail-in-12-z2.arcor-online.net (Postfix) with ESMTP id 514F92793FE; Sat, 17 Feb 2007 10:32:37 +0100 (CET) Received: from lofi.dyndns.org (dslb-084-061-186-175.pools.arcor-ip.net [84.61.186.175]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id EAAAB106CCF; Sat, 17 Feb 2007 10:32:36 +0100 (CET) Received: from kiste.my.domain (root@kiste.my.domain [192.168.8.2]) by lofi.dyndns.org (8.13.8/8.13.3) with ESMTP id l1H9WWIO003192 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 17 Feb 2007 10:32:33 +0100 (CET) (envelope-from lofi@freebsd.org) Received: from kiste.my.domain (lofi@localhost [127.0.0.1]) by kiste.my.domain (8.13.6/8.13.4) with ESMTP id l1H9WWl4003568; Sat, 17 Feb 2007 10:32:32 +0100 (CET) (envelope-from lofi@freebsd.org) Received: from localhost (localhost [[UNIX: localhost]]) by kiste.my.domain (8.13.6/8.13.4/Submit) id l1H9WWfW003566; Sat, 17 Feb 2007 10:32:32 +0100 (CET) (envelope-from lofi@freebsd.org) X-Authentication-Warning: kiste.my.domain: lofi set sender to lofi@freebsd.org using -f From: Michael Nottebrock To: Rink Springer Date: Sat, 17 Feb 2007 10:32:28 +0100 User-Agent: KMail/1.9.5 References: <200702170947.49001.lofi@freebsd.org> <20070217090927.GA91175@rink.nu> In-Reply-To: <20070217090927.GA91175@rink.nu> X-Face: g:jG2\O{-yqD1x?DG2lU1)(v%xffR"p8Nz(w/*)YEUO\Hn%mGi&-!+rq$&r64,=?utf-8?q?fuP=7E=3Bbw=5C=0A=09=5EQdX?=@v~HEAi?NaE8SU]}.oeYSjN84Fe{M(ahZ.(i+lxyP; pr)2[%mGbkY'RmM>=?utf-8?q?+mg3Y=24ip=0A=091?=@Z>[EUaE7tjJ=1DRs~:!uSd""d~:/Er3rpQA%ze|bp>S MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1218885.x0h3h1R3Fa"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200702171032.31946.lofi@freebsd.org> X-Virus-Scanned: by amavisd-new Cc: freebsd-stable@freebsd.org Subject: Re: sysctl segfaulting X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Feb 2007 09:32:39 -0000 --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--