This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dynamic-link/20831] _dl_map_segments does not test for __mprotect failures consistently


https://sourceware.org/bugzilla/show_bug.cgi?id=20831

--- Comment #1 from Dmitry V. Levin <ldv at sourceware dot org> ---
Expected behavior:

$ strace -e mprotect -e fault=mprotect:when=1:error=ENOMEM cat </dev/null 
mprotect(0xf774e000, 4096, PROT_NONE)   = -1 ENOMEM (Cannot allocate memory)
(INJECTED)
/bin/cat: error while loading shared libraries: libc.so.6: cannot change memory
protections
+++ exited with 127 +++

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]