From: Pavel Machek <pavel@suse.cz>
To: "Richard B. Johnson" <root@chaos.analogic.com>
Cc: kernel list <linux-kernel@vger.kernel.org>,
torvalds@transmeta.com,
"Marcelo W. Tosatti" <marcelo@conectiva.com.br>
Subject: Re: execve() fails to report errors
Date: Wed, 6 Mar 2002 16:21:06 +0100 [thread overview]
Message-ID: <20020306152106.GD21479@atrey.karlin.mff.cuni.cz> (raw)
In-Reply-To: <20020305233437.GA130@elf.ucw.cz> <Pine.LNX.3.95.1020306090414.31541A-100000@chaos.analogic.com>
In-Reply-To: <Pine.LNX.3.95.1020306090414.31541A-100000@chaos.analogic.com>
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.
next prev parent reply other threads:[~2002-03-06 15:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-05 23:34 Pavel Machek
2002-03-06 14:08 ` Richard B. Johnson
2002-03-06 15:21 ` Pavel Machek [this message]
2002-03-15 13:01 ` Russell King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020306152106.GD21479@atrey.karlin.mff.cuni.cz \
--to=pavel@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
--cc=root@chaos.analogic.com \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®