-
Notifications
You must be signed in to change notification settings - Fork 53
SIGSEGV after moving to clang 3.8 #119
Comments
Yikes; I know multiple people, myself included, have tested 3.8.0 on Ubuntu, but I don't know about testing gvim; I only tested terminal vim, but I also built from git. Since you're running the latest vim and you're using dynamic linking for lua, it rules out the two primary suspects. Please verify that you don't have luajit compiled into vim (it looks like you don't, but check). |
Thanks for fast answer. Luajit was first what i thought about, but i doublechecked, and I don't have it. Who is the second suspect? I see that vim built with lua 5.2 and color coded tryes to use lua5.3, may it be the problem? |
I figured out what was my problem, i had both lua 5.2 and 5.3 libs in my system, so vim was built with 5.2, but color coded was building with 5.3 for some reason, maybe cmake finds just newest one. Building it with lua5.2 fixed the problem. What is the best way to link color_coded.so with lua 5.2 having different versions in system? |
Hm, it seems like that's exactly the issue: color_coded just assumes the latest lua is what it should use. In general, I think that's a safe bet, but it might be better to try to procedurally figure out what vim is using and use that. At the very least, we can expose some environment variable to cmake which will override the preferred lua version. Thanks for following up with this and investigating it to closure. |
Yeah, having exposed cmake variable will be nice. And by the way, consider adding |
#114 changes that all quite a bit, so I'm waiting for it to be ready. |
I just compiled vim 7.4 with lua 5.2.4_3 (installed from homebrew) into /usr/local, I only have this version of lua and no luajit. Then when I open any c++ file, everything is fine at first and color_coded works, but not before long and it will crash here:
|
After looking through other issues I realize that it is actually the same issue as #61 and turning off beeps prevents the crash. I have escape mapped to jj, and if I press it too much I guess the terminal beeps, though it doesn't actually make the sound. It also happens when I push j multiple times after the cursor is at the bottom of the file. |
I'm getting an SEGV singal on startup while using clang 3.8 (haven't tried others yet). Is there a fix for this? |
Hey @jeaye , Any updates on this? |
@sabastiaan Is this still an issue on clang 3.9? |
@jeaye I don't have clang 3.9 currently on my machine, I'll post the results sometime this evening. |
Closing, since this went stale. |
I just recompiled color_coded it downloaded clang 3.8 by itself and now i'm getting segfault in vim just by opening any c/c++ file. Well backtrace doesn't look really libclang related for me, but I'm not shure.
I use last vim from git on ubuntu (gvim - with gnome libs).
Backtrace from gdb:
The text was updated successfully, but these errors were encountered: