From: Anton Blanchard <anton@samba.org>
To: srikrish <srikrish@in.ibm.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] For Segmentation Fault when using large external array
Date: Tue, 30 Sep 2003 17:03:29 +1000 [thread overview]
Message-ID: <20030930070328.GG24019@krispykreme> (raw)
In-Reply-To: <006601c38685$0148b3a0$9915b609@srikrishnan>
Hi,
> When I compile and run an application with a large external array I get a
> Segmentation Fault.
...
> Comments: The problem is that we don't reserve the bss region for the app
> (via a set_brk/do_brk call) until after we've loaded the loader so they get
> mapped to overlapping memory locations. The fix is to move the update to
> current->mm.* and the set_brk/do_brk call to before the point we call
> load_elf_interp().
Yes it would be nice if we failed more gracefully here. A number of
people have come to me after hitting this problem, not realising that
its the size of their bss that caused the SEGV.
BTW I didnt look at your patch, unfortunately your mailer destroyed it.
Anton
prev parent reply other threads:[~2003-09-30 7:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-29 12:27 [PATCH] For Segmentation Fault when using large external array srikrish
2003-09-30 7:03 ` Anton Blanchard [this message]
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=20030930070328.GG24019@krispykreme \
--to=anton@samba.org \
--cc=linux-kernel@vger.kernel.org \
--cc=srikrish@in.ibm.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