clang_complete icon indicating copy to clipboard operation
clang_complete copied to clipboard

Segfault When Completing

Open joeyjoejoejr opened this issue 10 years ago • 1 comments

I've been working on this issue for a day and I've reached a dead end. Vim shuts down with a SIGSEGV when I start to complete. Actually, as soon as I do ctrl-x.

I've downloaded the latest libclang binaries from the llvm site and pointed clang_complete at them, I did this thinking that there was something wrong with the libclang that came with osx. I tested on a fresh vim install. I even built a version of vim with debug symbols for running gdb. That's where I ran out of ideas.

Here's the output from gdb:

Program received signal SIGSEGV, Segmentation fault.
0x00007fff83b19a20 in ?? ()
(gdb) bt
#0  0x00007fff83b19a20 in ?? ()
#1  0x0000000000000000 in ?? ()

And here's the confirmation that vim wasn't stripped

GNU gdb (GDB) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin13.3.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from vim...done.
(gdb)

My clang_complete configuration

" clang_complete settings
let g:clang_complete_auto = 0
let g:clang_use_library = 1
let g:clang_periodic_quickfix = 0
let g:clang_close_preview = 1
let g:clang_snippets = 1

let g:clang_exec = '/Users/joe/.vim/bundle/clang_complete/clang/bin'
let g:clang_library_path = '/Users/joe/.vim/bundle/clang_complete/clang/lib'

Any ideas?

joeyjoejoejr avatar Aug 12 '14 12:08 joeyjoejoejr

+1 I'm with the same problem here

thiagopnts avatar Aug 14 '14 16:08 thiagopnts