This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Vim: segmentation fault
On 20 November 2007 19:17, Matt Wozniski wrote:
> And, there's no reason that should crash vim. Do you have the
> 1.5 GB of memory that you'd need to open that file?
Umm, you don't need that much memory to open a file, thanks to the wonders of file-backed virtual memory. But what you probably do need is a 1.5GB empty hole in your process address space (unless vim is intelligent enough to only mmap() part of the file at a time), and finding a hole that size is almost certainly impossible on 32-bit targets without enabling the boot.ini '/3GB' switch.
However I don't know anything about the internals of vim, so can't be sure that's the cause. And it's certainly a bug that it doesn't fail gracefully.
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/