On Tuesday, May 14, 2013 1:58:13 PM UTC-4, Bram Moolenaar wrote:
> Jieming wrote:
> 
> 
> 
> > On Linux (64 bit), the following tty settings will can cause vi to consume 
> > 40G, and can cause system to run out of memory:
> 
> > 
> 
> > stty rows 65535
> 
> > stty columns 65535
> 
> > vi foo
> 
> > 
> 
> > This need to be fixed (e.g., restrict columns to 512). Any comments.
> 
> 
> 
> I get: 
> 
> E342: Out of memory!  (allocating 4294901760 bytes)
> 
> 
> 
> Vim needs a screen buffer, 65535 * 65535 = 4294836225
> 
> Makes sense?
> 
> 
> 
> It actually works for me, although the screen is messed up, for obvious
> 
> reasons.
> 
> 
> 
> -- 
> 
> ARTHUR:  Bloody peasant!
> 
> DENNIS:  Oh, what a give away.  Did you hear that, did you hear that, eh?
> 
>          That's what I'm on about -- did you see him repressing me, you saw it
> 
>          didn't you?
> 
>                                   The Quest for the Holy Grail (Monty Python)
> 
> 
> 
>  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
> 
> ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
> 
> \\\  an exciting new programming language -- http://www.Zimbu.org        ///
> 
>  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///


Some application sets this. It took a while to figure out how vim eats so much 
memory. But regardless, need to fix vim (e.g., set max columns to 512).

Cheers
Jieming

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to