From owner-freebsd-hackers Thu May 28 13:21:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA17198 for freebsd-hackers-outgoing; Thu, 28 May 1998 13:21:39 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA17101 for ; Thu, 28 May 1998 13:21:13 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id MAA01056; Thu, 28 May 1998 12:14:41 -0700 (PDT) Message-Id: <199805281914.MAA01056@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: "Daniel O'Connor" cc: Nicholas Charles Brawn , Ollivier Robert , hackers@FreeBSD.ORG Subject: Re: Star Office Installation In-reply-to: Your message of "Thu, 28 May 1998 16:29:59 +0930." <199805280659.QAA09269@cain.gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 28 May 1998 12:14:41 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > I recently d/l the 4.0 distribution and it puked at me when i tried to > > run it. The error message was "Abort Trap". > > > > I'm running 2.2.6-release with linux emulation, if anyone has any pointers > > as to why this is happening, i'd love to know. :) > That's the error message I get. > > Here is the end of a linux_kdump of the setup.bin file - > 2584 setup.bin NAMI "/compat/linux/usr/home/darius/projects/Office40_Install/setup.ini" > 2584 setup.bin NAMI "/usr/home/darius/projects/Office40_Install/setup.ini" > 2584 setup.bin RET linux_newstat JUSTRETURN > 2584 setup.bin CALL getpid > 2584 setup.bin RET getpid 2584/0xa18 > 2584 setup.bin CALL linux_open(0xefbfc8f0,0x800,0) > 2584 setup.bin NAMI "/compat/linux/proc/2584/cmdline" > 2584 setup.bin NAMI "/proc/2584/cmdline" > 2584 setup.bin RET linux_open JUSTRETURN > 2584 setup.bin PSIG SIGSEGV caught handler=0x835e794 mask=0x0 code=0xc This is the real error. I suspect that they do something like: FILE *fp; char *ap, argbuf[1024]; ... ap = asprintf("/proc/%d/cmdline", getpid()); fp = fopen(ap, "r"); fread(argbuf, sizeof(argbuf), 1, fp); so fp is NULL and unchecked, which is arguably poor programming. > 2584 setup.bin CALL linux_sigprocmask(0x1,0xefbfcc0c,0) > 2584 setup.bin RET linux_sigprocmask 0 > 2584 setup.bin CALL linux_sigaction(0x6,0xefbfcb74,0xefbfcb64) > 2584 setup.bin RET linux_sigaction 0 > 2584 setup.bin CALL getpid > 2584 setup.bin RET getpid 2584/0xa18 > 2584 setup.bin CALL linux_kill(0xa18,0x6) > 2584 setup.bin PSIG SIGIOT SIG_DFL > 2584 setup.bin NAMI "setup.bin.core" > > > --------------------------------------------------------------------- > |Daniel O'Connor software and network engineer for Genesis Software | > |http://www.gsoft.com.au | > |The nice thing about standards is that there are so many of them to| > |choose from. -- Andrew Tanenbaum | > --------------------------------------------------------------------- > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message