[LLVMbugs] [Bug 14277] New: asan crash

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 6 21:45:16 PST 2012


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

             Bug #: 14277
           Summary: asan crash
           Product: compiler-rt
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: compiler-rt
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Nicos-MacBook-Pro:delta thakis$ cat repro.ii
void __asan_report_load1() { }
Nicos-MacBook-Pro:delta thakis$
~/src/chrome/src/third_party/llvm-build/Release+Asserts/bin/clang -x c
-fsanitize=address repro.ii
Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"),
function cast, file
/Volumes/MacintoshHD2/src/chrome-git/src/third_party/llvm/include/llvm/Support/Casting.h,
line 208.
0  clang             0x00000001016d4b45 PrintStackTrace(void*) + 37
1  clang             0x00000001016d4f54 SignalHandler(int) + 564
2  libsystem_c.dylib 0x00007fff9257c8ea _sigtramp + 26
3  libsystem_c.dylib 0x00007fff925ad7d6 szone_free_definite_size + 2013
4  clang             0x000000010004faf6 abort + 22
5  clang             0x000000010004fad1 __assert_rtn + 81
6  clang             0x0000000100c17bbd (anonymous
namespace)::AddressSanitizer::doInitialization(llvm::Module&) + 3197
7  clang             0x0000000101687978
llvm::FPPassManager::runOnModule(llvm::Module&) + 104
8  clang             0x0000000101687bb1
llvm::MPPassManager::runOnModule(llvm::Module&) + 305
9  clang             0x00000001016881a5
llvm::PassManagerImpl::run(llvm::Module&) + 437
10 clang             0x000000010168834d llvm::PassManager::run(llvm::Module&) +
13
11 clang             0x00000001001e018a
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 5178
12 clang             0x00000001002c3ca8
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 600
13 clang             0x0000000100300ed4 clang::ParseAST(clang::Sema&, bool,
bool) + 516
14 clang             0x00000001002c29ea clang::CodeGenAction::ExecuteAction() +
458
15 clang             0x00000001000b2938 clang::FrontendAction::Execute() + 104
16 clang             0x000000010009446d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 941
17 clang             0x000000010005a61a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3450
18 clang             0x0000000100052c48 cc1_main(char const**, char const**,
char const*, void*) + 840
19 clang             0x0000000100056e75 main + 3077
20 clang             0x00000001000528d4 start + 52
21 clang             0x000000000000002b start + 18446744069414246283
Stack dump:
0.    Program arguments:
/Users/thakis/src/chrome/src/third_party/llvm-build/Release+Asserts/bin/clang
-cc1 -triple x86_64-apple-macosx10.8.0 -emit-obj -mrelax-all -disable-free
-main-file-name repro.ii -pic-level 2 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -target-linker-version 97.17 -resource-dir
/Users/thakis/src/chrome/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.2
-fmodule-cache-path
/var/folders/c5/8d7sdn1x2mg92mj0rndghhdr0000gn/T/clang-module-cache
-fdebug-compilation-dir /Users/thakis/src/delta -ferror-limit 19
-fmessage-length 187 -fsanitize=address -stack-protector 1 -mstackrealign
-fblocks -fobjc-runtime=macosx-10.8.0 -fobjc-dispatch-method=mixed
-fobjc-default-synthesize-properties -fdiagnostics-show-option
-fcolor-diagnostics -o
/var/folders/c5/8d7sdn1x2mg92mj0rndghhdr0000gn/T/repro-TkrI8n.o -x c repro.ii 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'Function Pass Manager' on module 'repro.ii'.
clang: error: unable to execute command: Illegal instruction: 4
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.2 (trunk 167488)
Target: x86_64-apple-darwin12.2.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg:
/var/folders/c5/8d7sdn1x2mg92mj0rndghhdr0000gn/T/repro-UOLOsL.c
clang: note: diagnostic msg:
/var/folders/c5/8d7sdn1x2mg92mj0rndghhdr0000gn/T/repro-UOLOsL.sh
clang: note: diagnostic msg: 

********************

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list