Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GVIM - Crash during startup

Tags:

vim

unix

Recently I wanted to try the gvim7.2 for its wonderful support of CSCOPE and installed it from my company's installation directory. However, when I execute it - I get a segmentation fault and the message looks thus,

Vim: Caught deadly signal SEGV
Vim: Finished.
Segmentation fault (core dumped)

When I was searching for this issue in the online forums, I found general complaints about the reproducibility of the issue. Any insights on this would be greatly appreciated.

like image 564
Prando Avatar asked Feb 22 '23 00:02

Prando


2 Answers

I have had crashes with incompatible shared libraries for Python3 IIRC.

I never got ultisnips working on Ubuntu Natty 64 for that very reason.

Removing the plugin made vim start normally (probably by not loading the incompatible library in the first place).

You may disable your plugins and reenable them one by one to see whether Python is the culprit, or test directly:

gvim -u NONE +'python3 print "test"'

On my box:

Fatal Python error: take_gil: NULL tstate
Vim: Caught deadly signal ABRT
Vim: Finished.

Conversely,

gvim -u NONE +'python2 print "test"'

Works correctly

like image 127
sehe Avatar answered Mar 06 '23 05:03

sehe


This surely took me a long time to debug, I indeed went through the painful process of manually disabling every plugin that I had installed and yet the same error kept popping up.

[Solution] : It turned out that the gvim is tightly bound to the graphics settings used. We use a citrix client to remote login into UNIX servers and develop from there. As per my colleague's suggestion - I changed the color settings to "True Color 24 bit" and voila!!, things worked perfectly.

One of the classic examples of the times when we get hit by totally unsuspecting source of bugs!

Anyways, thanks for all your suggestions - I learned a lot :).

like image 34
Prando Avatar answered Mar 06 '23 04:03

Prando