Many thanks to:
Alan Nabeth,
Loucks Guy,
Claude Scarpelli,
Leonard Roger
Laurent Sainte-Marthe
Hasan Atasoy
Thomas Leitner
The Problem:
>The system is an Alpha Serever Dunix 4.0D patch kit 3 (512 MB Ram).
> I do "vi myfile" , where myfile is about 75MB large.
>Then I search a pattern into myfile and I get "Segmentation fault (core
dumped)".
Hints:
(...) vi uses virtual memory to handle the file and that has limits.
The most notable is the per-process data size limit. Most shells offer a
built-in command to
see and change this limit (e.g. . csh> limit datasize unlimited).
Vi also does the editing of the file on a copy that it
keeps in /tmp or /var/tmp. Running out of space there could cause problems.
I would recommend for large files to use emacs.
We reported this bug to Digital 18 months ago. We got a fix (a new
binary version of /bin/vi), but this fix haven't been included in any
official patch kit.
The solution:
Laurent says that in patch kit #2 of Tru64 4.0E, a correction for vi is
available to edit file
greater then 100 Mb. So I got vi from a Tru64 4.0E pk2 and I tried it : it
really works.
Ciao.
Isidoro.
_____________________________________________
Isidoro Sepe
Telesoft Spa
Via Nuova Poggioreale,snc
80143 Napoli
phone +390817564486
fax +390817564252
e-mail isidoro.sepe_at_tlsoft.it
______________________________________________
Received on Tue Sep 07 1999 - 07:52:51 NZST