From owner-freebsd-stable@FreeBSD.ORG Fri Feb 23 17:48:04 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 7EEA816A400; Fri, 23 Feb 2007 17:48:04 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id D429A13C428; Fri, 23 Feb 2007 17:48:03 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (cxinax@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l1NHlunQ045519; Fri, 23 Feb 2007 18:48:02 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l1NHluFJ045518; Fri, 23 Feb 2007 18:47:56 +0100 (CET) (envelope-from olli) Date: Fri, 23 Feb 2007 18:47:56 +0100 (CET) Message-Id: <200702231747.l1NHluFJ045518@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, lofi@FreeBSD.ORG In-Reply-To: <200702231806.25926.lofi@freebsd.org> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Fri, 23 Feb 2007 18:48:02 +0100 (CET) Cc: Subject: Re: sysctl segfaulting X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG, lofi@FreeBSD.ORG List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Feb 2007 17:48:04 -0000 Michael Nottebrock wrote: > Does anybody have any further ideas on this? I've had a quick look at the source. According to your debugging info, an invalid pointer is passed to the S_clockinfo() function, but it's beyond me how that could happen. The code in show_var() which calls that function looks perfectly OK. It's also interesting that you seem to be the only one experiencing the problem. Are you using any special compiler options, anything unusual in /etc/make.conf or /etc/malloc.conf? Do you use a non-default locale environment (i.e. are any of the LC_* or LANG variables set)? Finally, have you tried removing the entire source of sysctl and checking out a fresh copy from RELENG_6? Other than that, my next try would be to sprinkle the source with a few fprintf(stderr,...) to check the value of the pointer at various points in the source. (Or follow it with gdb, if you're more familiar with that tool ... Personally I think that adding a few fprintf's is quicker and easier, but YMMV, of course.) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart Any opinions expressed in this message are personal to the author and may not necessarily reflect the opinions of secnetix GmbH & Co KG in any way. FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "IRIX is about as stable as a one-legged drunk with hypothermia in a four-hundred mile per hour wind, balancing on a banana peel on a greased cookie sheet -- when someone throws him an elephant with bad breath and a worse temper." -- Ralf Hildebrandt