[llvm-bugs] [Bug 46298] New: Segmentation fault (core dumped) while building Firefox (gecko-dev)

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 12 02:14:58 PDT 2020


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

            Bug ID: 46298
           Summary: Segmentation fault (core dumped) while building
                    Firefox (gecko-dev)
           Product: clang
           Version: 9.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: pander at users.sourceforge.net
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

Created attachment 23605
  --> https://bugs.llvm.org/attachment.cgi?id=23605&action=edit
/tmp/UnifiedBindings20-008394.sh

While building Firefox from gecko-dev, a segmentation fault (core dumped)
occurs on one my desktop. This is probably hardware specific as the build is
successful on my laptops and servers with identical and other operating system
installed.

Build works for:
- quadcore i7 laptop ASUS Ubuntu 20.04 (Lubuntu) 4 GB RAM
- octocore i7 laptop System76 Ubuntu 20.04 (Pop_OS!) 40 GB RAM
- virtual server Ubuntu 18.04 (vanilla) 4 GB RAM
- quadcore old DELL server Debian 10 (vanilla) 20 GB RAM

but fails on:
- quadcore i7 desktop ASUS Ubuntu 20.04 (Lubuntu) 12 GB RAM

What is being build, is
https://github.com/mozilla/gecko-dev/commit/dc4560dcaafd79375b9411fdbbaaebb0a59a93ac
with instructions here
https://github.com/nuspell/nuspell/wiki/Firefox-integration It concerns a build
without any modifications

Bootstrap, configuration, etc. all goes well but build fails on this:

