{"action":"created","issue":{"url":"https://api.github.com/repos/Andersbakken/rtags/issues/578","labels_url":"https://api.github.com/repos/Andersbakken/rtags/issues/578/labels{/name}","comments_url":"https://api.github.com/repos/Andersbakken/rtags/issues/578/comments","events_url":"https://api.github.com/repos/Andersbakken/rtags/issues/578/events","html_url":"https://github.com/Andersbakken/rtags/issues/578","id":128113420,"number":578,"title":"Assertion failed: (acquired && \"Concurrent access to ASTUnit!\") on completion","user":{"login":"velkyel","id":5645472,"avatar_url":"https://avatars.githubusercontent.com/u/5645472?v=3","gravatar_id":"","url":"https://api.github.com/users/velkyel","html_url":"https://github.com/velkyel","followers_url":"https://api.github.com/users/velkyel/followers","following_url":"https://api.github.com/users/velkyel/following{/other_user}","gists_url":"https://api.github.com/users/velkyel/gists{/gist_id}","starred_url":"https://api.github.com/users/velkyel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/velkyel/subscriptions","organizations_url":"https://api.github.com/users/velkyel/orgs","repos_url":"https://api.github.com/users/velkyel/repos","events_url":"https://api.github.com/users/velkyel/events{/privacy}","received_events_url":"https://api.github.com/users/velkyel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-22T09:07:05Z","updated_at":"2016-01-28T06:58:08Z","closed_at":null,"body":"rdm log:\r\n\r\n    Assertion failed: (acquired && \"Concurrent access to ASTUnit!\")\r\n\r\nafter that company emit message:\r\n\r\n    Company: An error occurred in auto-begin\r\n    Company: backend company-rtags async timeout with args (candidates MyClass)\r\n\r\nmy setup:\r\n\r\n    (company-mode)\r\n\r\n    (setq company-backends '(company-rtags company-files)\r\n          rtags-completions-enabled t\r\n          rtags-display-current-error-as-tooltip t\r\n          rtags-autostart-diagnostics t\r\n          rtags-use-helm t\r\n          rtags-show-containing-function t)\r\n\r\n    (rtags-diagnostics)\r\n\r\nrtags-diagnostics is concurrent with company-rtags?\r\n"},"comment":{"url":"https://api.github.com/repos/Andersbakken/rtags/issues/comments/176020417","html_url":"https://github.com/Andersbakken/rtags/issues/578#issuecomment-176020417","issue_url":"https://api.github.com/repos/Andersbakken/rtags/issues/578","id":176020417,"user":{"login":"velkyel","id":5645472,"avatar_url":"https://avatars.githubusercontent.com/u/5645472?v=3","gravatar_id":"","url":"https://api.github.com/users/velkyel","html_url":"https://github.com/velkyel","followers_url":"https://api.github.com/users/velkyel/followers","following_url":"https://api.github.com/users/velkyel/following{/other_user}","gists_url":"https://api.github.com/users/velkyel/gists{/gist_id}","starred_url":"https://api.github.com/users/velkyel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/velkyel/subscriptions","organizations_url":"https://api.github.com/users/velkyel/orgs","repos_url":"https://api.github.com/users/velkyel/repos","events_url":"https://api.github.com/users/velkyel/events{/privacy}","received_events_url":"https://api.github.com/users/velkyel/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T06:58:08Z","updated_at":"2016-01-28T06:58:08Z","body":"gdb session:\r\n\r\n```\r\nAssertion failed: ((!RequiresNullTerminator || BufEnd[0] == 0) && \"Buffer is not null terminated!\"), function init, file /private/tmp/llvm3720151203-62789-1xdiv3g/llvm-3.7.0.src/lib/Support/MemoryBuffer.cpp, line 48.\r\n\r\n(lldb) bt\r\n* thread #14: tid = 0x49ebe, 0x00007fff8b0e8002 libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGABRT\r\n  * frame #0: 0x00007fff8b0e8002 libsystem_kernel.dylib`__pthread_kill + 10\r\n    frame #1: 0x00007fff8f95b5c5 libsystem_pthread.dylib`pthread_kill + 90\r\n    frame #2: 0x00000001016b7803 libLLVM-3.7.dylib`abort + 22\r\n    frame #3: 0x00000001016b77ed libLLVM-3.7.dylib`__assert_rtn + 81\r\n    frame #4: 0x00000001016aca67 libLLVM-3.7.dylib`getOpenFileImpl(int, llvm::Twine const&, unsigned long long, unsigned long long, long long, bool, bool) + 969\r\n    frame #5: 0x00000001016ac694 libLLVM-3.7.dylib`llvm::MemoryBuffer::getOpenFile(int, llvm::Twine const&, unsigned long long, bool, bool) + 38\r\n    frame #6: 0x0000000100958edf libclang.dylib`(anonymous namespace)::RealFile::getBuffer(llvm::Twine const&, long long, bool, bool) + 33\r\n    frame #7: 0x0000000100956c08 libclang.dylib`clang::vfs::FileSystem::getBufferForFile(llvm::Twine const&, long long, bool, bool) + 90\r\n    frame #8: 0x000000010091b95d libclang.dylib`clang::FileManager::getBufferForFile(clang::FileEntry const*, bool, bool) + 431\r\n    frame #9: 0x000000010092816f libclang.dylib`clang::SrcMgr::ContentCache::getBuffer(clang::DiagnosticsEngine&, clang::SourceManager const&, clang::SourceLocation, bool*) const + 155\r\n    frame #10: 0x00000001009082a9 libclang.dylib`clang::Preprocessor::SetCodeCompletionPoint(clang::FileEntry const*, unsigned int, unsigned int) + 89\r\n    frame #11: 0x00000001001eaeae libclang.dylib`EnableCodeCompletion(clang::Preprocessor&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int, unsigned int) + 92\r\n    frame #12: 0x00000001001eabe6 libclang.dylib`clang::CompilerInstance::createCodeCompletionConsumer() + 74\r\n    frame #13: 0x0000000100214ac5 libclang.dylib`clang::ASTFrontendAction::ExecuteAction() + 97\r\n    frame #14: 0x000000010021469b libclang.dylib`clang::FrontendAction::Execute() + 71\r\n    frame #15: 0x00000001001e0f22 libclang.dylib`clang::ASTUnit::CodeComplete(llvm::StringRef, unsigned int, unsigned int, llvm::ArrayRef<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, llvm::MemoryBuffer*> >, bool, bool, bool, clang::CodeCompleteConsumer&, std::__1::shared_ptr<clang::PCHContainerOperations>, clang::DiagnosticsEngine&, clang::LangOptions&, clang::SourceManager&, clang::FileManager&, llvm::SmallVectorImpl<clang::StoredDiagnostic>&, llvm::SmallVectorImpl<llvm::MemoryBuffer const*>&) + 3074\r\n    frame #16: 0x000000010017f490 libclang.dylib`clang_codeCompleteAt_Impl(void*) + 1959\r\n    frame #17: 0x00000001016978d1 libLLVM-3.7.dylib`llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) + 147\r\n    frame #18: 0x0000000101697a7c libLLVM-3.7.dylib`RunSafelyOnThread_Dispatch(void*) + 48\r\n    frame #19: 0x00000001016c4056 libLLVM-3.7.dylib`ExecuteOnThread_Dispatch(void*) + 13\r\n    frame #20: 0x00007fff8f959c13 libsystem_pthread.dylib`_pthread_body + 131\r\n    frame #21: 0x00007fff8f959b90 libsystem_pthread.dylib`_pthread_start + 168\r\n    frame #22: 0x00007fff8f957375 libsystem_pthread.dylib`thread_start + 13\r\n\r\n(lldb) p errno\r\n(void *) $1 = 0x0000000000000002\r\n\r\n(lldb) c\r\nProcess 41968 resuming\r\nlibclang: crash detected in code completion\r\nOutput from /Users/el/gorally2/Raceland/EditorRoadTypePicker.mm:\r\nTimed out sending IndexDataMessage /Users/el/gorally2/Raceland/EditorRoadTypePicker.mm\r\nClangIndexer error\r\n\r\n/Users/el/.local/bin/rc --current-file=/Users/el/gorally2/common/model.mm -o --no-color --prepare-code-complete-at /Users/el/gorally2/common/model.mm:689:1:\r\nGot completion request for common/model.mm:689:1:\r\nAssertion failed: (acquired && \"Concurrent access to ASTUnit!\"), function start, file /private/tmp/llvm3720151203-62789-1xdiv3g/llvm-3.7.0.src/tools/clang/lib/Frontend/ASTUnit.cpp, line 2848.\r\nProcess 41968 stopped\r\n* thread #15: tid = 0x4a8cd, 0x00007fff8b0e8002 libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGABRT\r\n    frame #0: 0x00007fff8b0e8002 libsystem_kernel.dylib`__pthread_kill + 10\r\nlibsystem_kernel.dylib`__pthread_kill:\r\n->  0x7fff8b0e8002 <+10>: jae    0x7fff8b0e800c            ; <+20>\r\n    0x7fff8b0e8004 <+12>: movq   %rax, %rdi\r\n    0x7fff8b0e8007 <+15>: jmp    0x7fff8b0e2bdd            ; cerror_nocancel\r\n    0x7fff8b0e800c <+20>: retq   \r\n\r\n(lldb) bt\r\n* thread #15: tid = 0x4a8cd, 0x00007fff8b0e8002 libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGABRT\r\n  * frame #0: 0x00007fff8b0e8002 libsystem_kernel.dylib`__pthread_kill + 10\r\n    frame #1: 0x00007fff8f95b5c5 libsystem_pthread.dylib`pthread_kill + 90\r\n    frame #2: 0x00000001016b7803 libLLVM-3.7.dylib`abort + 22\r\n    frame #3: 0x00000001016b77ed libLLVM-3.7.dylib`__assert_rtn + 81\r\n    frame #4: 0x00000001001e1eab libclang.dylib`clang::ASTUnit::ConcurrencyState::start() + 49\r\n    frame #5: 0x000000010017ed8b libclang.dylib`clang_codeCompleteAt_Impl(void*) + 162\r\n    frame #6: 0x00000001016978d1 libLLVM-3.7.dylib`llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) + 147\r\n    frame #7: 0x0000000101697a7c libLLVM-3.7.dylib`RunSafelyOnThread_Dispatch(void*) + 48\r\n    frame #8: 0x00000001016c4056 libLLVM-3.7.dylib`ExecuteOnThread_Dispatch(void*) + 13\r\n    frame #9: 0x00007fff8f959c13 libsystem_pthread.dylib`_pthread_body + 131\r\n    frame #10: 0x00007fff8f959b90 libsystem_pthread.dylib`_pthread_start + 168\r\n    frame #11: 0x00007fff8f957375 libsystem_pthread.dylib`thread_start + 13\r\n\r\n(lldb) p errno\r\n(void *) $2 = 0x0000000000000002\r\n```\r\n\r\nit happens on mac osx only.\r\n"}}