From: Lingli Zhang <lingli_z@umail.ucsb.edu>
To: linux-kernel@vger.kernel.org
Subject: mmap() failed on Linux 2.4.18-10smp with 4GB RAM
Date: Tue, 24 Sep 2002 21:59:30 -0700 [thread overview]
Message-ID: <1032929970.3d9142b22bc55@webaccess.umail.ucsb.edu> (raw)
Hi there,
My machine is a 2-Processor Pentium 4 (Xeon) 2.4GHz e7500 Chipset with 4GB RAM.
I installed Redhat (kernel: Linux 2.4.18-10bigmem) on it.
But when I run following piece of code:
========================================
#include <unistd.h>
#include <sys/mman.h>
int main(){
mmap ((void *) 1090519040, 17000000,
PROT_READ | PROT_WRITE | PROT_EXEC,
MAP_ANONYMOUS | MAP_PRIVATE | MAP_FIXED, -1, 0);
}
===========================================
It gives out "segmentation fault". It works well if I change 17000000
to 16000000.
I have tried Linux 2.4.18-10smp kernel, same problem.
Is there anyone have any idea what's going on here? Or do you have any
recommendation that which version of Linux I should use for my machine to work
around this problem?
Thanks a lot!
Lingli
--
Lingli Zhang
lingli_z@umail.ucsb.edu
next reply other threads:[~2002-09-25 4:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-25 4:59 Lingli Zhang [this message]
2002-09-25 6:18 ` mmap() failed on Linux 2.4.18-10smp with 4GB RAM Steffen Persvold
2002-09-25 17:50 Lingli Zhang
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=1032929970.3d9142b22bc55@webaccess.umail.ucsb.edu \
--to=lingli_z@umail.ucsb.edu \
--cc=linux-kernel@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).