Date: Fri, 23 Feb 2007 18:47:56 +0100 (CET) From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-stable@FreeBSD.ORG, lofi@FreeBSD.ORG Subject: Re: sysctl segfaulting Message-ID: <200702231747.l1NHluFJ045518@lurza.secnetix.de> In-Reply-To: <200702231806.25926.lofi@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702231747.l1NHluFJ045518>