$ ./mach build
...
38:13.57 dom/media/webrtc
38:21.06 dom/media/webspeech/synth
38:28.88 dom/media/webspeech/synth/speechd
38:34.84 dom/media/webspeech/recognition
38:36.98 Stack dump:
38:36.98 0.     Program arguments: /home/sander/.mozbuild/clang/bin/clang-9
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free
-disable-llvm-verifier -discard-value-names -main-file-name
UnifiedBindings20.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix
-mdisable-fp-elim -relaxed-aliasing -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info
-debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb
-momit-leaf-frame-pointer -coverage-notes-file
/home/sander/workspace/gecko-dev/obj-x86_64-pc-linux-gnu/dom/bindings/UnifiedBindings20.gcno
-resource-dir /home/sander/.mozbuild/clang/lib/clang/9.0.1 -dependency-file
.deps/UnifiedBindings20.o.pp -MT UnifiedBindings20.o -sys-header-deps -MP
-include /home/sander/workspace/gecko-dev/config/gcc_hidden.h -include
/home/sander/workspace/gecko-dev/obj-x86_64-pc-linux-gnu/mozilla-config.h -I
/home/sander/workspace/gecko-dev/obj-x86_64-pc-linux-gnu/dist/stl_wrappers -I
/home/sander/workspace/gecko-dev/obj-x86_64-pc-linux-gnu/dist/system_wrappers
-U _FORTIFY_SOURCE -D _FORTIFY_SOURCE=2 -D NDEBUG=1 -D TRIMMED=1 -D
GOOGLE_PROTOBUF_NO_RTTI -D GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -D OS_POSIX=1
-D OS_LINUX=1 -D HAVE_SIDEBAR -D MOZ_HAS_MOZGLUE -D MOZILLA_INTERNAL_API -D
IMPL_LIBXUL -D STATIC_EXPORTABLE_JS_API -I
/home/sander/workspace/gecko-dev/dom/bindings -I
/home/sander/workspace/gecko-dev/obj-x86_64-pc-linux-gnu/dom/bindings -I
/home/sander/workspace/gecko-dev/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom
-I /home/sander/workspace/gecko-dev/dom/base -I
/home/sander/workspace/gecko-dev/dom/battery -I
/home/sander/workspace/gecko-dev/dom/canvas -I
/home/sander/workspace/gecko-dev/dom/geolocation -I
/home/sander/workspace/gecko-dev/dom/html -I
/home/sander/workspace/gecko-dev/dom/indexedDB -I
/home/sander/workspace/gecko-dev/dom/media/webaudio -I
/home/sander/workspace/gecko-dev/dom/media/webspeech/recognition -I
/home/sander/workspace/gecko-dev/dom/svg -I
/home/sander/workspace/gecko-dev/dom/xml -I
/home/sander/workspace/gecko-dev/dom/xslt/base -I
/home/sander/workspace/gecko-dev/dom/xslt/xpath -I
/home/sander/workspace/gecko-dev/dom/xul -I
/home/sander/workspace/gecko-dev/js/xpconnect/src -I
/home/sander/workspace/gecko-dev/js/xpconnect/wrappers -I
/home/sander/workspace/gecko-dev/layout/generic -I
/home/sander/workspace/gecko-dev/layout/style -I
/home/sander/workspace/gecko-dev/layout/xul/tree -I
/home/sander/workspace/gecko-dev/media/mtransport -I
/home/sander/workspace/gecko-dev/media/webrtc -I
/home/sander/workspace/gecko-dev/media/webrtc/signaling/src/common/time_profiling
-I /home/sander/workspace/gecko-dev/media/webrtc/signaling/src/peerconnection
-I /home/sander/workspace/gecko-dev/media/webrtc/trunk -I
/home/sander/workspace/gecko-dev/netwerk/base -I
/home/sander/workspace/gecko-dev/third_party/msgpack/include -I
/home/sander/workspace/gecko-dev/obj-x86_64-pc-linux-gnu/ipc/ipdl/_ipdlheaders
-I /home/sander/workspace/gecko-dev/ipc/chromium/src -I
/home/sander/workspace/gecko-dev/ipc/glue -I
/home/sander/workspace/gecko-dev/obj-x86_64-pc-linux-gnu/dist/include -I
/home/sander/workspace/gecko-dev/obj-x86_64-pc-linux-gnu/dist/include/nspr -I
/home/sander/workspace/gecko-dev/obj-x86_64-pc-linux-gnu/dist/include/nss -D
MOZILLA_CLIENT -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/x86_64-linux-gnu/c++/9
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/x86_64-linux-gnu/c++/9
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/backward
-internal-isystem /usr/local/include -internal-isystem
/home/sander/.mozbuild/clang/lib/clang/9.0.1/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O2 -Wall -Wbitfield-enum-conversion
-Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith
-Wshadow-field-in-constructor-modified -Wsign-compare -Wtype-limits
-Wunreachable-code -Wunreachable-code-return -Wwrite-strings
-Wno-invalid-offsetof -Wclass-varargs -Wempty-init-stmt
-Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis
-Wc++2a-compat -Wcomma -Wimplicit-fallthrough -Wunused-function
-Wunused-variable -Wstring-conversion -Wtautological-overlap-compare
-Wtautological-unsigned-enum-zero-compare -Wtautological-unsigned-zero-compare
-Wno-error=tautological-type-limit-compare -Wno-inline-new-delete
-Wno-error=deprecated-declarations -Wno-error=array-bounds
-Wno-error=backend-plugin -Wno-error=return-std-move
-Wno-error=atomic-alignment -Wformat -Wformat-security
-Wno-gnu-zero-variadic-macro-arguments -Wno-unknown-warning-option
-Wno-error=shadow -Wno-maybe-uninitialized -std=gnu++17 -fdeprecated-macro
-fdebug-compilation-dir
/home/sander/workspace/gecko-dev/obj-x86_64-pc-linux-gnu/dom/bindings
-ferror-limit 19 -fmessage-length 0 -pthread -stack-protector 2 -fno-rtti
-fexperimental-new-pass-manager -fobjc-runtime=gcc -fno-aligned-allocation
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-faddrsig -o UnifiedBindings20.o -x c++ UnifiedBindings20.cpp
38:36.99 1.     <eof> parser at end of file
38:36.99 2.     Optimizer
38:37.54  #0 0x00007f602617b31f llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/sander/.mozbuild/clang/bin/../lib/libLLVM-9.so+0x64531f)
38:37.54  #1 0x00007f602617b657 SignalHandler(int)
(/home/sander/.mozbuild/clang/bin/../lib/libLLVM-9.so+0x645657)
38:37.54  #2 0x00007f6025b053c0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x153c0)
38:37.54  #3 0x00007f6026de53c1
llvm::DILocation::getMergedLocation(llvm::DILocation const*, llvm::DILocation
const*) (/home/sander/.mozbuild/clang/bin/../lib/libLLVM-9.so+0x12af3c1)
38:37.54  #4 0x00007f6027325862
llvm::Instruction::applyMergedLocation(llvm::DILocation const*,
llvm::DILocation const*)
(/home/sander/.mozbuild/clang/bin/../lib/libLLVM-9.so+0x17ef862)
38:37.54  #5 0x00007f6027036174
llvm::PromoteMemToReg(llvm::ArrayRef<llvm::AllocaInst*>, llvm::DominatorTree&,
llvm::AssumptionCache*)
(/home/sander/.mozbuild/clang/bin/../lib/libLLVM-9.so+0x1500174)
38:37.54  #6 0x00007f602714bec7 llvm::SROA::runImpl(llvm::Function&,
llvm::DominatorTree&, llvm::AssumptionCache&)
(/home/sander/.mozbuild/clang/bin/../lib/libLLVM-9.so+0x1615ec7)
38:37.55  #7 0x00007f60266a69ff llvm::SROA::run(llvm::Function&,
llvm::AnalysisManager<llvm::Function>&)
(/home/sander/.mozbuild/clang/bin/../lib/libLLVM-9.so+0xb709ff)
38:37.55  #8 0x00007f6026d0acbd llvm::detail::PassModel<llvm::Function,
llvm::SROA, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function>
>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&)
(/home/sander/.mozbuild/clang/bin/../lib/libLLVM-9.so+0x11d4cbd)
38:37.56  #9 0x00007f6026224c27 llvm::PassManager<llvm::Function,
llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&,
llvm::AnalysisManager<llvm::Function>&)
(/home/sander/.mozbuild/clang/bin/../lib/libLLVM-9.so+0x6eec27)
38:37.56 #10 0x00007f6026d189e0
llvm::ModuleToFunctionPassAdaptor<llvm::PassManager<llvm::Function,
llvm::AnalysisManager<llvm::Function> > >::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
(/home/sander/.mozbuild/clang/bin/../lib/libLLVM-9.so+0x11e29e0)
38:37.57 #11 0x00007f6026d188bd llvm::detail::PassModel<llvm::Module,
llvm::ModuleToFunctionPassAdaptor<llvm::PassManager<llvm::Function,
llvm::AnalysisManager<llvm::Function> > >, llvm::PreservedAnalyses,
llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
(/home/sander/.mozbuild/clang/bin/../lib/libLLVM-9.so+0x11e28bd)
38:37.57 #12 0x00007f602622386b llvm::PassManager<llvm::Module,
llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
(/home/sander/.mozbuild/clang/bin/../lib/libLLVM-9.so+0x6ed86b)
38:37.57 #13 0x00007f6026d2519d llvm::detail::PassModel<llvm::Module,
llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module> >,
llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>
>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&)
(/home/sander/.mozbuild/clang/bin/../lib/libLLVM-9.so+0x11ef19d)
38:37.60 #14 0x00007f602622386b llvm::PassManager<llvm::Module,
llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
(/home/sander/.mozbuild/clang/bin/../lib/libLLVM-9.so+0x6ed86b)
38:37.61 #15 0x00007f60242cbde9 (anonymous
namespace)::EmitAssemblyHelper::EmitAssemblyWithNewPassManager(clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/home/sander/.mozbuild/clang/bin/../lib/libclang-cpp.so.9+0xca8de9)
38:37.61 #16 0x00007f6025079e09
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions
const&, clang::CodeGenOptions const&, clang::TargetOptions const&,
clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*,
clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/home/sander/.mozbuild/clang/bin/../lib/libclang-cpp.so.9+0x1a56e09)
38:37.62 #17 0x00007f602538b98f
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/home/sander/.mozbuild/clang/bin/../lib/libclang-cpp.so.9+0x1d6898f)
38:37.62 #18 0x00007f6025128458 clang::ParseAST(clang::Sema&, bool, bool)
(/home/sander/.mozbuild/clang/bin/../lib/libclang-cpp.so.9+0x1b05458)
38:37.62 #19 0x00007f6025490ccd clang::FrontendAction::Execute()
(/home/sander/.mozbuild/clang/bin/../lib/libclang-cpp.so.9+0x1e6dccd)
38:37.62 #20 0x00007f602544e261
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/sander/.mozbuild/clang/bin/../lib/libclang-cpp.so.9+0x1e2b261)
38:37.62 #21 0x00007f60254a3e7c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/sander/.mozbuild/clang/bin/../lib/libclang-cpp.so.9+0x1e80e7c)
38:37.62 #22 0x000000000041bdb0 cc1_main(llvm::ArrayRef<char const*>, char
const*, void*) (/home/sander/.mozbuild/clang/bin/clang-9+0x41bdb0)
38:37.62 #23 0x0000000000418660 main
(/home/sander/.mozbuild/clang/bin/clang-9+0x418660)
38:37.62 #24 0x00007f60231630b3 __libc_start_main
/build/glibc-YYA7BZ/glibc-2.31/csu/../csu/libc-start.c:342:3
38:37.62 #25 0x0000000000417749 _start
(/home/sander/.mozbuild/clang/bin/clang-9+0x417749)
38:37.64 dom/media/mp4
38:37.94 clang-9: error: unable to execute command: Segmentation fault (core
dumped)
38:37.94 clang-9: error: clang frontend command failed due to signal (use -v to
see invocation)
38:37.94 clang version 9.0.1
38:37.94 Target: x86_64-unknown-linux-gnu
38:37.94 Thread model: posix
38:37.94 InstalledDir: /home/sander/.mozbuild/clang/bin
38:37.94 clang-9: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
38:39.52 clang-9: note: diagnostic msg:
38:39.53 ********************
38:39.53 PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
38:39.53 Preprocessed source(s) and associated run script(s) are located at:
38:39.53 clang-9: note: diagnostic msg: /tmp/UnifiedBindings20-008394.cpp
38:39.53 clang-9: note: diagnostic msg: /tmp/UnifiedBindings20-008394.sh
38:39.53 clang-9: note: diagnostic msg:
38:39.53 ********************
38:39.53 make[4]: *** [/home/sander/workspace/gecko-dev/config/rules.mk:752:
UnifiedBindings20.o] Error 254
38:39.53 make[4]: *** Waiting for unfinished jobs....
38:39.57 dom/media/bridge
38:42.92 dom/media/gtest
38:47.23 dom/media/gtest/mp4_demuxer
38:50.65 dom/midi
38:54.23 dom/notification
38:58.47 dom/offline
39:02.27 dom/power
39:05.82 dom/push
39:05.98 dom/quota
39:08.34 make[3]: *** [/home/sander/workspace/gecko-dev/config/recurse.mk:74:
dom/bindings/target-objects] Error 2
39:08.34 make[3]: *** Waiting for unfinished jobs....
39:34.34 make[2]: *** [/home/sander/workspace/gecko-dev/config/recurse.mk:34:
compile] Error 2
39:34.34 make[1]: *** [/home/sander/workspace/gecko-dev/config/rules.mk:394:
default] Error 2
39:34.34 make: *** [client.mk:125: build] Error 2
39:34.34 245 compiler warnings present.
39:34.81 Notification center failed: Install notify-send (usually part of the
libnotify package) to get a notification when the build finishes.

exit code is 2

Second attachment is to be downloaded here
http://mjopr.nl/calendar/UnifiedBindings20-008394.cpp.gz (6 MB) (Let me know
when it can be deleted there.)

-- 
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/20200612/388db255/attachment-0001.html>


More information about the llvm-bugs mailing list