Re: execve() fails to report errors

Pavel Machek (pavel@suse.cz)
Wed, 6 Mar 2002 16:21:06 +0100


Hi!

> > Take this trivial .c program. Obviously correct.
> >
> >
> > struct foo {
> > char fill[1*1024*1024*1024];
> > };
> >
> > struct foo a;
> >
> > void
> > main(void)
> > {
> > }
> >
> > Compile. Run. Segfault.
> >
> > Whose fault? Kernels; it fails to corectly report not enough address
> > space.
>
> I think the bug has to be found earlier on up the food chain.
> If you do:

Well, nothing earlier can know if there will be enough address space
at runtime. (It depends on kernel config .. 3GB vs 2GB ...)
Pavel

-- 
Casualities in World Trade Center: ~3k dead inside the building,
cryptography in U.S.A. and free speech in Czech Republic.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/