From owner-freebsd-hackers Tue Aug 5 18:51:37 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA19379 for hackers-outgoing; Tue, 5 Aug 1997 18:51:37 -0700 (PDT) Received: from nico.telstra.net (nico.telstra.net [139.130.204.16]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id SAA19370 for ; Tue, 5 Aug 1997 18:51:34 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by nico.telstra.net (8.6.10/8.6.10) with ESMTP id LAA21952; Wed, 6 Aug 1997 11:51:52 +1000 From: Greg Lehey Received: (grog@localhost) by freebie.lemis.com (8.8.7/8.6.12) id LAA04493; Wed, 6 Aug 1997 11:20:59 +0930 (CST) Message-Id: <199708060150.LAA04493@freebie.lemis.com> Subject: Re: Ktrace output of BSD binary: In-Reply-To: from Jaye Mathisen at "Aug 5, 97 04:10:15 pm" To: mrcpu@cdsnet.net (Jaye Mathisen) Date: Wed, 6 Aug 1997 11:20:58 +0930 (CST) Cc: hackers@FreeBSD.ORG Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Jaye Mathisen writes: > > > Short and sweet, but it doesn't tell me anything that I can really use... > > # kdump > 8626 ktrace RET ktrace 0 > 8626 ktrace CALL execve(0xefbfdd83,0xefbfdd44,0xefbfdd4c) > 8626 ktrace NAMI "./asbr" > 8626 asbr RET execve 0 > 8626 asbr PSIG SIGSEGV SIG_DFL > 8626 asbr NAMI "asbr.core" > > > Doesn't even look like it really gets fired up. > > # file asbr > asbr: BSD/386 demand paged (first page unmapped) pure ex There was a problem quite a while ago with BSD/386 executables. They accessed something in the startup code (before main) which isn't (wasn't?) mapped in FreeBSD, a pointer to ps strings (see page 430 of "Porting UNIX Software", which by chance mentions this very problem. I thought the problem had been solved a long time ago--what version of FreeBSD are you running, and what version of BSD/OS did the executable come with? Greg