Bug#514617: vim: Does not recognize Very Large text files

Ron Johnson ron.l.johnson at cox.net
Mon Feb 9 14:26:08 UTC 2009


Package: vim
Version: 2:7.2.079-1
Severity: normal

$ file ACCOUNT_TOLL_V20_200408.UNL
ACCOUNT_TOLL_V20_200408.UNL: ASCII text, with very long lines

$ ls -gGh ACCOUNT_TOLL_V20_200408.UNL
-rw-r----- 1 23G 2006-10-22 06:50 ACCOUNT_TOLL_V20_200408.UNL

vim, though, doesn't seem to recognize it, simply displaying:
     [New File] 

This snippet from strace seems to be the smoking gun:
select(1, [0], NULL, [0], {0, 0})       = 0 (Timeout)
stat64("ACCOUNT_TOLL_V20_200408.UNL", {st_mode=S_IFREG|0640, st_size=23726916643, ...}) = 0
stat64("ACCOUNT_TOLL_V20_200408.UNL", {st_mode=S_IFREG|0640, st_size=23726916643, ...}) = 0
access("ACCOUNT_TOLL_V20_200408.UNL", W_OK) = 0
open("ACCOUNT_TOLL_V20_200408.UNL", O_RDONLY) = -1 EOVERFLOW (Value too large for defined data type)
readlink("ACCOUNT_TOLL_V20_200408.UNL", 0xfff19c4c, 4095) = -1 EINVAL (Invalid argument)


Maybe there's an int where there should be an in64?

Or, since editing huge text files isn't a common occurrance, a 
simpler fix might just be to display an error message?

-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.28smp64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages vim depends on:
ii  libacl1                   2.2.47-2       Access control list shared library
ii  libc6                     2.7-18         GNU C Library: Shared libraries
ii  libgpm2                   1.20.4-3.1     General Purpose Mouse - shared lib
ii  libncurses5               5.7+20090124-1 shared libraries for terminal hand
ii  libselinux1               2.0.65-5       SELinux shared libraries
ii  vim-common                2:7.2.079-1    Vi IMproved - Common files
ii  vim-runtime               2:7.2.079-1    Vi IMproved - Runtime files

vim recommends no packages.

Versions of packages vim suggests:
pn  ctags                         <none>     (no description available)
pn  vim-doc                       <none>     (no description available)
pn  vim-scripts                   <none>     (no description available)

-- no debconf information





More information about the pkg-vim-maintainers mailing list