Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DUB][scid] test crashes #823

Closed
9il opened this issue Jan 12, 2015 · 6 comments
Closed

[DUB][scid] test crashes #823

9il opened this issue Jan 12, 2015 · 6 comments
Assignees
Labels

Comments

@9il
Copy link

9il commented Jan 12, 2015

See https://travis-ci.org/kyllingstad/scid/jobs/46697692.

@MartinNowak
Copy link
Contributor

You might want to reduce this using dustmite.

@9il
Copy link
Author

9il commented Feb 22, 2015

dustmite don't work for me on OS X =(. Anyway there is reduced test:

cdouble bar;
ref cdouble foo()
{
    return bar;
}

redstar added a commit that referenced this issue Feb 25, 2015
The issue itself was fixed with the ABI rewrite.
The ICE occured with x86_64-linux-gnu.
@redstar
Copy link
Member

redstar commented Feb 25, 2015

Could you please check if the problem is still present? On Linux/x86_64 it was solved with the new ABI code (#768).

@9il
Copy link
Author

9il commented Feb 26, 2015

Compiled with master just now

$ ldc2 -main test.d
0  ldc2                     0x0000000109afdef8 llvm::sys::PrintStackTrace(__sFILE*) + 40
1  ldc2                     0x0000000109afe3d4 SignalHandler(int) + 452
2  libsystem_platform.dylib 0x00007fff90b5cf1a _sigtramp + 26
3  libsystem_platform.dylib 0x0000000000000001 _sigtramp + 1867133185
4  ldc2                     0x0000000109995a7d llvm::Constant::getAggregateElement(unsigned int) const + 301
5  ldc2                     0x0000000109988d1b llvm::ConstantFoldInsertValueInstruction(llvm::Constant*, llvm::Constant*, llvm::ArrayRef<unsigned int>) + 347
6  ldc2                     0x0000000109999f8e llvm::ConstantExpr::getInsertValue(llvm::Constant*, llvm::Constant*, llvm::ArrayRef<unsigned int>) + 62
7  ldc2                     0x00000001099aea78 llvm::IRBuilder<true, llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true> >::CreateInsertValue(llvm::Value*, llvm::Value*, llvm::ArrayRef<unsigned int>, llvm::Twine const&) + 296
8  ldc2                     0x00000001091b5801 DtoAggrPair(llvm::Type*, llvm::Value*, llvm::Value*, char const*) + 97
9  ldc2                     0x00000001091b5ba6 DtoAggrPairSwap(llvm::Value*) + 230
10 ldc2                     0x00000001091bd415 IrFuncTy::putRet(Type*, DValue*) + 69
11 ldc2                     0x000000010919a5dd ToIRVisitor::visit(ReturnStatement*) + 781
12 ldc2                     0x0000000109195f24 ToIRVisitor::visit(CompoundStatement*) + 116
13 ldc2                     0x0000000109195d7a codegenFunction(Statement*, IRState*) + 202
14 ldc2                     0x00000001091761a2 DtoDefineFunction(FuncDeclaration*) + 3762
15 ldc2                     0x000000010916dc62 Declaration_codegen(Dsymbol*) + 50
16 ldc2                     0x000000010917fa2d Module::genLLVMModule(llvm::LLVMContext&) + 781
17 ldc2                     0x0000000109034aad main + 5629
18 libdyld.dylib            0x00007fff8fcde5c9 start + 1
Segmentation fault: 11

@redstar redstar added the A-ice label Feb 28, 2015
@redstar
Copy link
Member

redstar commented Feb 28, 2015

Could you please try with master again? The problem seems to be cause by DtoAggrPairSwap which is gone with a65f001.

@redstar redstar self-assigned this Feb 28, 2015
@9il
Copy link
Author

9il commented Feb 28, 2015

Fixed. Thanks!

@redstar redstar closed this as completed Feb 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants