Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 880855 - sys-devel/llvm-15.0.3: Segfault in llvm-tblgen building for x86_32 target on amd64
Summary: sys-devel/llvm-15.0.3: Segfault in llvm-tblgen building for x86_32 target on ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: LD-is-lld, systemwide-lld
  Show dependency tree
 
Reported: 2022-11-10 22:40 UTC by Luke-Jr
Modified: 2022-11-30 08:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,823.36 KB, text/plain)
2022-11-10 22:40 UTC, Luke-Jr
Details
emerge --info (emerge--info.ishi,11.91 KB, text/plain)
2022-11-10 22:41 UTC, Luke-Jr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke-Jr 2022-11-10 22:40:56 UTC
Created attachment 830693 [details]
build log

#0  llvm::PrettyStackTraceEntry::PrettyStackTraceEntry (this=0xffffc768)
    at /var/tmp/portage/sys-devel/llvm-15.0.3/work/llvm/lib/Support/PrettyStackTrace.cpp:220
#1  0x568de37c in llvm::PrettyStackTraceProgram::PrettyStackTraceProgram (argv=<optimized out>, argc=12, 
    this=0xffffc768)
    at /var/tmp/portage/sys-devel/llvm-15.0.3/work/llvm/include/llvm/Support/PrettyStackTrace.h:96
#2  llvm::optional_detail::OptionalStorage<llvm::PrettyStackTraceProgram, false>::emplace<int&, char const**&> (
    this=<optimized out>) at /var/tmp/portage/sys-devel/llvm-15.0.3/work/llvm/include/llvm/ADT/Optional.h:124
#3  llvm::Optional<llvm::PrettyStackTraceProgram>::emplace<int&, char const**&> (this=<optimized out>)
    at /var/tmp/portage/sys-devel/llvm-15.0.3/work/llvm/include/llvm/ADT/Optional.h:288
#4  llvm::InitLLVM::InitLLVM (this=0xffffc724, Argc=@0xffffc7b0: 12, Argv=@0xffffc71c: 0xffffc854, 
    InstallPipeSignalExitHandler=true)
    at /var/tmp/portage/sys-devel/llvm-15.0.3/work/llvm/lib/Support/InitLLVM.cpp:36
#5  0x5689a028 in llvm::InitLLVM::InitLLVM (InstallPipeSignalExitHandler=true, Argv=@0xffffc71c: 0xffffc854, 
    Argc=@0xffffc7b0: 12, this=0xffffc724)
    at /var/tmp/portage/sys-devel/llvm-15.0.3/work/llvm/include/llvm/Support/InitLLVM.h:41
#6  main (argc=<optimized out>, argv=<optimized out>)
    at /var/tmp/portage/sys-devel/llvm-15.0.3/work/llvm/utils/TableGen/TableGen.cpp:288
(gdb) bt full
#0  llvm::PrettyStackTraceEntry::PrettyStackTraceEntry (this=0xffffc768)
    at /var/tmp/portage/sys-devel/llvm-15.0.3/work/llvm/lib/Support/PrettyStackTrace.cpp:220
No locals.
#1  0x568de37c in llvm::PrettyStackTraceProgram::PrettyStackTraceProgram (argv=<optimized out>, argc=12, 
    this=0xffffc768)
    at /var/tmp/portage/sys-devel/llvm-15.0.3/work/llvm/include/llvm/Support/PrettyStackTrace.h:96
No locals.
#2  llvm::optional_detail::OptionalStorage<llvm::PrettyStackTraceProgram, false>::emplace<int&, char const**&> (
    this=<optimized out>) at /var/tmp/portage/sys-devel/llvm-15.0.3/work/llvm/include/llvm/ADT/Optional.h:124
No locals.
#3  llvm::Optional<llvm::PrettyStackTraceProgram>::emplace<int&, char const**&> (this=<optimized out>)
    at /var/tmp/portage/sys-devel/llvm-15.0.3/work/llvm/include/llvm/ADT/Optional.h:288
