Skip to content

CodeGen/unsupported.c fails on Linux amd64 #3581

@llvmbot

Description

@llvmbot
Bugzilla Link 3209
Resolution FIXED
Resolved on Dec 13, 2008 12:59
Version unspecified
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

The test case CodeGen/unsupported.c triggers an assertion when run on Linux/x86_64:

******************** TEST '/home/wasti/projects/llvm/tools/clang/test/CodeGen/unsupported.c' FAILED! ********************
Command:
clang -verify -emit-llvm -o Output//home/wasti/projects/llvm/tools/clang/test/CodeGen/unsupported.c.out.tmp /home/wasti/projects/llvm/tools/clang/test/CodeGen/unsupported.c
Incorrect Output:
clang: Value.cpp:63: virtual llvm::Value::~Value(): Assertion `use_empty() && "Uses remain when a value is destroyed!"' failed.
0 clang 0x00000000017b0172
1 clang 0x00000000017b04a8
2 libc.so.6 0x00002b739d5c7130
3 libc.so.6 0x00002b739d5c70c5 gsignal + 53
4 libc.so.6 0x00002b739d5c897e abort + 270
5 libc.so.6 0x00002b739d5c06ff __assert_fail + 239
6 clang 0x000000000175fe1c llvm::Value::~Value() + 324
7 clang 0x00000000016ec84b llvm::User::~User() + 91
8 clang 0x000000000171d97b llvm::Instruction::~Instruction() + 71
9 clang 0x000000000171e023 llvm::UnaryInstruction::~UnaryInstruction() + 33
10 clang 0x000000000171e0c5 llvm::AllocationInst::~AllocationInst() + 33
11 clang 0x000000000172d741 llvm::AllocaInst::~AllocaInst() + 33
12 clang 0x00000000012ee62d llvm::SymbolTableListTraits<llvm::Instruction, llvm::BasicBlock>::deleteNode(llvm::Instruction*) + 43
13 clang 0x00000000012f2453 llvm::iplist<llvm::Instruction, llvm::ilist_traitsllvm::Instruction >::erase(llvm::ilist_iteratorllvm::Instruction) + 41
14 clang 0x0000000001635d8b llvm::iplist<llvm::Instruction, llvm::ilist_traitsllvm::Instruction >::erase(llvm::ilist_iteratorllvm::Instruction, llvm::ilist_iteratorllvm::Instruction) + 35
15 clang 0x00000000016dee05 llvm::iplist<llvm::Instruction, llvm::ilist_traitsllvm::Instruction >::clear() + 61
16 clang 0x00000000016de252 llvm::BasicBlock::~BasicBlock() + 60
17 clang 0x000000000162144b llvm::SymbolTableListTraits<llvm::BasicBlock, llvm::Function>::deleteNode(llvm::BasicBlock*) + 43
18 clang 0x000000000162738b llvm::iplist<llvm::BasicBlock, llvm::ilist_traitsllvm::BasicBlock >::erase(llvm::ilist_iteratorllvm::BasicBlock) + 41
19 clang 0x000000000171993b llvm::iplist<llvm::BasicBlock, llvm::ilist_traitsllvm::BasicBlock >::erase(llvm::ilist_iteratorllvm::BasicBlock, llvm::ilist_iteratorllvm::BasicBlock) + 35
20 clang 0x0000000001719993 llvm::iplist<llvm::BasicBlock, llvm::ilist_traitsllvm::BasicBlock >::clear() + 61
21 clang 0x0000000001718202 llvm::Function::dropAllReferences() + 96
22 clang 0x00000000017322bb llvm::Module::dropAllReferences() + 57
23 clang 0x0000000001732669 llvm::Module::~Module() + 21
24 clang 0x000000000108d285 llvm::OwningPtrllvm::Module::reset(llvm::Module*) + 75
25 clang 0x000000000108d2c3
26 clang 0x0000000000c0c80c
27 clang 0x0000000001192eab clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, bool, bool) + 459
28 clang 0x0000000000c47f93
29 clang 0x0000000000c48d12 main + 1516
30 libc.so.6 0x00002b739d5b3b74 __libc_start_main + 244
31 clang 0x0000000000bfecf9 atan + 257
Output//home/wasti/projects/llvm/tools/clang/test/CodeGen/unsupported.c.out.script: line 1: 15800 Aborted clang -verify -emit-llvm -o Output//home/wasti/projects/llvm/tools/clang/test/CodeGen/unsupported.c.out.tmp /home/wasti/projects/llvm/tools/clang/test/CodeGen/unsupported.c
******************** TEST '/home/wasti/projects/llvm/tools/clang/test/CodeGen/unsupported.c' FAILED! ********************

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:codegenIR generation bugs: mangling, exceptions, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions