[llvm-bugs] [Bug 35880] New: dlsym causes illegal hardware instruction

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jan 9 13:49:11 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=35880

            Bug ID: 35880
           Summary: dlsym causes illegal hardware instruction
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: kongy.dev at gmail.com
                CC: llvm-bugs at lists.llvm.org

#define _GNU_SOURCE
#include <dlfcn.h>

int main() {
  void** addrPtr;
  *addrPtr = dlsym(RTLD_NEXT, "signal");
}

This code should segfault, but with
$ clang illegal.c -O1 -ldl
$ ./a.out
[1]    229484 illegal hardware instruction  ./a.out

-- 
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/20180109/aa954973/attachment-0001.html>


More information about the llvm-bugs mailing list