clang crashed with SIGSEGV, reproducible with c file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LLVM |
Unknown
|
Medium
|
|||
llvm-toolchain-snapshot (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug 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.
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
ProcVersionSign
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-
SegvAnalysis:
Segfault happened at: 0xb6baa5ca <_ZN4llvm12Sele
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-
StacktraceTop:
llvm::
?? () from /usr/lib/
?? () from /usr/lib/
llvm::
llvm::
Title: clang crashed with SIGSEGV in llvm::Selection
UpgradeStatus: Upgraded to trusty on 2014-03-31 (156 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo vboxsf
information type: | Private → Public |
description: | updated |
Changed in llvm: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in llvm: | |
status: | Confirmed → Unknown |
Stacktrace:
#0 0xb6baa5ca in ?? ()
No symbol table info available.
#1 0x00000000 in ?? ()
No symbol table info available.
StacktraceSource:
#0 0xb6baa5ca in ?? ()
#1 0x00000000 in ?? ()
StacktraceTop:
?? ()
?? ()