[LLVMbugs] [Bug 16144] New: Misaligned stores in clang/AST/TypeLoc.h
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat May 25 11:48:56 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16144
Bug ID: 16144
Summary: Misaligned stores in clang/AST/TypeLoc.h
Product: clang
Version: trunk
Hardware: Sun
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: stoklund at 2pi.dk
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Clang is crashing on sparc64, and probably on other 64-bit architectures that
aren't x86-64 because of misaligned stores in TypeLoc.h.
The problem can be reproduced on x86-64 by building with -fsanitize=alignment:
********************
FAIL: Clang :: CodeGen/avx-builtins.c (1309 of 6324)
******************** TEST 'Clang :: CodeGen/avx-builtins.c' FAILED
********************
Script:
--
/d/b/Release+Asserts/bin/clang -cc1 -internal-isystem
/d/b/Release+Asserts/bin/../lib/clang/3.4/include
/d/g/clang/test/CodeGen/avx-builtins.c -O3 -triple=x86_64-apple-darwin
-target-feature +avx -emit-llvm -o - | FileCheck
/d/g/clang/test/CodeGen/avx-builtins.c
--
Exit Code: 2
Command Output (stderr):
--
/d/g/llvm/tools/clang/lib/Sema/../../include/clang/AST/TypeLoc.h:1558:27:
runtime error: member access within misaligned address 0x7fca5a89e054 for type
'clang::ElaboratedLocInfo', which requires 8 byte alignment
0x7fca5a89e054: note: pointer points here
fa 99 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00
^
/d/g/llvm/tools/clang/lib/Serialization/../../include/clang/AST/TypeLoc.h:1570:21:
runtime error: member access within misaligned address 0x7fca5a89e054 for type
'clang::ElaboratedLocInfo', which requires 8 byte alignment
0x7fca5a89e054: note: pointer points here
fa 99 00 00 df 99 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00
^
/d/g/llvm/tools/clang/lib/Serialization/../../include/clang/AST/TypeLoc.h:1570:21:
runtime error: store to misaligned address 0x7fca5a89e05c for type 'void *',
which requires 8 byte alignment
0x7fca5a89e05c: note: pointer points here
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00
^
/d/g/llvm/tools/clang/lib/AST/../../include/clang/AST/TypeLoc.h:1555:34:
runtime error: member access within misaligned address 0x7fca5a89e054 for type
'clang::ElaboratedLocInfo', which requires 8 byte alignment
0x7fca5a89e054: note: pointer points here
fa 99 00 00 df 99 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e6 99 00 00 00
00 00 00 00 00 00 00
^
/d/g/llvm/tools/clang/lib/ARCMigrate/../../include/clang/AST/TypeLoc.h:1563:51:
runtime error: member access within misaligned address 0x7fca5a89e054 for type
'clang::ElaboratedLocInfo', which requires 8 byte alignment
0x7fca5a89e054: note: pointer points here
fa 99 00 00 df 99 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e6 99 00 00 00
00 00 00 00 00 00 00
^
/d/g/llvm/tools/clang/lib/ARCMigrate/../../include/clang/AST/TypeLoc.h:1563:51:
runtime error: load of misaligned address 0x7fca5a89e05c for type 'void *',
which requires 8 byte alignment
0x7fca5a89e05c: note: pointer points here
00 00 00 00 00 00 00 00 00 00 00 00 e6 99 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00
^
/d/g/llvm/include/llvm/Support/ValueHandle.h:195:12: runtime error: downcast of
misaligned address 0xfffffffffffffffc for type 'llvm::BasicBlock', which
requires 8 byte alignment
0xfffffffffffffffc: note: pointer points here
0 clang 0x00000001069f8da8 llvm::sys::PrintStackTrace(__sFILE*) +
40
1 clang 0x00000001069f9285 SignalHandler(int) + 341
2 libsystem_c.dylib 0x00007fff8f24f94a _sigtramp + 26
3 libsystem_c.dylib 0x0000000000000001 _sigtramp + 1893402321
Stack dump:
0. Program arguments: /d/b/Release+Asserts/bin/clang -cc1 -internal-isystem
/d/b/Release+Asserts/bin/../lib/clang/3.4/include
/d/g/clang/test/CodeGen/avx-builtins.c -O3 -triple=x86_64-apple-darwin
-target-feature +avx -emit-llvm -o -
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module
'/d/g/clang/test/CodeGen/avx-builtins.c'.
4. Running pass 'Value Propagation' on function '@_mm256_loadu_ps'
FileCheck error: '-' is empty.
--
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/20130525/e087165d/attachment.html>
More information about the llvm-bugs
mailing list