Active Topics

 


Reply
Thread Tools
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#21
I wasn't able to run it twice with the same settings. After a reboot it shifted back to its previous state. So I'm using RC6 kernel yet.
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 
Posts: 1 | Thanked: 0 times | Joined on Dec 2009
#22
Hi,
I'm using Ubuntu 9.10 in my system.
I'm getting an error like this while i run an application in QT
"mmap : permission denied"
How can i resolve this???
Help me...
Thanks in advance...
 
Posts: 11 | Thanked: 4 times | Joined on Dec 2009 @ Lisboa, Portugal
#23
Originally Posted by Bundyo View Post
I wasn't able to run it twice with the same settings. After a reboot it shifted back to its previous state. So I'm using RC6 kernel yet.
Yes, that also happens to me. I've noticed that when I start the scratchbox from esbox it asks me the root password to execute the command "echo 4096 > ...". Didn't look how to change this so I'm just raising the mmap min addr after starting scratchbox.
 
Posts: 20 | Thanked: 11 times | Joined on Oct 2007 @ Germany
#24
Originally Posted by m4ktub;443459
So it looks like you have to do more or less the opposite of what I've been reading. Instead of reducing the mmap limit, since qemu uses it to offset the application addresses, you have to increase it. But I'm not sure if I understood it correctly. I also have no idea of the implications this has on the host system. Hope nothing breaks.

[CODE
$> echo 1048576 > /proc/sys/vm/mmap_min_addr[/CODE]

I've confirmed that all mmap addresses are shifted after this with strace.
I tried the command above before starting scratchbox. But this changes nothing with the mmap problem on the Diablo Armel target. You use openSUSE 11.2 and this works for you? Do you also use the 64 Bit Version of openSUSE 11.2?
 
Posts: 11 | Thanked: 4 times | Joined on Dec 2009 @ Lisboa, Portugal
#25
I had to run the command after starting the scratchbox because during startup the mmap limit would be set to 4096. At least under esbox.
 
Posts: 2 | Thanked: 1 time | Joined on Jan 2010
#26
Do you have SELinux installed and active ? Does /var/log/message have warning in there ?

If it is active then "cat /selinux/enforce" will return "1"

To de-activate as "root" user outside of scratchbox, run:

echo 0 >> /selinux/enforce



This reply assumes you have set VDSO to not randomize (value 2) or disabled completely (0) via sysctl in 32bit Linux. This is also required via kernel command line option "vdso32=" for 64bit Linux.

This reply assumes you have checked the vm.mmap_min_addr=4096 as talked about in previous posts.
 
Posts: 20 | Thanked: 11 times | Joined on Oct 2007 @ Germany
#27
Originally Posted by dlmiles View Post
Do you have SELinux installed and active ? Does /var/log/message have warning in there ?

If it is active then "cat /selinux/enforce" will return "1"

To de-activate as "root" user outside of scratchbox, run:

echo 0 >> /selinux/enforce
SELinux is not installed.


Originally Posted by dlmiles View Post
This reply assumes you have set VDSO to not randomize (value 2) or disabled completely (0) via sysctl in 32bit Linux. This is also required via kernel command line option "vdso32=" for 64bit Linux.

This reply assumes you have checked the vm.mmap_min_addr=4096 as talked about in previous posts.
I have done the following to start scratchbox on openSUSE 11.2 64 Bit:

sysctl abi.vsyscall32=0
echo 4096 > /proc/sys/vm/mmap_min_addr
/opt/scratchbox/sbin/sbox_ctl start

But this don't solve the problems with the diablo arm target.

If I run

apt-get install maemo-sdk-dev

I got a lot of

mmap: Permission denied

errors
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:49.