From owner-freebsd-current Wed Aug 29 1:22:38 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailgate.rz.uni-karlsruhe.de (mailgate.rz.uni-karlsruhe.de [129.13.64.97]) by hub.freebsd.org (Postfix) with ESMTP id 8421A37B40A for ; Wed, 29 Aug 2001 01:22:31 -0700 (PDT) (envelope-from un1i@rz.uni-karlsruhe.de) Received: from rzstud1.rz.uni-karlsruhe.de (rzstud1.rz.uni-karlsruhe.de [193.196.41.33]) by mailgate.rz.uni-karlsruhe.de with esmtp (Exim 3.16 #1) id 15c0cH-0002Yt-00; Wed, 29 Aug 2001 10:22:29 +0200 Received: from un1i by rzstud1.rz.uni-karlsruhe.de with local (Exim 2.12 #1) id 15c0cH-0003Na-00; Wed, 29 Aug 2001 10:22:29 +0200 Date: Wed, 29 Aug 2001 10:22:29 +0200 From: Philipp Mergenthaler To: Joerg Wunsch Cc: current@freebsd.org Subject: Re: old BSD/OS binary coredumps Message-ID: <20010829102229.A7573@rz.uni-karlsruhe.de> References: <20010829085053.A52695@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010829085053.A52695@uriah.heep.sax.de>; from j@uriah.heep.sax.de on Wed, Aug 29, 2001 at 08:50:53AM +0200 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Aug 29, 2001 at 08:50:53AM +0200, Joerg Wunsch wrote: > After upgrading to current-2001-08-28, my old BSD/OS Netscape 3 binary > no longer works. It coredumps right away at startup, before opening > any window. (Running it as "netscape3 -help", where it only produces > a usage message, isn't affected.) > > Now the interesting part: i wanted to get an idea why this happened, > and ran it through ktrace. Voila, that still works! Likewise when > running through truss. I saw something like this some time ago, too. In my case it was because in kern_sysctl:ogetkerninfo(), in "case KINFO_BSDI_SYSINFO:", the variable "size" is not always given a value. Maybe the patch in http://www.FreeBSD.org/cgi/query-pr.cgi?pr=25476 fixes it for you, too? (Hm, now I think my patch could need a comment: "size" will only be returned if needed==0. There are two ways this can happen: 1) "case KINFO_BSDI_SYSINFO" has been executed: In this case, "size" will have been set to 0, too. "size" is of size_t, i.e. positive or 0.) 2) on of the other cases has been executed: they all set "size".) > Does anybody have an idea what might have changed, If it's what I suspect, just the random inital value of "size" changed... > and why's that odd behaviour with the syscall tracers? I'd like to know that, too. Bye, Philipp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message