[LLVMbugs] [Bug 19768] New: Segfault using -fsanitize=address, undefined

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat May 17 03:58:10 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19768

            Bug ID: 19768
           Summary: Segfault using -fsanitize=address,undefined
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: alexanderm.08 at googlemail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12521
  --> http://llvm.org/bugs/attachment.cgi?id=12521&action=edit
preprocessed source

There is a reproducible segfault upon compiling a project with clang head. I
think it's linked to using -fsanitize=address,undefined together, but did not
do a full analysis...

0  clang           0x0000000001c28545 llvm::sys::PrintStackTrace(_IO_FILE*) +
37
1  clang           0x0000000001c28d33
2  libpthread.so.0 0x00007f72b44911f0
3  clang           0x0000000001bdaeea
llvm::CompositeType::getTypeAtIndex(llvm::Value const*) + 26
4  clang           0x00000000018d6c63
5  clang           0x00000000018dc85e
6  clang           0x00000000018dcf7e
7  clang           0x0000000001bc97fb
llvm::FPPassManager::runOnFunction(llvm::Function&) + 507
8  clang           0x0000000001bc99db
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
9  clang           0x0000000001bc9e2b
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 843
10 clang           0x0000000000836e93
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
6787
11 clang           0x0000000000834877
12 clang           0x00000000009ca5a3 clang::ParseAST(clang::Sema&, bool, bool)
+ 515
13 clang           0x00000000006929d9 clang::FrontendAction::Execute() + 57
14 clang           0x000000000066c98d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 813
15 clang           0x0000000000654310
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3056
16 clang           0x000000000064c5ab cc1_main(char const**, char const**, char
const*, void*) + 539
17 clang           0x0000000000652467 main + 8487
18 libc.so.6       0x00007f72b326ba15 __libc_start_main + 245
19 clang           0x000000000064c2cd
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-main-file-name tinyxml2.cpp -mrelocation-model static -mdisable-fp-elim
-mdisable-tail-calls -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -target-linker-version 12.3
-momit-leaf-frame-pointer -g -coverage-file
/home/jenkins_home/machine/jobs/cppcheck-head-clang++/workspace/externals/tinyxml/tinyxml2.o
-resource-dir /usr/local/bin/../lib/clang/3.5.0 -I lib -I externals/tinyxml
-internal-isystem
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../include/c++/4.7
-internal-isystem
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../include/c++/4.7/x86_64-suse-linux
-internal-isystem
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../include/c++/4.7/backward
-internal-isystem
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../include/x86_64-suse-linux/c++/4.7
-internal-isystem /usr/local/include -internal-isystem
/usr/local/bin/../lib/clang/3.5.0/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O1 -Wall -Weverything -Wno-c++98-compat
-Wno-c++98-compat-pedantic -Wno-exit-time-destructors -Wno-global-constructors
-Wno-old-style-cast -Wno-sign-conversion -Wno-padded -Wno-weak-vtables
-std=c++0x -fdeprecated-macro -fdebug-compilation-dir
/home/jenkins_home/machine/jobs/cppcheck-head-clang++/workspace -ferror-limit
19 -fmessage-length 0
-fsanitize=address,init-order,use-after-return,alignment,array-bounds,bool,enum,float-cast-overflow,float-divide-by-zero,function,integer-divide-by-zero,null,object-size,return,shift,signed-integer-overflow,unreachable,vla-bound,vptr
-mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -o externals/tinyxml/tinyxml2.o -x c++
externals/tinyxml/tinyxml2.cpp 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'Function Pass Manager' on module
'externals/tinyxml/tinyxml2.cpp'.
4.    Running pass 'Combine redundant instructions' on function
'@_ZN8tinyxml210XMLPrinter11PrintStringEPKcb'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.5.0 (trunk 209066)
Target: x86_64-unknown-linux-gnu
Thread model: posix

-- 
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/20140517/0510d31b/attachment.html>


More information about the llvm-bugs mailing list