>mmap(0x402001000, 4194304, PROT_READ|PROT_WRITE|PROT_EXEC, >MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = -1 EPERM >(Operation not permitted) >getpid() = 27233 > >This is probably due to grsecurity kernel but I am not sure >why, it has worked >before on a 32 bit system. According to the mmap manual on my system (red-hat 5.2), EPERM on mmap means: PROT_EXEC asked but mapped file is on a file system mounted no-exec.
But the call above does not map a file. The documentation also says that if MAP_ANONYMOUS is given, the fd arg is ignored but that some implementations require fd to be -1 in this case and recommends that portable implementations gives -1. (it looks like valgrind does not follow this recommendation, but it is unclear if that is the cause of your problem). I guess it is easy to patch valgrind to give -1 instead of 0 for map_anonymous. But the grsecurity features are probably the most probably guilty. Philippe ____ This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful. Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy. Any views expressed in this message are those of the sender. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users