Date: Thu, 28 May 1998 12:14:41 -0700 From: Mike Smith <mike@smith.net.au> To: "Daniel O'Connor" <doconnor@gsoft.com.au> Cc: Nicholas Charles Brawn <ncb05@uow.edu.au>, Ollivier Robert <roberto@keltia.freenix.fr>, hackers@FreeBSD.ORG Subject: Re: Star Office Installation Message-ID: <199805281914.MAA01056@dingo.cdrom.com> In-Reply-To: Your message of "Thu, 28 May 1998 16:29:59 %2B0930." <199805280659.QAA09269@cain.gsoft.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
>
> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805281914.MAA01056>
