Closed
Description
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
3:29.65 Stack dump:
3:29.67 0. Program arguments: /home/drh/.mozbuild/clang/bin/clang++ --sysroot /home/drh/.mozbuild/sysroot-x86_64-linux-gnu -o Unified_cpp_protocol_websocket0.o -c -I/home/drh/src/mozilla-unified/obj-x86_64-pc-linux-gnu/dist/stl_wrappers -I/home/drh/src/mozilla-unified/obj-x86_64-pc-linux-gnu/dist/system_wrappers -include /home/drh/src/mozilla-unified/config/gcc_hidden.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-clash-protection -DNDEBUG=1 -DTRIMMED=1 -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DSTATIC_EXPORTABLE_JS_API -I/home/drh/src/mozilla-unified/netwerk/protocol/websocket -I/home/drh/src/mozilla-unified/obj-x86_64-pc-linux-gnu/netwerk/protocol/websocket -I/home/drh/src/mozilla-unified/obj-x86_64-pc-linux-gnu/ipc/ipdl/_ipdlheaders -I/home/drh/src/mozilla-unified/ipc/chromium/src -I/home/drh/src/mozilla-unified/dom/base -I/home/drh/src/mozilla-unified/netwerk/base -I/home/drh/src/mozilla-unified/obj-x86_64-pc-linux-gnu/dist/include -I/home/drh/src/mozilla-unified/obj-x86_64-pc-linux-gnu/dist/include/nspr -I/home/drh/src/mozilla-unified/obj-x86_64-pc-linux-gnu/dist/include/nss -DMOZILLA_CLIENT -include /home/drh/src/mozilla-unified/obj-x86_64-pc-linux-gnu/mozilla-config.h -fno-rtti -pthread -fno-sized-deallocation -fno-aligned-new -fno-math-errno -fno-exceptions -fno-exceptions -fPIC -gdwarf-4 -O2 -fno-omit-frame-pointer -funwind-tables -Wall -Wbitfield-enum-conversion -Wempty-body -Wformat-type-confusion -Wignored-qualifiers -Wpointer-arith -Wshadow-field-in-constructor-modified -Wsign-compare -Wtautological-constant-in-range-compare -Wtype-limits -Wno-error=tautological-type-limit-compare -Wunreachable-code -Wunreachable-code-return -Wunused-but-set-parameter -Wno-invalid-offsetof -Wclass-varargs -Wempty-init-stmt -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis -Wno-range-loop-analysis -Wenum-compare-conditional -Wenum-float-conversion -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-deprecated-this-capture -Wcomma -Wimplicit-fallthrough -Wstring-conversion -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wno-error=atomic-alignment -Wno-error=deprecated-builtins -Wformat -Wformat-security -Wno-psabi -Wthread-safety -Wno-error=builtin-macro-redefined -Wno-vla-cxx-extension -Wno-unknown-warning-option -fno-strict-aliasing -ffp-contract=off -MD -MP -MF .deps/Unified_cpp_protocol_websocket0.o.pp -fcolor-diagnostics Unified_cpp_protocol_websocket0.cpp
3:29.67 1. <eof> parser at end of file
3:29.67 2. Code generation
3:29.68 3. Running pass 'Function Pass Manager' on module 'Unified_cpp_protocol_websocket0.cpp'.
3:29.68 4. Running pass 'X86 Assembly Printer' on function '@_ZN7mozilla3net20BaseWebSocketChannel12SetLoadGroupEP12nsILoadGroup'
3:30.09 #0 0x00007f176ae07118 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/drh/.mozbuild/clang/bin/../lib/libLLVM.so.18.1+0x2607118)
3:30.10 #1 0x00007f176ae06c79 llvm::sys::CleanupOnSignal(unsigned long) (/home/drh/.mozbuild/clang/bin/../lib/libLLVM.so.18.1+0x2606c79)
3:30.10 #2 0x00007f176ad917de (anonymous namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) CrashRecoveryContext.cpp:0:0
3:30.11 #3 0x00007f176ad9198e CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
3:30.11 #4 0x00007f1768042520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
3:30.11 #5 0x00007f17680a3ac1 _int_malloc ./malloc/malloc.c:3937:17
3:30.11 #6 0x00007f17680a4b8a _int_realloc ./malloc/malloc.c:4878:20
3:30.11 #7 0x00007f17680a5909 __libc_realloc ./malloc/malloc.c:3485:14
3:30.11 #8 0x00007f1769e5872d llvm::SmallVectorBase<unsigned int>::grow_pod(void*, unsigned long, unsigned long) (/home/drh/.mozbuild/clang/bin/../lib/libLLVM.so.18.1+0x165872d)
3:30.11 #9 0x00007f176b2d488a llvm::DbgValueHistoryMap::trimLocationRanges(llvm::MachineFunction const&, llvm::LexicalScopes&, llvm::InstructionOrdering const&) (/home/drh/.mozbuild/clang/bin/../lib/libLLVM.so.18.1+0x2ad488a)
3:30.12 #10 0x00007f176b2da566 llvm::DebugHandlerBase::beginFunction(llvm::MachineFunction const*) (/home/drh/.mozbuild/clang/bin/../lib/libLLVM.so.18.1+0x2ada566)
3:30.12 #11 0x00007f176b2c41aa llvm::AsmPrinter::emitFunctionHeader() (/home/drh/.mozbuild/clang/bin/../lib/libLLVM.so.18.1+0x2ac41aa)
3:30.12 #12 0x00007f176b2c5fcd llvm::AsmPrinter::emitFunctionBody() (/home/drh/.mozbuild/clang/bin/../lib/libLLVM.so.18.1+0x2ac5fcd)
3:30.12 #13 0x00007f176bfeb97d llvm::X86AsmPrinter::runOnMachineFunction(llvm::MachineFunction&) X86AsmPrinter.cpp:0:0
3:30.12 #14 0x00007f176b03d4b5 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/home/drh/.mozbuild/clang/bin/../lib/libLLVM.so.18.1+0x283d4b5)
3:30.12 #15 0x00007f176a73aa16 llvm::FPPassManager::runOnFunction(llvm::Function&) (/home/drh/.mozbuild/clang/bin/../lib/libLLVM.so.18.1+0x1f3aa16)
3:30.12 #16 0x00007f176a73a62f llvm::FPPassManager::runOnModule(llvm::Module&) (/home/drh/.mozbuild/clang/bin/../lib/libLLVM.so.18.1+0x1f3a62f)
3:30.13 #17 0x00007f176ac32134 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/home/drh/.mozbuild/clang/bin/../lib/libLLVM.so.18.1+0x2432134)
3:30.13 #18 0x00007f176f3a63d5 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) (/home/drh/.mozbuild/clang/bin/../lib/libclang-cpp.so.18.1+0x25a63d5)
3:30.13 #19 0x00007f176f6655d4 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/home/drh/.mozbuild/clang/bin/../lib/libclang-cpp.so.18.1+0x28655d4)
3:30.13 #20 0x00007f176e7ccc00 clang::ParseAST(clang::Sema&, bool, bool) (/home/drh/.mozbuild/clang/bin/../lib/libclang-cpp.so.18.1+0x19ccc00)
3:30.14 #21 0x00007f176e81274c clang::FrontendAction::Execute() (/home/drh/.mozbuild/clang/bin/../lib/libclang-cpp.so.18.1+0x1a1274c)
3:30.14 #22 0x00007f176e81226c clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/drh/.mozbuild/clang/bin/../lib/libclang-cpp.so.18.1+0x1a1226c)
3:30.14 #23 0x00007f176fd5dfd8 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/drh/.mozbuild/clang/bin/../lib/libclang-cpp.so.18.1+0x2f5dfd8)
3:30.14 #24 0x000055e81d88b861 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/drh/.mozbuild/clang/bin/clang+++0x12861)
3:30.14 #25 0x000055e81d883f6e ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
3:30.14 #26 0x00007f176f95ca09 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const::$_0>(long) Job.cpp:0:0
3:30.15 #27 0x00007f176ad91777 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/home/drh/.mozbuild/clang/bin/../lib/libLLVM.so.18.1+0x2591777)
3:30.15 #28 0x00007f176e7fda8e clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (/home/drh/.mozbuild/clang/bin/../lib/libclang-cpp.so.18.1+0x19fda8e)
3:30.15 #29 0x00007f176e720cf6 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/home/drh/.mozbuild/clang/bin/../lib/libclang-cpp.so.18.1+0x1920cf6)
3:30.15 #30 0x00007f176e720470 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/home/drh/.mozbuild/clang/bin/../lib/libclang-cpp.so.18.1+0x1920470)
3:30.15 #31 0x000055e81d887b8a clang_main(int, char**, llvm::ToolContext const&) (/home/drh/.mozbuild/clang/bin/clang+++0xeb8a)
3:30.15 #32 0x000055e81d884bd4 main (/home/drh/.mozbuild/clang/bin/clang+++0xbbd4)
3:30.16 #33 0x00007f1768029d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
3:30.16 #34 0x00007f1768029e40 call_init ./csu/../csu/libc-start.c:128:20
3:30.16 #35 0x00007f1768029e40 __libc_start_main ./csu/../csu/libc-start.c:379:5
3:30.16 #36 0x000055e81d889190 _start (/home/drh/.mozbuild/clang/bin/clang+++0x10190)
3:30.16 clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation)
3:30.16 clang version 18.1.5 (taskcluster-bOc4I0XnSJe6lBPSFf68qw)
3:30.16 Target: x86_64-unknown-linux-gnu
3:30.16 Thread model: posix
3:30.16 InstalledDir: /home/drh/.mozbuild/clang/bin
3:30.99 clang++: note: diagnostic msg:
3:30.99 ********************
It wants me to attach 2 files, but the web report form does not support those file types. .cpp .sh
OK I will put them in a zip archive and attach it.
llvm.zip
dpkg -l "*llvm*" | grep ii
ii libllvm12:amd64 1:12.0.1-19ubuntu3 amd64 Modular compiler and toolchain technologies, runtime library
ii libllvm13:amd64 1:13.0.1-2ubuntu2.2 amd64 Modular compiler and toolchain technologies, runtime library
ii libllvm14:amd64 1:14.0.0-1ubuntu1.1 amd64 Modular compiler and toolchain technologies, runtime library
ii libllvm15:amd64 1:15.0.7-0ubuntu0.22.04.3 amd64 Modular compiler and toolchain technologies, runtime library
ii libllvm15:i386 1:15.0.7-0ubuntu0.22.04.3 i386 Modular compiler and toolchain technologies, runtime library
ii libllvmspirvlib12:amd64 12.0.0-3 amd64 bi-directional translator for LLVM/SPIRV -- shared library
ii llvm-15 1:15.0.7-0ubuntu0.22.04.3 amd64 Modular compiler and toolchain technologies
ii llvm-15-dev 1:15.0.7-0ubuntu0.22.04.3 amd64 Modular compiler and toolchain technologies, libraries and headers
ii llvm-15-doc 1:15.0.7-0ubuntu0.22.04.3 all Modular compiler and toolchain technologies, documentation
ii llvm-15-linker-tools 1:15.0.7-0ubuntu0.22.04.3 amd64 Modular compiler and toolchain technologies - Plugins
ii llvm-15-runtime 1:15.0.7-0ubuntu0.22.04.3 amd64 Modular compiler and toolchain technologies, IR interpreter
ii llvm-15-tools 1:15.0.7-0ubuntu0.22.04.3 amd64 Modular compiler and toolchain technologies, tools
dpkg -l "*clang*" | grep ii
ii clang-format:amd64 1:14.0-55~exp2 amd64 Tool to format C/C++/Obj-C code
ii clang-format-14 1:14.0.0-1ubuntu1.1 amd64 Tool to format C/C++/Obj-C code
ii libclang-13-dev 1:13.0.1-2ubuntu2.2 amd64 Clang library - Development package
ii libclang-common-13-dev 1:13.0.1-2ubuntu2.2 amd64 Clang library - Common development package
ii libclang-cpp12 1:12.0.1-19ubuntu3 amd64 C++ interface to the Clang library
ii libclang-cpp13 1:13.0.1-2ubuntu2.2 amd64 C++ interface to the Clang library
ii libclang-cpp13-dev 1:13.0.1-2ubuntu2.2 amd64 C++ interface to the Clang library
ii libclang-cpp14 1:14.0.0-1ubuntu1.1 amd64 C++ interface to the Clang library
ii libclang-cpp15 1:15.0.7-0ubuntu0.22.04.3 amd64 C++ interface to the Clang library
ii libclang1-13 1:13.0.1-2ubuntu2.2 amd64 C interface to the Clang library
ii libclang1-14 1:14.0.6-1~oibaf~j amd64 C interface to the Clang library
ii libopencl-clang12:amd64 12.0.0-3 amd64 thin wrapper for clang
Metadata
Metadata
Assignees
Labels
Prefer [crash-on-valid] or [crash-on-invalid]Prefer [crash-on-valid] or [crash-on-invalid]Large reproducer that should be reduced into a simpler formLarge reproducer that should be reduced into a simpler form