Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Vim: Caught deadly signal SEGV

Hi all,


Vim keeps crashing on me every so often after installing Lion. It says "Vim: Caught deadly signal SEGV" and then it just stops responding and I have to close vim from the activity monitor; even closing the terminal doesn't stop the vim process from using about 45% of one of my cores! Vim is now very unstable and practically unusable in Lion, but it's one of the programs I use the most.


Is there any solution to this, or do I have to compile vim on my own to see it that will help?


Thanks,

Johan

MacBook Pro, Mac OS X (10.7)

Posted on Aug 10, 2011 12:24 PM

Reply
13 replies

Oct 4, 2011 8:12 PM in response to jswetzen

Every time it crashes for me I get the following backtrace:


0 libsystem_kernel.dylib 0x00007fff9325382a __kill + 10

1 vi 0x000000010ac9ab71 0x10ab73000 + 1211249

2 libsystem_c.dylib 0x00007fff8cc46cfa _sigtramp + 26

3 libsystem_c.dylib 0x00007fff8cc46484 strncmp + 148

4 libcopyfile.dylib 0x00007fff930b8204 copyfile + 514

5 vi 0x000000010abd4887 0x10ab73000 + 399495

6 vi 0x000000010abac485 0x10ab73000 + 234629

7 vi 0x000000010abc17ab 0x10ab73000 + 321451

8 vi 0x000000010ac1e7cf 0x10ab73000 + 702415

9 vi 0x000000010ac27e09 0x10ab73000 + 740873

10 vi 0x000000010abec29e 0x10ab73000 + 496286

11 vi 0x000000010abee9d2 0x10ab73000 + 506322

12 vi 0x000000010ab73d04 0x10ab73000 + 3332


I recently had to switch back to Lion after downgrading and was disapointed to see this problem still occuring on a new laptop shipped with Lion. Has anyone looked through the vim source code for calls to copyfile()? Did Apple change something with this API in Lion?

Apr 21, 2012 8:18 AM in response to dlarimer

@dlarimer – Thanks for the tip. I've installed from source, but I'm not sure where I was supposed to use the `-g` flag.


For any future visitors to this little post who are as new at compiling from source as me, here are all the steps:


Download vim and unzip it. Then cd into the directory with it and


./configure --with-features=big

make

sudo make install

sudo make install clean


This will install the vim executables in /usr/loca/bin. If you want them to be in /usr/bin (where they used to be), you'll have to move them.


The `--with-features=big` flag is needed for some plugins that use unicode/multi-byte characters.


I just did this, so I don't know how well it's working yet, but you give me hope, @dlarimer. :-)

Vim: Caught deadly signal SEGV

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.