NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/49287: something wrong between exec_script and compat32
The following reply was made to PR kern/49287; it has been noted by GNATS.
From: David Holland <dholland%eecs.harvard.edu@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/49287: something wrong between exec_script and compat32
Date: Wed, 22 Oct 2014 19:57:18 -0400
On Wed, Oct 22, 2014 at 09:05:02PM +0000, Christos Zoulas wrote:
> Can't reproduce this on my amd64 box running current. I untarred
> base and etc from the latest i386 build, chrooted inside that
> directory and ran usr/bin/true.
I reproduced it with current (both amd64 and i386) from 20141017 -
maybe it's been fixed since then, but I doubt it.
I couldn't reproduce the crash, but I did get the corrupted argv. (I
suspect the crash depends on exactly the right combination of
circumstances.)
Try one of these:
------
#include <stdio.h>
int main(int argc, char *argv[]) {
for (int i=0; i<=argc; i++) printf("%d: %s\n", i, argv[i]);
}
------
and make it the interpreter of a script, then run the script, both
with and without arguments.
--
- David A. Holland / dholland%eecs.harvard.edu@localhost
Home |
Main Index |
Thread Index |
Old Index