MikeK's software notebook

MikeK's software notebook

What you will find

This used to be the place where I wrote stuff I was thinking about while working on the Mozilla project.

Maybe in the near future I'll start to update it again as I'm involved in a couple of new open-source projects - updates pending...

mmap: Permission denied

Why did I reboot?Posted by Mike Kristoffersen 20 Mar, 2009 20:08:31
This error gives plenty of hits in a google search - it seems like it has something to do with the mapping of the memory used by the virtual machine in my case used for ARM support. Further more it seems to be related to mmap_min_addr, whatever that is :)

The build instructions on the Mozilla Fennec web-page tells about this error, and say that it might be an idea to do the following if you get this specific error:

add the following to /etc/sysctl.conf

vm.vdso_enabled = 0
vm.mmap_min_addr = 4096

Then run
sudo sysctl -p

Well.... looking at my /etc/sysctl.conf file I looked like I had allready done that during my intial setup of the build system, but adding the ends together I figured that I might get a better result wiht the vm.mmap_min_addr set to 0 instead of 4096 (inspired by this page) - and it worked!

So what I did, having one terminal window open loged into scratchbox, was to open a new terminal window and do:

sudo gedit

I first tried without the sudo, but it wouldn't let me save changes in the /etc/sysctl.conf file, so running as superuser seemed to be the trick for me here - or another disaster waiting to happen :)

Anyway, as superuser edit/add the follwing two lines to /etc/sysctl.conf:

vm.vdso_enabled = 0
vm.mmap_min_addr = 0

Save the file and run:

sudo sysctl -p

Now it finally looks like the build is running happily along - what a great ending of a wonderfull week :)

  • Comments(0)//developer.mikek.dk/#post5