[llvm-bugs] [Bug 51227] New: Crash in python module when importing .so compiled with --rtlib=compiler-rt

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 27 09:59:23 PDT 2021


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

            Bug ID: 51227
           Summary: Crash in python module when importing .so compiled
                    with --rtlib=compiler-rt
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mikhail.matrosov at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

I am not sure it is clang's fault, since there are a lot of variables in the
equation, but please take a look.

I prepared the repro case and gathered some info in this repo:
https://github.com/mmatrosov/plumbum-crash-repro

In short, if you import an extension library in c++ which uses boost.python,
compiles with clang with "--rtlib=compiler-rt" option and links with gold,
there is a crash in this line
https://github.com/tomerfiliba/plumbum/blob/master/plumbum/commands/processes.py#L286
during program shutdown. It does not happen if the extension is compiled
without "--rtlib=compiler-rt" option, and I've never experienced this crash
even though plumbum is widely used in our scripts.

-- 
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/20210727/a41249c6/attachment.html>


More information about the llvm-bugs mailing list