delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/11/20/14:25:00

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <47432F5F DOT 4080302 AT wustl DOT edu> <17393e3e0711201116v7c01c77by468aec648bf2d30a AT mail DOT gmail DOT com>
Subject: RE: Vim: segmentation fault
Date: Tue, 20 Nov 2007 19:24:33 -0000
Message-ID: <05d101c82baa$fc8c7fc0$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <17393e3e0711201116v7c01c77by468aec648bf2d30a@mail.gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id lAKJOnTf015383

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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019