-
Notifications
You must be signed in to change notification settings - Fork 15
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
Random Segmentation faults #60
Comments
Hi, could you send files mentioned in a crash report: Best regards, Alexey BataevSoftware Engineer 01.02.2015 12:58, Marvin пишет:
|
sorry, forgot those. Here we go: https://www.dropbox.com/s/mtjqs8nsu0n5d91/clang_error.zip?dl=0 |
Ok, thanks. I'll investigate it ASAP Best regards, Alexey BataevSoftware Engineer 02.02.2015 20:21, Marvin пишет:
|
Hi, I tried to run your tests several times and every time it worked Best regards, Alexey BataevSoftware Engineer 02.02.2015 20:21, Marvin пишет:
|
How can I increase the stack size for clang on OSX? 🈂️ |
Hi, try "ulimit -s hard" Best regards, Alexey BataevSoftware Engineer 01.03.2015 11:59, Marvin пишет:
|
No, that didn't help :( Can you post your configure options for building llvm and clang? |
I see similar problem with the following code extracted from here: emscripten-core/emscripten#3215
And here's the result of compiling it with clang version 3.5.0 (https://github.com/clang-omp/clang 05ab95f) (https://github.com/clang-omp/llvm 1c313aa94183e765c450be6bda3913e22abc3073) with
The two files can be found here: In my case, clang was compiled using: |
I'm trying to compile NetworKit [1] with clang and OpenMP. So far we only use GCC.
Sadly I get some 'random' Segmentation faults when compiling with clang-omp. With 'random' I mean that clang-omp will compile 1-10 cpp files and then fail with a Segmentation fault. After 1-3 retrys it will compile the file, but fail later on another one. The errors look all the same (see [2]).
On the branch 'clang' there is an option '--openmp=no' for compilation, that will exclude all OpenMP functions. With that option everything compiles fine using my normal clang (obviously some of the implemented algorithms be very slow), but still fails with clang-omp. So it definitly looks like a problem of this branch.
If you need more data or help to compile NetworKit on your own, feel free to contact me (I recommend to stay on the branch 'clang'). I'm glad to help.
[1] https://algohub.iti.kit.edu/parco/NetworKit/NetworKit
[2]
0 clang3++ 0x0000000108af9438 llvm::sys::PrintStackTrace(sFILE) + 40
1 clang3++ 0x0000000108af9924 SignalHandler(int) + 564
2 libsystem_platform.dylib 0x00007fff8f5abf1a sigtramp + 26
3 libsystem_platform.dylib 0x0000000000000002 sigtramp + 1889878274
4 clang3++ 0x0000000107143f3d clang::TryImplicitConversion(clang::Sema&, clang::Expr, clang::QualType, bool, bool, bool, bool, bool, bool) + 109
5 clang3++ 0x00000001071516a8 clang::TryCopyInitialization(clang::Sema&, clang::Expr, clang::QualType, bool, bool, bool, bool) + 248
6 clang3++ 0x0000000107150d74 clang::Sema::AddOverloadCandidate(clang::FunctionDecl, clang::DeclAccessPair, llvm::ArrayRefclang::Expr*, clang::OverloadCandidateSet&, bool, bool, bool) + 1908
7 clang3++ 0x0000000107152693 clang::Sema::AddTemplateOverloadCandidate(clang::FunctionTemplateDecl_, clang::DeclAccessPair, clang::TemplateArgumentListInfo_, llvm::ArrayRefclang::Expr*, clang::OverloadCandidateSet&, bool) + 563
8 clang3++ 0x00000001070cc343 ResolveConstructorOverload(clang::Sema&, clang::SourceLocation, llvm::MutableArrayRefclang::Expr*, clang::OverloadCandidateSet&, llvm::ArrayRefclang::NamedDecl*, clang::OverloadCandidate_&, bool, bool, bool, bool) + 387
9 clang3++ 0x00000001070b0b74 TryConstructorInitialization(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, llvm::MutableArrayRefclang::Expr_, clang::QualType, clang::InitializationSequence&, bool) + 916
10 clang3++ 0x00000001070ae195 clang::InitializationSequence::InitializeFrom(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, llvm::MutableArrayRefclang::Expr*, bool) + 2357
11 clang3++ 0x00000001070af496 clang::InitializationSequence::InitializationSequence(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, llvm::MutableArrayRefclang::Expr*, bool) + 438
12 clang3++ 0x0000000107079961 evaluateTypeTrait(clang::Sema&, clang::TypeTrait, clang::SourceLocation, llvm::ArrayRefclang::TypeSourceInfo*, clang::SourceLocation) + 2273
13 clang3++ 0x0000000107078fa2 clang::Sema::BuildTypeTrait(clang::TypeTrait, clang::SourceLocation, llvm::ArrayRefclang::TypeSourceInfo*, clang::SourceLocation) + 466
14 clang3++ 0x000000010724bac2 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformTypeTraitExpr(clang::TypeTraitExpr_) + 2946
15 clang3++ 0x0000000107238bd6 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformExpr(clang::Expr_) + 3622
16 clang3++ 0x000000010723db16 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformTemplateArgument(clang::TemplateArgumentLoc const&, clang::TemplateArgumentLoc&) + 502
17 clang3++ 0x000000010723f1f6 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformTemplateSpecializationType(clang::TypeLocBuilder&, clang::TemplateSpecializationTypeLoc, clang::TemplateName) + 1814
18 clang3++ 0x000000010722f63c clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformType(clang::TypeLocBuilder&, clang::TypeLoc) + 8060
19 clang3++ 0x000000010722d34e clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformType(clang::TypeSourceInfo_) + 222
20 clang3++ 0x000000010722d1fb clang::Sema::SubstType(clang::TypeSourceInfo_, clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation, clang::DeclarationName) + 107
21 clang3++ 0x00000001072341fe clang::Sema::SubstBaseSpecifiers(clang::CXXRecordDecl_, clang::CXXRecordDecl_, clang::MultiLevelTemplateArgumentList const&) + 718
22 clang3++ 0x00000001072348b2 clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl_, clang::CXXRecordDecl_, clang::MultiLevelTemplateArgumentList const&, clang::TemplateSpecializationKind, bool) + 818
23 clang3++ 0x0000000107236569 clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation, clang::ClassTemplateSpecializationDecl_, clang::TemplateSpecializationKind, bool) + 2137
24 clang3++ 0x000000010729aa91 clang::Sema::RequireCompleteTypeImpl(clang::SourceLocation, clang::QualType, clang::Sema::TypeDiagnoser&) + 433
25 clang3++ 0x000000010729a805 clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType, clang::Sema::TypeDiagnoser&) + 21
26 clang3++ 0x0000000106e7e0e3 clang::Sema::RequireCompleteDeclContext(clang::CXXScopeSpec&, clang::DeclContext_) + 291
27 clang3++ 0x0000000106ff9006 clang::Sema::BuildQualifiedDeclarationNameExpr(clang::CXXScopeSpec&, clang::DeclarationNameInfo const&, bool, clang::TypeSourceInfo**) + 102
28 clang3++ 0x000000010724c332 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformDependentScopeDeclRefExpr(clang::DependentScopeDeclRefExpr*, bool, clang::TypeSourceInfo**) + 610
29 clang3++ 0x0000000107238414 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformExpr(clang::Expr_) + 1636
30 clang3++ 0x000000010723db16 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformTemplateArgument(clang::TemplateArgumentLoc const&, clang::TemplateArgumentLoc&) + 502
31 clang3++ 0x000000010723f1f6 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformTemplateSpecializationType(clang::TypeLocBuilder&, clang::TemplateSpecializationTypeLoc, clang::TemplateName) + 1814
32 clang3++ 0x000000010722f63c clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformType(clang::TypeLocBuilder&, clang::TypeLoc) + 8060
33 clang3++ 0x000000010722d34e clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformType(clang::TypeSourceInfo_) + 222
34 clang3++ 0x000000010722d1fb clang::Sema::SubstType(clang::TypeSourceInfo_, clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation, clang::DeclarationName) + 107
35 clang3++ 0x00000001072341fe clang::Sema::SubstBaseSpecifiers(clang::CXXRecordDecl_, clang::CXXRecordDecl_, clang::MultiLevelTemplateArgumentList const&) + 718
36 clang3++ 0x00000001072348b2 clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl_, clang::CXXRecordDecl_, clang::MultiLevelTemplateArgumentList const&, clang::TemplateSpecializationKind, bool) + 818
37 clang3++ 0x0000000107236569 clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation, clang::ClassTemplateSpecializationDecl_, clang::TemplateSpecializationKind, bool) + 2137
38 clang3++ 0x000000010729aa91 clang::Sema::RequireCompleteTypeImpl(clang::SourceLocation, clang::QualType, clang::Sema::TypeDiagnoser&) + 433
39 clang3++ 0x000000010729a805 clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType, clang::Sema::TypeDiagnoser&) + 21
40 clang3++ 0x0000000106e7e0e3 clang::Sema::RequireCompleteDeclContext(clang::CXXScopeSpec&, clang::DeclContext_) + 291
41 clang3++ 0x0000000106ff9006 clang::Sema::BuildQualifiedDeclarationNameExpr(clang::CXXScopeSpec&, clang::DeclarationNameInfo const&, bool, clang::TypeSourceInfo__) + 102
42 clang3++ 0x000000010724c332 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformDependentScopeDeclRefExpr(clang::DependentScopeDeclRefExpr_, bool, clang::TypeSourceInfo**) + 610
43 clang3++ 0x0000000107238414 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformExpr(clang::Expr_) + 1636
44 clang3++ 0x000000010724a45a clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformParenExpr(clang::ParenExpr_) + 42
45 clang3++ 0x0000000107238959 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformExpr(clang::Expr_) + 2985
46 clang3++ 0x0000000107237d77 clang::Sema::SubstExpr(clang::Expr_, clang::MultiLevelTemplateArgumentList const&) + 71
47 clang3++ 0x000000010726a790 InstantiateExceptionSpec(clang::Sema&, clang::FunctionDecl_, clang::FunctionProtoType const_, clang::MultiLevelTemplateArgumentList const&) + 1456
48 clang3++ 0x0000000107269dff clang::Sema::InstantiateExceptionSpec(clang::SourceLocation, clang::FunctionDecl_) + 543
49 clang3++ 0x0000000106fe615d clang::Sema::ResolveExceptionSpec(clang::SourceLocation, clang::FunctionProtoType const_) + 157
50 clang3++ 0x0000000107005d03 clang::Sema::MarkFunctionReferenced(clang::SourceLocation, clang::FunctionDecl_) + 883
51 clang3++ 0x00000001070bbbe8 PerformConstructorInitialization(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, llvm::MutableArrayRefclang::Expr_, clang::InitializationSequence::Step const&, bool&, bool, bool, clang::SourceLocation, clang::SourceLocation) + 584
52 clang3++ 0x00000001070b2a1a clang::InitializationSequence::Perform(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, llvm::MutableArrayRefclang::Expr*, clang::QualType_) + 3210
53 clang3++ 0x000000010706dfbe clang::Sema::BuildCXXTypeConstructExpr(clang::TypeSourceInfo_, clang::SourceLocation, llvm::MutableArrayRefclang::Expr*, clang::SourceLocation) + 1294
54 clang3++ 0x000000010724429d clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformCXXUnresolvedConstructExpr(clang::CXXUnresolvedConstructExpr_) + 285
55 clang3++ 0x0000000107238168 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformExpr(clang::Expr_) + 952
56 clang3++ 0x0000000107252a20 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformReturnStmt(clang::ReturnStmt_) + 32
57 clang3++ 0x000000010724c7c5 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt_, bool) + 213
58 clang3++ 0x00000001072371b7 clang::Sema::SubstStmt(clang::Stmt_, clang::MultiLevelTemplateArgumentList const&) + 71
59 clang3++ 0x00000001072682b1 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl_, bool, bool) + 2497
60 clang3++ 0x000000010726b4bb clang::Sema::PerformPendingInstantiations(bool) + 443
61 clang3++ 0x0000000106e686b1 clang::Sema::ActOnEndOfTranslationUnit() + 641
62 clang3++ 0x0000000106e13690 clang::Parser::ParseTopLevelDecl(clang::OpaquePtrclang::DeclGroupRef&) + 176
63 clang3++ 0x0000000106d7fff6 clang::ParseAST(clang::Sema&, bool, bool) + 390
64 clang3++ 0x0000000106cf1d0b clang::CodeGenAction::ExecuteAction() + 123
65 clang3++ 0x00000001069c2143 clang::FrontendAction::Execute() + 67
66 clang3++ 0x0000000106994da3 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 947
67 clang3++ 0x000000010694f1e6 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4230
68 clang3++ 0x000000010694641b cc1_main(char const**, char const*, char const, void*) + 1051
69 clang3++ 0x000000010694adc2 main + 1202
70 libdyld.dylib 0x00007fff8c1925c9 start + 1
Stack dump:
0. Program arguments: /usr/local/bin/clang3++ -cc1 -triple x86_64-apple-macosx10.10.0 -emit-obj -disable-free -main-file-name LaplacianMatrixGTest.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 241.9 -dwarf-column-info -coverage-file /Users/marvin/Workspace/NetworKit/.buildOpt/algebraic/test/LaplacianMatrixGTest.o -resource-dir /usr/local/bin/../lib/clang/3.5.0 -D NDEBUG -D LOG_LEVEL=LOG_LEVEL_INFO -I //Users/marvin/lib/clang3/libomp_oss/build -I /Users/marvin/lib/gtest-1.7.0/include -stdlib=libc++ -O3 -Wall -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /Users/marvin/Workspace/NetworKit -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.10.0 -fencode-extended-block-signature -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o .buildOpt/algebraic/test/LaplacianMatrixGTest.o -x c++ networkit/cpp/algebraic/test/LaplacianMatrixGTest.cpp
clang3++: error: unable to execute command: Segmentation fault: 11
clang3++: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.5.0 (https://github.com/clang-omp/clang b2fc5b3) (https://github.com/clang-omp/llvm e45b045553e027cbe400cbb8ac8c264abbbfaf83)
Target: x86_64-apple-darwin14.1.0
Thread model: posix
clang3++: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
clang3++: note: diagnostic msg:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang3++: note: diagnostic msg: /var/tmp/LaplacianMatrixGTest-1cef59.cpp
clang3++: note: diagnostic msg: /var/tmp/LaplacianMatrixGTest-1cef59.sh
clang3++: note: diagnostic msg:
The text was updated successfully, but these errors were encountered: