Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > mmap

Posts: n/a

i have a program that reads a file of size 635
and loades it in to memeory for analysis.
i compiled the program with the command

"gcc myprog.c -lefence -g"

after that i used gdb to run my program..
the gdb output says the following

mmap() failed: Cannot allocate memory
Program exited with code 0377.

i dont know how to overcome this problem...
please guide me out..
thanks..for all those who have helped me till now
and for those who are going to help me..
i dont want to flood everyones mailbox with i thank all of u now...

center for biotechnology
anna university
Reply With Quote
Richard Bos
Posts: n/a
      07-15-2004 Removed) (Deepan) wrote:

> mmap() failed: Cannot allocate memory
> Program exited with code 0377.

mmap() is not a C function. I believe it is POSIX, but I'm not sure. If
you can confirm that it is POSIX, you should ask this question in

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mmap iterator validity Marco Cassiani C++ 1 03-24-2005 02:54 PM
mmap vs read/write junky_fellow C Programming 3 02-25-2004 08:43 AM
raw string from possible? Dan Jones Python 1 11-09-2003 11:49 PM
mmap file won't open properly with Linux Parzival Python 1 11-08-2003 08:34 PM
windows equiv to mmap() Jim Mays C++ 2 10-23-2003 06:41 PM