Re: cannot enable executable stack...

2007-06-25 Thread Ted Unangst
On 6/25/07, Matthew Szudzik <[EMAIL PROTECTED]> wrote: > I have successfully ported the relevant material from the NetBSD patches thanks, good work.

Re: cannot enable executable stack...

2007-06-25 Thread Matthew Szudzik
> I have successfully ported the relevant material from the NetBSD patches > > > http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/compat/linux/common/linux_misc.c.diff?r1=1.140&r2=1.141 > > > http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/compat/linux/common/linux_mmap.h.diff?r1=1.16&r2=1.17 > > h

Re: cannot enable executable stack...

2007-06-24 Thread Matthew Szudzik
> As it turns out, this bug in compat_linux was encountered in NetBSD in > 2005 and then fixed. The NetBSD patches are I have successfully ported the relevant material from the NetBSD patches http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/compat/linux/common/linux_misc.c.diff?r1=1.140&r2=1.141

Re: cannot enable executable stack...

2007-06-21 Thread Matthew Szudzik
> > 20188 MathKernel CALL mprotect(0xcfbc1000,0x1000,0x107) > > 20188 MathKernel RET mprotect -1 errno 22 Invalid argument > > In OpenBSD, the only legal values for the third argument of mprotect are > the bitwise sums of > > #define PROT_NONE 0x00/* no permissions */ >

Re: cannot enable executable stack...

2007-06-20 Thread Matthew Szudzik
> right. i'm not even sure what the growsdown flag does. Indeed, Linux doesn't have the same standard of documentation as OpenBSD. The PROT_GROWSDOWN flag for mprotect is not even mentioned in mprotect's man page on linux http://linux.about.com/library/cmd/blcmdl2_mprotect.htm

Re: cannot enable executable stack...

2007-06-20 Thread Ted Unangst
On 6/20/07, Matthew Szudzik <[EMAIL PROTECTED]> wrote: It appears that a similar bug was encountered by Debian in 2005. See http://lists.debian.org/debian-glibc/2005/08/msg00289.html http://lists.debian.org/debian-glibc/2005/08/msg00311.html http://lists.debian.org/debian-glibc/2005/08/msg00

Re: cannot enable executable stack...

2007-06-20 Thread Matthew Szudzik
It appears that a similar bug was encountered by Debian in 2005. See http://lists.debian.org/debian-glibc/2005/08/msg00289.html http://lists.debian.org/debian-glibc/2005/08/msg00311.html http://lists.debian.org/debian-glibc/2005/08/msg00483.html This would suggest that it might be a problem w

Re: cannot enable executable stack...

2007-06-19 Thread Matthew Szudzik
OK, I have some question about the ktrace. The first notable call is the following: > 20188 MathKernel CALL mprotect(0xcfbc1000,0x1000,0x107) > 20188 MathKernel RET mprotect -1 errno 22 Invalid argument In OpenBSD, the only legal values for the third argument of mprotect are the bitwi

Re: cannot enable executable stack...

2007-06-18 Thread Matthew Szudzik
> I'm trying to get Mathematica to run on OpenBSD via Linux emulation, but > I am getting the following error: > > error while loading shared libraries: libvml.so: cannot enable executable > stack as shared object requires: Premission denied. Note that libvml.so is t

Re: cannot enable executable stack...

2007-06-10 Thread Ted Unangst
On 6/10/07, Matthew Szudzik <[EMAIL PROTECTED]> wrote: > what does ktrace say about the problem? > The ktrace output is as follows: the libvml from your original email is mentioned nowhere. 12262 MathKernel NAMI "/usr/lib/tls/libML32i3.so" 12262 MathKernel RET open -1 errno 2 No such fi

Re: cannot enable executable stack...

2007-06-10 Thread Matthew Szudzik
> what does ktrace say about the problem? > The ktrace output is as follows: 12262 ktrace RET ktrace 0 12262 ktrace CALL execve(0xcfbd0bd3,0xcfbd0a8c,0xcfbd0a94) 12262 ktrace NAMI "/usr/local/emul/fedora/usr/local/Wolfram/Mathematica/6.0/SystemFiles/Kernel/Binaries/Linux/MathKernel

Re: cannot enable executable stack...

2007-06-10 Thread Ted Unangst
On 6/10/07, Matthew Szudzik <[EMAIL PROTECTED]> wrote: I'm trying to get Mathematica to run on OpenBSD via Linux emulation, but I am getting the following error: error while loading shared libraries: libvml.so: cannot enable executable stack as shared object requires: Premission de

cannot enable executable stack...

2007-06-10 Thread Matthew Szudzik
I'm trying to get Mathematica to run on OpenBSD via Linux emulation, but I am getting the following error: error while loading shared libraries: libvml.so: cannot enable executable stack as shared object requires: Premission denied. Does anyone have any suggestions about how I might