Activity log for bug #1365701

Date Who What changed Old value New value Message
2014-09-04 20:38:53 Tor Klingberg bug added bug
2014-09-04 20:38:53 Tor Klingberg attachment added C source file tha triggers the crash https://bugs.launchpad.net/bugs/1365701/+attachment/4195754/+files/addup.c
2014-09-04 20:42:39 Tor Klingberg summary clang crashed with SIGSEGV clang crashed with SIGSEGV, reproducible with c file
2014-09-04 20:43:40 Tor Klingberg attachment added Terminal output from clang when it crashes https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-snapshot/+bug/1365701/+attachment/4195764/+files/output.txt
2014-09-04 20:44:12 Tor Klingberg attachment added Preprocessed source https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-snapshot/+bug/1365701/+attachment/4195765/+files/addup-508300.c
2014-09-04 20:45:33 Tor Klingberg attachment added run script created by clang https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-snapshot/+bug/1365701/+attachment/4195766/+files/addup-508300.sh
2014-09-04 20:48:07 Apport retracing service bug added subscriber Crash bug triagers for Ubuntu packages
2014-09-04 20:48:09 Apport retracing service attachment added ThreadStacktrace.txt https://bugs.launchpad.net/bugs/1365701/+attachment/4195767/+files/ThreadStacktrace.txt
2014-09-04 20:48:12 Apport retracing service tags apport-crash i386 need-i386-retrace trusty apport-crash apport-failed-retrace i386 need-i386-retrace trusty
2014-09-04 20:48:13 Apport retracing service tags apport-crash apport-failed-retrace i386 need-i386-retrace trusty apport-crash apport-failed-retrace i386 trusty
2014-09-04 20:49:58 Tor Klingberg information type Private Public
2014-09-04 21:04:07 Tor Klingberg description Every time I try to compile this short c file with clang with optimization level O1 or higher, clang itself crashes with a segmentation fault. This report is run with clang-3.5, but clang-3.4 also crashes. I attach the source file, crash backtrace, preprocessed source, and associated run script that clang created. ProblemType: Crash DistroRelease: Ubuntu 14.04 Package: clang-3.5 1:3.5~svn201651-1ubuntu1 ProcVersionSignature: Ubuntu 3.13.0-35.62-generic 3.13.11.6 Uname: Linux 3.13.0-35-generic i686 ApportVersion: 2.14.1-0ubuntu3.3 Architecture: i386 CurrentDesktop: Unity Date: Thu Sep 4 22:32:11 2014 ExecutablePath: /usr/bin/clang InstallationDate: Installed on 2012-09-16 (717 days ago) InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release i386 (20120817.3) ProcCmdline: /usr/bin/clang -cc1 -triple i386-pc-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -main-file-name addup.c -mrelocation-model static -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu pentium4 -target-linker-version 2.24 -momit-leaf-frame-pointer -resource-dir /usr/bin/../lib/clang/3.5 -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.5/include -internal-externc-isystem /usr/bin/../lib/gcc/i686-linux-gnu/4.8/include -internal-externc-isystem /usr/include/i386-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O1 -fdebug-compilation-dir /home/username/c -ferror-limit 19 -fmessage-length 114 -mstackrealign -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-slp -o /tmp/addup-70c448.o -x c addup.c SegvAnalysis: Segfault happened at: 0xb6baa5ca <_ZN4llvm12SelectionDAG7getNodeEjNS_5SDLocENS_3EVTENS_7SDValueE+282>: mov 0x4(%eax),%edx PC (0xb6baa5ca) ok source "0x4(%eax)" (0x00000203) not located in a known VMA region (needed readable region)! destination "%edx" ok SegvReason: reading NULL VMA Signal: 11 SourcePackage: llvm-toolchain-snapshot StacktraceTop: llvm::SelectionDAG::getNode(unsigned int, llvm::SDLoc, llvm::EVT, llvm::SDValue) () from /usr/lib/i386-linux-gnu/libLLVM-3.5.so.1 ?? () from /usr/lib/i386-linux-gnu/libLLVM-3.5.so.1 ?? () from /usr/lib/i386-linux-gnu/libLLVM-3.5.so.1 llvm::TargetLowering::LowerCallTo(llvm::TargetLowering::CallLoweringInfo&) const () from /usr/lib/i386-linux-gnu/libLLVM-3.5.so.1 llvm::TargetLowering::makeLibCall(llvm::SelectionDAG&, llvm::RTLIB::Libcall, llvm::EVT, llvm::SDValue const*, unsigned int, bool, llvm::SDLoc, bool, bool) const () from /usr/lib/i386-linux-gnu/libLLVM-3.5.so.1 Title: clang crashed with SIGSEGV in llvm::SelectionDAG::getNode() UpgradeStatus: Upgraded to trusty on 2014-03-31 (156 days ago) UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo vboxsf Every time I try to compile this short c file with clang with optimization level O1 or higher, clang itself crashes with a segmentation fault. This report is run with clang-3.5, but clang-3.4 also crashes. I attach the source file, crash backtrace, preprocessed source, and associated run script that clang created. This is for clang on a 32-bit machine. On 64-bit it crashes only when cross-compiling for a 32-bit target with the -m32 flag. ProblemType: Crash DistroRelease: Ubuntu 14.04 Package: clang-3.5 1:3.5~svn201651-1ubuntu1 ProcVersionSignature: Ubuntu 3.13.0-35.62-generic 3.13.11.6 Uname: Linux 3.13.0-35-generic i686 ApportVersion: 2.14.1-0ubuntu3.3 Architecture: i386 CurrentDesktop: Unity Date: Thu Sep 4 22:32:11 2014 ExecutablePath: /usr/bin/clang InstallationDate: Installed on 2012-09-16 (717 days ago) InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release i386 (20120817.3) ProcCmdline: /usr/bin/clang -cc1 -triple i386-pc-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -main-file-name addup.c -mrelocation-model static -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu pentium4 -target-linker-version 2.24 -momit-leaf-frame-pointer -resource-dir /usr/bin/../lib/clang/3.5 -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.5/include -internal-externc-isystem /usr/bin/../lib/gcc/i686-linux-gnu/4.8/include -internal-externc-isystem /usr/include/i386-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O1 -fdebug-compilation-dir /home/username/c -ferror-limit 19 -fmessage-length 114 -mstackrealign -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-slp -o /tmp/addup-70c448.o -x c addup.c SegvAnalysis:  Segfault happened at: 0xb6baa5ca <_ZN4llvm12SelectionDAG7getNodeEjNS_5SDLocENS_3EVTENS_7SDValueE+282>: mov 0x4(%eax),%edx  PC (0xb6baa5ca) ok  source "0x4(%eax)" (0x00000203) not located in a known VMA region (needed readable region)!  destination "%edx" ok SegvReason: reading NULL VMA Signal: 11 SourcePackage: llvm-toolchain-snapshot StacktraceTop:  llvm::SelectionDAG::getNode(unsigned int, llvm::SDLoc, llvm::EVT, llvm::SDValue) () from /usr/lib/i386-linux-gnu/libLLVM-3.5.so.1  ?? () from /usr/lib/i386-linux-gnu/libLLVM-3.5.so.1  ?? () from /usr/lib/i386-linux-gnu/libLLVM-3.5.so.1  llvm::TargetLowering::LowerCallTo(llvm::TargetLowering::CallLoweringInfo&) const () from /usr/lib/i386-linux-gnu/libLLVM-3.5.so.1  llvm::TargetLowering::makeLibCall(llvm::SelectionDAG&, llvm::RTLIB::Libcall, llvm::EVT, llvm::SDValue const*, unsigned int, bool, llvm::SDLoc, bool, bool) const () from /usr/lib/i386-linux-gnu/libLLVM-3.5.so.1 Title: clang crashed with SIGSEGV in llvm::SelectionDAG::getNode() UpgradeStatus: Upgraded to trusty on 2014-03-31 (156 days ago) UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo vboxsf
2014-09-06 22:23:27 Tor Klingberg bug watch added http://llvm.org/bugs/show_bug.cgi?id=20871
2014-09-06 22:23:27 Tor Klingberg bug task added llvm
2014-09-07 01:01:10 Bug Watch Updater llvm: status Unknown Confirmed
2014-09-07 01:01:10 Bug Watch Updater llvm: importance Unknown Medium
2021-06-05 00:07:07 Bug Watch Updater llvm: status Confirmed Unknown