[LLVMbugs] [Bug 18817] SIGABRT in PowerPC/PPCISelLowering.cpp taking the address of a TLS variable

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 12 15:40:15 PST 2014


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

Martin Sebor <msebor at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #2 from Martin Sebor <msebor at gmail.com> ---
I'm afraid the top of trunk still aborts, albeit in a different place. Here's
my svn info:

$ svn info
Path: .
Working Copy Root Path: /nobackup/msebor/tmp/llvm
URL: http://llvm.org/svn/llvm-project/llvm/trunk
Repository Root: http://llvm.org/svn/llvm-project
Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
Revision: 201263
Node Kind: directory
Schedule: normal
Last Changed Author: ributzka
Last Changed Rev: 201263
Last Changed Date: 2014-02-12 14:17:13 -0800 (Wed, 12 Feb 2014)

and here's the output for the same test case (just renamed to t.c)

$ cat t.c && llvm-x86_64/Release+Asserts/bin/clang -cc1 -triple
powerpc-unknown-linux -S -o/dev/null t.c
static __thread int x;
void f (void) {
    void *p = &x;
}
clang: /nobackup/msebor/tmp/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1173:
void {anonymous}::SelectionDAGLegalize::LegalizeOp(llvm::SDNode*): Assertion
`(TLI.getTypeAction(*DAG.getContext(), Node->getOperand(i).getValueType()) ==
TargetLowering::TypeLegal || Node->getOperand(i).getOpcode() ==
ISD::TargetConstant) && "Unexpected illegal type!"' failed.
0  clang           0x000000000245a702 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  clang           0x000000000245a324
2  libpthread.so.0 0x00000034a960c790
3  libc.so.6       0x00000034a8b2e26d gsignal + 61
4  libc.so.6       0x00000034a8b2fa6e abort + 254
5  libc.so.6       0x00000034a8b279e1 __assert_fail + 241
6  clang           0x0000000001cc68be
7  clang           0x0000000001cc74d9 llvm::SelectionDAG::Legalize() + 457
8  clang           0x0000000001c901c7
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 759
9  clang           0x0000000001c94bef
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1839
10 clang           0x0000000001c96196
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 806
11 clang           0x0000000001a58d73
12 clang           0x000000000234aa5f
llvm::FPPassManager::runOnFunction(llvm::Function&) + 655
13 clang           0x000000000234af2b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
14 clang           0x000000000234b26d
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 797
15 clang           0x000000000088397e
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
2862
16 clang           0x000000000087ed79
17 clang           0x0000000000a1d9fb clang::ParseAST(clang::Sema&, bool, bool)
+ 507
18 clang           0x000000000087f78b clang::CodeGenAction::ExecuteAction() +
59
19 clang           0x00000000006e2309 clang::FrontendAction::Execute() + 249
20 clang           0x00000000006c0100
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 352
21 clang           0x00000000006a8a44
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1876
22 clang           0x00000000006a23f8 cc1_main(char const**, char const**, char
const*, void*) + 1208
23 clang           0x0000000000680c8a main + 666
24 libc.so.6       0x00000034a8b1c4cb __libc_start_main + 219
25 clang           0x00000000006a119a
Stack dump:
0.    Program arguments: llvm-x86_64/Release+Asserts/bin/clang -cc1 -triple
powerpc-unknown-linux -S -o/dev/null t.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module 't.c'.
4.    Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function
'@f'
Aborted (core dumped)

-- 
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/20140212/673981d7/attachment.html>


More information about the llvm-bugs mailing list