lkml.org 
[lkml]   [2002]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: execve() fails to report errors
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/

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:1.770 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site