Unable to open files in VI editor


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Unable to open files in VI editor
# 1  
Old 10-31-2007
Unable to open files in VI editor

Hi,
I unable to open any file using Vi editor,constantly getting the following error,

HTML Code:
vi log.log
*** glibc detected *** malloc(): memory corruption: 0x081af510 **
uname -a
Linux sekac092 2.6.5-7.244-bigsmp #1 SMP Mon Dec 12 18:32:25 UTC 2005 i686 athlon i386 GNU/Linux

Also Note
ls -l /usr/bin/vi
lrwxrwxrwx 1 root root 3 2007-08-10 13:53 /usr/bin/vi -> vim*

Pls provide ur thoughouts

Thanks
Nagarajan G

Last edited by ennstate; 10-31-2007 at 05:24 AM.. Reason: Note Added
# 2  
Old 10-31-2007
Can you open the file with other tools? can you "cat" or "tail" the file?
# 3  
Old 10-31-2007
Yes Am able to open the file with other tools(tail/cat) and problem is not associated with one file,its happening for all files.

Thanks
Nagarajan G
# 4  
Old 10-31-2007
and did you upgrade the glibc library ? i now that an apt-get on debian will be sometimes upgraded when you install new packages.

Can can also try

Code:
export MALLOC_CHECK_=0
vi log.log

# 5  
Old 10-31-2007
Be sure that you have mounted all file system!
If the /var partition is not mounted you can not open any files with vi!
Best regards joerg
# 6  
Old 11-06-2007
Quote:
Originally Posted by joerg
If the /var partition is not mounted you can not open any files with vi!
More general, when vi opens a file it first creates a backup copy in /var. If the space /var provides is not big enough to hold this copy vi will refuse/not be able to open it.

bakunin
# 7  
Old 11-06-2007
Hi,
I think i have space on the /var system
Code:
df -kh  /var
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda5              12G  6.4G  5.0G  57% /

Also i tried setting,
Code:
 setenv MALLOC_CHECK_ 0

But after this when i try open a file using vi,it never opens up and this hangs for ever.

More Info,
Code:
cat /etc/SuSE-release
SUSE LINUX Enterprise Server 9 (i586)
VERSION = 9
PATCHLEVEL = 3

rpm -q glibc
glibc-2.3.3-98.61

Please let me know if there are alternatives,

Thanks
Nagarajan G
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to check if a file is open in editor?

Hi there! I'm developing a program that allows the user to open and edit files using both an editor and the terminal. Once the user has finished editing the file an update is sent to the logbook that compares the file before and after it was edited - this can only be done if the file is closed (I... (23 Replies)
Discussion started by: cherryTango
23 Replies

2. Shell Programming and Scripting

Not able to read .csv file until open in vi editor

Hi, I am facing a problem regarding .csv file, my script does not read .csv file and if i open this file in vi editor and perform :wq option then only my script reads the .csv file. Thanks (5 Replies)
Discussion started by: ranabhavish
5 Replies

3. UNIX for Dummies Questions & Answers

Vi editor will not open new to UNIX. help please.

vi: syntax error at line 1: `)' unexpected when I try to vi into the /etc/vfstab, the return gives me the above error. how can resolve this so that I can have access into vi. (6 Replies)
Discussion started by: dovestar
6 Replies

4. UNIX for Dummies Questions & Answers

How to open file in VI Editor at a specific line?

i have following query e.g i want the VI Editor cursor at line number N instead of 0 while opening the file from unix prompt. vi filename ?????? Can anyone help? (4 Replies)
Discussion started by: skyineyes
4 Replies

5. UNIX for Advanced & Expert Users

getting error when open vi editor

helo I install my product for koren language I m uisng RHEL -4 operating system now problem is whenever I open any file vi filename I got following error on the screen E557: Cannot open termcap file 'vt100' not known. Available builtin terminals are: builtin_ansi ... (1 Reply)
Discussion started by: amitpansuria
1 Replies

6. Shell Programming and Scripting

How to give permissions to an open file in vi editor?

Hi all, I have a shell script that i started editing, only in the midst of which i tried to save the changes i found that the file wasnt been provided with write/execute permissions. I later have redone the changes and saved the file- Just curious to know if there was any command wherein... (5 Replies)
Discussion started by: Pankajakshan
5 Replies
Login or Register to Ask a Question