-
Notifications
You must be signed in to change notification settings - Fork 53
OS X: segfaulting with homebrew MacVim (vim version 7.4.383) #5
Comments
ah, it seems to be segfaulting with the shipped one too... |
I haven't tested on OS X in a while. I'll take a look at this today, thank you. |
I have been unable to reproduce any such issues on OS X. Are you certain it's not your environment? |
Will try it again and will report back soon. |
Happening consistently for me after "CursorHold" is triggered. This is the lldb's backtrace I get from the coredump:
I may have to build a debugging version of Vim do debug this. Will see if there's any change with an updated version. |
meh, I was already with latest macvim from november... |
So, I've cloned the tip of vim from original repositories and tested both a debug and release compilation and there's no such behavior indeed. So it must be a bug in macvim, or in the specific vim version macvim is currently based upon. |
By the way on OS X I've found this problem with the latest vim sources... https://groups.google.com/d/msg/vim_dev/WVE9W-j3sK8/2eFXS_r7xR4J |
In the official repository I've checkout the tag that corresponds to the version that's currently bundled with MacVim and there's still no issue. So, it must be a bug in MacVim, or maybe, related to how homebrew builds it. Notice this is happening with MacVim (vim version 7.4.383) that's available through homebrew, for current version as well as |
I won't be digging this further sorry, I'll stick with official vim for the console. |
No need to apologize, mate. You've done some excellent troubleshooting here and have given me more than enough information to pick up where you left off. Thank you. |
I believe this has been fixed, as part of #10 which was a nasty bug where the system libclang files could be mixed with color_coded. I have tested color_coded on a fresh Yosemite install with non-HEAD macvim from brew and everything is working nicely. If you get the time to verify, please do. Otherwise, I'll close this in a couple of days. |
EDIT: scratch that, this is in master; it's a blocking bug fix and is working for me on Linux and OS X. You should use |
I'll check it asap. |
Any update? |
Just tried with a new MacVim installation, seems to be gone. |
Thanks. |
Thanks.
\o/ Thank you for all the help.
|
np! |
Ah, I did find the link on HN :-) |
:D |
My system's clang is the HEAD one and color_coded is segfaulting with it. I'll try to debug it when I have time but I guess it should be taken it account since it may get same behavior on clang 3.6.
The reason the system libclang is being loaded and not the one embedded by the plugin is because of rpath settings.
You may take a look at these issues and YCM code to learn how it may be fixed:
ycm-core/ycmd#65
ycm-core/ycmd#66
I have run
install_name_tool -change @rpath/libclang.dylib ../clang+llvm-3.5.0-macosx-apple-darwin/lib/libclang.dylib bin/color_coded.so
to force it to load the embedded lib.The text was updated successfully, but these errors were encountered: