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: unassignedb...@nondot.org
          Reporter: kongy....@gmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to