No locals.
#4  llvm::InitLLVM::InitLLVM (this=0xffffc724, Argc=@0xffffc7b0: 12, Argv=@0xffffc71c: 0xffffc854, 
    InstallPipeSignalExitHandler=true)
    at /var/tmp/portage/sys-devel/llvm-15.0.3/work/llvm/lib/Support/InitLLVM.cpp:36
No locals.
#5  0x5689a028 in llvm::InitLLVM::InitLLVM (InstallPipeSignalExitHandler=true, Argv=@0xffffc71c: 0xffffc854, 
    Argc=@0xffffc7b0: 12, this=0xffffc724)
    at /var/tmp/portage/sys-devel/llvm-15.0.3/work/llvm/include/llvm/Support/InitLLVM.h:41
No locals.
#6  main (argc=<optimized out>, argv=<optimized out>)
    at /var/tmp/portage/sys-devel/llvm-15.0.3/work/llvm/utils/TableGen/TableGen.cpp:288
        X = {
          Alloc = {<llvm::AllocatorBase<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096, 4096, 128> >> = {<No data fields>}, <llvm::detail::AllocatorHolder<llvm::MallocAllocator>> = {<llvm::MallocAllocator> = {<llvm::AllocatorBase<llvm::MallocAllocator>> = {<No data fields>}, <No data fields>}, <No data fields>}, CurPtr = 0x0, 
            End = 0x0, 
            Slabs = {<llvm::SmallVectorImpl<void*>> = {<llvm::SmallVectorTemplateBase<void*, true>> = {<llvm::SmallVectorTemplateCommon<void*, void>> = {<llvm::SmallVectorBase<unsigned int>> = {BeginX = 0xffffc738, Size = 0, 
                      Capacity = 4}, <No data fields>}, 
                  static TakesParamByValue = true}, <No data fields>}, <llvm::SmallVectorStorage<void*, 4>> = {
                InlineElts = "\n\000\000\000d\233XV\037\000\000\000L\307\377\377"}, <No data fields>}, 
            CustomSizedSlabs = {<llvm::SmallVectorImpl<std::pair<void*, unsigned int> >> = {<llvm::SmallVectorTemplateBase<std::pair<void*, unsigned int>, true>> = {<llvm::SmallVectorTemplateCommon<std::pair<void*, unsigned int>, void>> = {<llvm::SmallVectorBase<unsigned int>> = {BeginX = 0xffffc754, Size = 0, 
                      Capacity = 0}, <No data fields>}, 
                  static TakesParamByValue = true}, <No data fields>}, <llvm::SmallVectorStorage<std::pair<void*, unsigned int>, 0>> = {<No data fields>}, <No data fields>}, BytesAllocated = 0, RedZoneSize = 1}, 
          Args = {<llvm::SmallVectorImpl<char const*>> = {<llvm::SmallVectorTemplateBase<char const*, true>> = {<llvm::SmallVectorTemplateCommon<char const*, void>> = {<llvm::SmallVectorBase<unsigned int>> = {
                    BeginX = 0xffffc768, Size = 0, Capacity = 0}, <No data fields>}, 
                static TakesParamByValue = true}, <No data fields>}, <llvm::SmallVectorStorage<char const*, 0>> = {<No data fields>}, <No data fields>}, StackPrinter = {Storage = {{empty = 0 '\000', 
                val = {<llvm::PrettyStackTraceEntry> = {_vptr.PrettyStackTraceEntry = 0x5698ee00, 
                    NextEntry = 0xe}, ArgC = 1452859012, ArgV = 0xe}}, hasVal = false}}}
Comment 1 Luke-Jr 2022-11-10 22:41:52 UTC
Created attachment 830695 [details]
emerge --info
Comment 2 Luke-Jr 2022-11-30 08:17:07 UTC
Confirmed this is caused by LDFLAGS="${LDFLAGS} -fuse-ld=lld"