[Bug 264738] buildworld fails at ryu/d2fixed.o

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 17 Jun 2022 17:24:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264738

            Bug ID: 264738
           Summary: buildworld fails at ryu/d2fixed.o
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: metaqwe@fea.st

--- ryu/d2fixed.o ---
Assertion failed: (SizeInBits >= OffsetInBits - FragmentOffset && "size
underflow"), function addExpression, file
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp,
line 509.
PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the
crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/c++ -target x86_64-unknown-freebsd14.0
--sysroot=/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe -fno-common -nostdlib
-ffunction-sections -fdata-sections -g -gz=zlib -Wno-format-zero-length
-nobuiltininc -fstack-protector-strong -Wno-empty-body -Wno-string-plus-int
-Wno-unused-const-variable -Wno-error=unused-but-set-variable
-Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality
-Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef
-Wno-address-of-packed-member -Wno-switch -Wno-switch-enum
-Wno-knr-promoted-parameter -Wno-parentheses -Qunused-arguments -g -gz=zlib
-std=c++20 -Wno-c++11-extensions -isystem /usr/src/lib/libc++ -isystem
/usr/src/contrib/llvm-project/libcxx/include -isystem
/usr/src/contrib/llvm-project/libcxx/src -isystem /usr/src/contrib/libcxxrt
-nostdinc++ -D_LIBCPP_BUILDING_LIBRARY -DLIBCXXRT -idirafter
/usr/lib/clang/13.0.0/include -c -o ryu/d2fixed.o
/usr/src/contrib/llvm-project/libcxx/src/ryu/d2fixed.cpp
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'/usr/src/contrib/llvm-project/libcxx/src/ryu/d2fixed.cpp'.
4.      Running pass 'X86 Assembly Printer' on function
'@_ZNSt3__120__d2fixed_buffered_nEPcS0_dj'
 #0 0x0000000004f52150 PrintStackTrace
/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:565:13
 #1 0x0000000004f50465 RunSignalHandlers
/usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:98:18
 #2 0x0000000004ee771e HandleCrash
/usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:76:5
 #3 0x0000000004ee78e3 CrashRecoverySignalHandler
/usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:0:51
 #4 0x000000082a5e6580 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:0:3
 #5 0x000000082a5e5b3f thr_sighandler
/usr/src/lib/libthr/thread/thr_sig.c:247:1
 #6 0x00007ffffffff2d3 ([vdso]+0x2d3)
 #7 0x000000082d71daca __sys_thr_kill
/usr/obj/usr/src/amd64.amd64/lib/libc/thr_kill.S:4:0
 #8 0x000000082d696024 _raise /usr/src/lib/libc/gen/raise.c:0:10
 #9 0x000000082d747839 abort /usr/src/lib/libc/stdlib/abort.c:73:17
#10 0x000000082d678dc1 (/lib/libc.so.7+0x92dc1)
#11 0x00000000050169d5 (/usr/bin/c+++0x50169d5)
#12 0x0000000005003248 constructVariableDIEImpl
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:0:0
#13 0x00000000050017df constructVariableDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:692:12
#14 0x00000000050017df constructVariableDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:888:14
#15 0x00000000050017df createScopeChildrenDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:1011:24
#16 0x000000000500043d constructScopeDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:0:5
#17 0x0000000005001bbf createScopeChildrenDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:1027:25
#18 0x000000000500043d constructScopeDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:0:5
#19 0x0000000005001bbf createScopeChildrenDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:1027:25
#20 0x000000000500043d constructScopeDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:0:5
#21 0x0000000005001bbf createScopeChildrenDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:1027:25
#22 0x000000000500043d constructScopeDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:0:5
#23 0x0000000005001bbf createScopeChildrenDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:1027:25
#24 0x0000000005000476 constructScopeDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:542:10
#25 0x0000000005001bbf createScopeChildrenDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:1027:25
#26 0x0000000005000476 constructScopeDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:542:10
#27 0x0000000005001bbf createScopeChildrenDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:1027:25
#28 0x0000000005000476 constructScopeDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:542:10
#29 0x0000000005001bbf createScopeChildrenDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:1027:25
#30 0x0000000005000476 constructScopeDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:542:10
#31 0x0000000005001bbf createScopeChildrenDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:1027:25
#32 0x0000000005000476 constructScopeDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:542:10
#33 0x0000000005001bbf createScopeChildrenDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:1027:25
#34 0x0000000005003e32 createAndAddScopeChildren
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:0:24
#35 0x0000000005003e32 constructSubprogramScopeDIE
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:1043:30
#36 0x0000000004fd620e endFunctionImpl
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:2238:25
#37 0x0000000004ff10d1 incrementEpoch
/usr/src/contrib/llvm-project/llvm/include/llvm/ADT/EpochTracker.h:43:27
#38 0x0000000004ff10d1 clear
/usr/src/contrib/llvm-project/llvm/include/llvm/ADT/DenseMap.h:112:5
#39 0x0000000004ff10d1 clear
/usr/src/contrib/llvm-project/llvm/include/llvm/ADT/MapVector.h:89:9
#40 0x0000000004ff10d1 clear
/usr/src/contrib/llvm-project/llvm/include/llvm/CodeGen/DbgEntityHistoryCalculator.h:121:29
#41 0x0000000004ff10d1 endFunction
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp:406:13
#42 0x0000000004fbbeaa ~TimeRegion
/usr/src/contrib/llvm-project/llvm/include/llvm/Support/Timer.h:158:9
#43 0x0000000004fbbeaa emitFunctionBody
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp:1513:3
#44 0x000000000596d17d runOnMachineFunction
/usr/src/contrib/llvm-project/llvm/lib/Target/X86/X86AsmPrinter.cpp:85:3
#45 0x000000000473f144 runOnFunction
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:74:7
#46 0x0000000004bab8ff runOnFunction
/usr/src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1439:27
#47 0x0000000004bb20b1 runOnModule
/usr/src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1485:13
#48 0x0000000004babf1b runOnModule
/usr/src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
#49 0x0000000004babf1b run
/usr/src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:542:44
#50 0x0000000002c65dc8 EmitAssemblyWithNewPassManager
/usr/src/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1501:3
#51 0x0000000002c60bf2 EmitBackendOutput
/usr/src/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:0:15
#52 0x0000000002f44ec6 reset
/usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/__memory/unique_ptr.h:315:28
#53 0x0000000002f44ec6 ~unique_ptr
/usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/__memory/unique_ptr.h:272:19
#54 0x0000000002f44ec6 HandleTranslationUnit
/usr/src/contrib/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:334:7
#55 0x000000000341d884 begin
/usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/vector:1539:30
#56 0x000000000341d884
finalize<std::__1::vector<std::__1::unique_ptr<clang::TemplateInstantiationCallback,
std::__1::default_delete<clang::TemplateInstantiationCallback> >,
std::__1::allocator<std::__1::unique_ptr<clang::TemplateInstantiationCallback,
std::__1::default_delete<clang::TemplateInstantiationCallback> > > > >
/usr/src/contrib/llvm-project/clang/include/clang/Sema/TemplateInstCallback.h:54:16
#57 0x000000000341d884 ParseAST
/usr/src/contrib/llvm-project/clang/lib/Parse/ParseAST.cpp:178:3
#58 0x0000000002e8546f Execute
/usr/src/contrib/llvm-project/clang/lib/Frontend/FrontendAction.cpp:955:10
#59 0x0000000002e0ebff getPtr
/usr/src/contrib/llvm-project/llvm/include/llvm/Support/Error.h:274:42
#60 0x0000000002e0ebff operator bool
/usr/src/contrib/llvm-project/llvm/include/llvm/Support/Error.h:236:16
#61 0x0000000002e0ebff ExecuteAction
/usr/src/contrib/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:974:23
#62 0x0000000002f3e93b ExecuteCompilerInvocation
/usr/src/contrib/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:278:25
#63 0x00000000024631a1 cc1_main
/usr/src/contrib/llvm-project/clang/tools/driver/cc1_main.cpp:246:15
#64 0x00000000024707b2 ExecuteCC1Tool
/usr/src/contrib/llvm-project/clang/tools/driver/driver.cpp:338:12
#65 0x0000000002cd8af7 operator()
/usr/src/contrib/llvm-project/clang/lib/Driver/Job.cpp:405:30
#66 0x0000000002cd8af7 callback_fn<(lambda at
/usr/src/contrib/llvm-project/clang/lib/Driver/Job.cpp:405:22)>
/usr/src/contrib/llvm-project/llvm/include/llvm/ADT/STLExtras.h:177:12
#67 0x0000000004ee7654 operator()
/usr/src/contrib/llvm-project/llvm/include/llvm/ADT/STLExtras.h:0:12
#68 0x0000000004ee7654 RunSafely
/usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:425:3
#69 0x0000000002cd86fc Execute
/usr/src/contrib/llvm-project/clang/lib/Driver/Job.cpp:405:7
#70 0x0000000002ca92d1 ExecuteCommand
/usr/src/contrib/llvm-project/clang/lib/Driver/Compilation.cpp:196:15
#71 0x0000000002ca978f ExecuteJobs
/usr/src/contrib/llvm-project/clang/lib/Driver/Compilation.cpp:249:13
#72 0x0000000002cbd8dc empty
/usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallVector.h:73:47
#73 0x0000000002cbd8dc ExecuteCompilation
/usr/src/contrib/llvm-project/clang/lib/Driver/Driver.cpp:1556:23
c++: error: clang frontend command failed with exit code 134 (use -v to see
invocation)
FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git
llvmorg-13.0.0-0-gd7b669b3a303)
Target: x86_64-unknown-freebsd14.0
Thread model: posix
InstalledDir: /usr/bin
c++: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/d2fixed-03d735.cpp
c++: note: diagnostic msg: /tmp/d2fixed-03d735.sh
c++: note: diagnostic msg:

********************
--- secure/lib/libcrypto__L ---
ng-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-variable
-Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality
-Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef
-Wno-address-of-packed-member -Wno-switch -Wno-switch-enum
-Wno-knr-promoted-parameter -Wno-parentheses  -Qunused-arguments    -c
/usr/src/crypto/openssl/crypto/asn1/asn1_par.c -o asn1_par.o
--- lib/libc++__L ---
*** [ryu/d2fixed.o] Error code 134

-- 
You are receiving this mail because:
You are the assignee for the bug.