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

            Bug ID: 39211
           Summary: clang crashed with SIGSEGV in
                    llvm:ManagedStaticBase::destroy()
           Product: clang
           Version: 6.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: doublem...@qq.com
                CC: llvm-bugs@lists.llvm.org

Created attachment 20975
  --> https://bugs.llvm.org/attachment.cgi?id=20975&action=edit
compile file,dmesg.txt,file created by ltrace and strace.

System details:
  ubuntu 18.04 linux 4.15.0-34.37-generic 4.15.18
  clang 6.0

Bug details:
  when compile one c file with "-Xclang -load -Xclang" option to load a custom
llvm-pass.so, clang crash with eip point to an unexpected address.

StackTrace
  ??()
  ??() from /usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1
  llvm::ManagedStaticBase:destroy() const() from
/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1
  llvm::llvm_shutdown() () from /usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.s0.1
  main()

Compile cmd:
  clang -Xclang -load -Xclang llvm-pass.so test-instr.c -o test-instr


Check the attachment with trace log and compiled file.

-- 
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