[llvm-bugs] [Bug 33616] New: MCJIT does not propagate errors from mprotect
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jun 27 14:37:33 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33616
Bug ID: 33616
Summary: MCJIT does not propagate errors from mprotect
Product: new-bugs
Version: 3.8
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: tim.g.armstrong at gmail.com
CC: llvm-bugs at lists.llvm.org
MCJIT::finalizeLoadedModules() ignores the return value (and error argument)
from MemMgr->finalizeMemory(), which appears to be the only way that an error
code from mprotect() is propagated. mprotect() can fail for various reasons and
it would be good if clients of MCJIT could detect the problem and fail
gracefully.
Bug #6701 mentions this problem as well.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170627/da8e25d2/attachment.html>
More information about the llvm-bugs
mailing list