Bug#336560: marked as done (vim loops forever in readlink on startup when opening symlinked file with two parent directories of the same name)

Debian Bug Tracking System owner at bugs.debian.org
Sun Dec 11 23:33:24 UTC 2005


Your message dated Sun, 11 Dec 2005 15:01:11 -0800
with message-id <E1ElaBr-0001RH-DS at spohr.debian.org>
and subject line Bug#336560: fixed in vim 1:6.4-004+1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 31 Oct 2005 07:59:26 +0000
>From frode at coretrek.com Sun Oct 30 23:59:26 2005
Return-path: <frode at coretrek.com>
Received: from phobos.coretrek.no (nexus.intra.coretrek.com) [80.239.119.10] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1EWUZi-0006VS-00; Sun, 30 Oct 2005 23:59:26 -0800
Received: by nexus.intra.coretrek.com (Postfix, from userid 1001)
	id 0A6A52B6A4; Mon, 31 Oct 2005 08:59:17 +0100 (CET)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: "Frode E. Moe" <frode at coretrek.com>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: vim loops forever in readlink on startup when opening symlinked file with
 two parent directories of the same name
X-Mailer: reportbug 3.17
Date: Mon, 31 Oct 2005 08:59:17 +0100
X-Debbugs-Cc: frode at coretrek.com
Message-Id: <20051031075917.0A6A52B6A4 at nexus.intra.coretrek.com>
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-11.0 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	X_DEBBUGS_CC autolearn=ham version=2.60-bugs.debian.org_2005_01_02

Package: vim
Version: 1:6.4-001+2
Severity: normal

VIM loops forever in "readlink", according to strace, when running this script:

#!/bin/sh
cd /tmp
mkdir -p vim-bug/vim-bug/subdir
mkdir -p vim-bug/subdir
echo 'this is a file' > vim-bug/vim-bug/subdir/testfile
cd vim-bug/subdir
ln -s ../vim-bug/subdir/testfile
cd ..
echo "Pwd is:"
pwd
echo "subdir/testfile is:"
ls -l subdir/testfile
echo "Launching vim on subdir/testfile in 5 seconds"
sleep 5
vim -u NONE -U NONE subdir/testfile

I actually found this bug when I tried to open /boot/grub/menu.lst,
which is a symlink to /boot/boot/grub/menu.lst on my system.

The problem seem to only occur when both the parent directory and 
the parent's parent directory has the same name.

Output from attaching strace:
readlink("../vim-bug/subdir/testfile", "../vim-bug/subdir/testfile", 4096) = 26
readlink("../vim-bug/subdir/testfile", "../vim-bug/subdir/testfile", 4096) = 26
readlink("../vim-bug/subdir/testfile", "../vim-bug/subdir/testfile", 4096) = 26
readlink("../vim-bug/subdir/testfile", "../vim-bug/subdir/testfile", 4096) = 26
readlink("../vim-bug/subdir/testfile", "../vim-bug/subdir/testfile", 4096) = 26
readlink("../vim-bug/subdir/testfile", "../vim-bug/subdir/testfile", 4096) = 26
....

Output from attaching ltrace: 
readlink(0xbff06b2c, 0xbff07b5c, 4096, 0x81999f0, 2) = 26
strcpy(0xbff06b2c, "../vim-bug/subdir/testfile") = 0xbff06b2c
readlink(0xbff06b2c, 0xbff07b5c, 4096, 0x81999f0, 2) = 26
strcpy(0xbff06b2c, "../vim-bug/subdir/testfile") = 0xbff06b2c
readlink(0xbff06b2c, 0xbff07b5c, 4096, 0x81999f0, 2) = 26
strcpy(0xbff06b2c, "../vim-bug/subdir/testfile") = 0xbff06b2c
readlink(0xbff06b2c, 0xbff07b5c, 4096, 0x81999f0, 2) = 26
strcpy(0xbff06b2c, "../vim-bug/subdir/testfile") = 0xbff06b2c
...

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13.4
Locale: LANG=C, LC_CTYPE=no_NO.ISO8859-1 (charmap=ISO-8859-1)

Versions of packages vim depends on:
ii  libc6                        2.3.5-7     GNU C Library: Shared libraries an
ii  libgpmg1                     1.19.6-21   General Purpose Mouse - shared lib
ii  libncurses5                  5.5-1       Shared libraries for terminal hand
ii  vim-common                   1:6.4-001+2 Vi IMproved - Common files

vim recommends no packages.

-- no debconf information

---------------------------------------
Received: (at 336560-close) by bugs.debian.org; 11 Dec 2005 23:03:17 +0000
>From joerg at spohr.debian.org Sun Dec 11 15:03:17 2005
Return-path: <joerg at spohr.debian.org>
Received: from joerg by spohr.debian.org with local (Exim 4.50)
	id 1ElaBr-0001RH-DS; Sun, 11 Dec 2005 15:01:11 -0800
From: Debian VIM Maintainers <pkg-vim-maintainers at lists.alioth.debian.org>
To: 336560-close at bugs.debian.org
X-Katie: lisa $Revision: 1.31 $
Subject: Bug#336560: fixed in vim 1:6.4-004+1
Message-Id: <E1ElaBr-0001RH-DS at spohr.debian.org>
Sender: Joerg Jaspert <joerg at spohr.debian.org>
Date: Sun, 11 Dec 2005 15:01:11 -0800
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 9

Source: vim
Source-Version: 1:6.4-004+1

We believe that the bug you reported is fixed in the latest version of
vim, which is due to be installed in the Debian FTP archive:

vim-common_6.4-004+1_i386.deb
  to pool/main/v/vim/vim-common_6.4-004+1_i386.deb
vim-doc_6.4-004+1_all.deb
  to pool/main/v/vim/vim-doc_6.4-004+1_all.deb
vim-full_6.4-004+1_i386.deb
  to pool/main/v/vim/vim-full_6.4-004+1_i386.deb
vim-gnome_6.4-004+1_i386.deb
  to pool/main/v/vim/vim-gnome_6.4-004+1_i386.deb
vim-gtk_6.4-004+1_i386.deb
  to pool/main/v/vim/vim-gtk_6.4-004+1_i386.deb
vim-gui-common_6.4-004+1_i386.deb
  to pool/main/v/vim/vim-gui-common_6.4-004+1_i386.deb
vim-lesstif_6.4-004+1_i386.deb
  to pool/main/v/vim/vim-lesstif_6.4-004+1_i386.deb
vim-perl_6.4-004+1_i386.deb
  to pool/main/v/vim/vim-perl_6.4-004+1_i386.deb
vim-python_6.4-004+1_i386.deb
  to pool/main/v/vim/vim-python_6.4-004+1_i386.deb
vim-ruby_6.4-004+1_i386.deb
  to pool/main/v/vim/vim-ruby_6.4-004+1_i386.deb
vim-runtime_6.4-004+1_all.deb
  to pool/main/v/vim/vim-runtime_6.4-004+1_all.deb
vim-tcl_6.4-004+1_i386.deb
  to pool/main/v/vim/vim-tcl_6.4-004+1_i386.deb
vim-tiny_6.4-004+1_i386.deb
  to pool/main/v/vim/vim-tiny_6.4-004+1_i386.deb
vim_6.4-004+1.diff.gz
  to pool/main/v/vim/vim_6.4-004+1.diff.gz
vim_6.4-004+1.dsc
  to pool/main/v/vim/vim_6.4-004+1.dsc
vim_6.4-004+1_i386.deb
  to pool/main/v/vim/vim_6.4-004+1_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 336560 at bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Debian VIM Maintainers <pkg-vim-maintainers at lists.alioth.debian.org> (supplier of updated vim package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster at debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed,  7 Dec 2005 22:02:34 +0100
Source: vim
Binary: vim-full vim-lesstif vim-common vim-gnome vim-doc vim-runtime vim vim-gtk vim-perl vim-ruby vim-gui-common vim-tiny vim-python vim-tcl
Architecture: source all i386
Version: 1:6.4-004+1
Distribution: unstable
Urgency: low
Maintainer: Debian VIM Maintainers <pkg-vim-maintainers at lists.alioth.debian.org>
Changed-By: Debian VIM Maintainers <pkg-vim-maintainers at lists.alioth.debian.org>
Description: 
 vim        - Vi IMproved - enhanced vi editor
 vim-common - Vi IMproved - Common files
 vim-doc    - Vi IMproved - HTML documentation
 vim-full   - Vi IMproved - enhanced vi editor - full fledged version
 vim-gnome  - Vi IMproved - enhanced vi editor - with GNOME2 GUI
 vim-gtk    - Vi IMproved - enhanced vi editor - with GTK2 GUI
 vim-gui-common - Vi IMproved - Common GUI files
 vim-lesstif - Vi IMproved - enhanced vi editor - with LessTif GUI
 vim-perl   - Vi IMproved - enhanced vi editor - with Perl support
 vim-python - Vi IMproved - enhanced vi editor - with Python support
 vim-ruby   - Vi IMproved - enhanced vi editor - with Ruby support
 vim-runtime - Vi IMproved - Runtime files
 vim-tcl    - Vi IMproved - enhanced vi editor - with TCL support
 vim-tiny   - Vi IMproved - enhanced vi editor - compact version
Closes: 222138 287202 336560 337825 338027 338256 338557 340037 341081 342074
Changes: 
 vim (1:6.4-004+1) unstable; urgency=low
 .
   [ Debian VIM Maintainers ]
   * New upstream patches (002 to 004), see README.gz for details.
 .
   [ Stefano Zacchiroli ]
   * Added back vim-tiny package. (closes: #222138)
   * Reshaped vim packaging as follows:
     - vim-common -> arch-dependent common files (variants w/o GUI)
     - vim-gui-common -> arch-dependent common files (variants w GUI)
       (closes: #338027)
     - vim-runtime -> vim runtime (arch-independent)
     - vim -> default variant
     - vim-* -> other variants
     - vim-tiny -> tiny variant, no vim-runtime dependency
     - the above changes additionally got rid of circular dependency
       vim -> vim-common -> vim (closes: #340037)
   * Added symlink /usr/share/vim/vimcurrent -> vim64, will be kept
     proper in future releases. /etc/vim/vimrc no longer version-aware.
   * Removed duplicate /usr/share/vim/vimfiles entry in vimrc.
     (closes: #337825)
   * (Re-)Fixed debian/runtime/vimrc, last version inhibit /usr/bin/ex.
   * au commands in vimrc executed only if has("autocmd").
   * No longer try to move configuration files from /etc to /etc/vim
     (ancient preinst, no longer needed to support upgrades from sarge).
   * Updated Description-s in debian/control.
   * Check for and removal of old vim.org diversion in postinst instead
     of postrm (closes: #341081)
   * Adds gvim, when compiled with gnome support, as an alternative for
     gnome-text-editor, with priority lower than gedit (closes: #287202)
   * Substituted @PKG@ in menu entry for package name (closes: #342074)
 .
   [ James Vega ]
   * Added patch 148_debchangelog, update syntax/debchangelog.vim to
     recognize infrequently used but policy compliant syntax.
     (closes: #338557)
   * Fixed patch 304_memline.c.diff to avoid inifinte loops resolving
     symlinks. (closes: #336560)
   * Remove the 'p' vmap in /etc/vim/vimrc since it has various bad
     side-effects such as not being able to paste from a register while
     in visual mode.
 .
   [ Matthijs Mohlmann ]
   * Updated syntax for sshd_config and ssh_config.
   * Updated syntax highlighting for asterisk.vim (Closes: #338256)
Files: 
 0feab9ff4ba5e8734139ae1c1936a79d 1353 editors optional vim_6.4-004+1.dsc
 bda11720c75d5a788fdaf7f079046408 172896 editors optional vim_6.4-004+1.diff.gz
 769079991159f12cff555c884bf3c0f3 3589932 editors optional vim-runtime_6.4-004+1_all.deb
 67a4b1b60430f38eded105cbb746f09d 1729586 editors optional vim-doc_6.4-004+1_all.deb
 2126d2767c0a9e6d6d844bdff52b0e67 377262 editors optional vim-tiny_6.4-004+1_i386.deb
 b5be8b1ab84b32c4c45a4d84e21df94e 725766 editors extra vim-ruby_6.4-004+1_i386.deb
 ead72d9a409034fe827829e236887599 689534 editors extra vim-tcl_6.4-004+1_i386.deb
 a07ea1a31207c42d82e0021102de5b68 682524 editors extra vim-gtk_6.4-004+1_i386.deb
 0006fa34ae873123c81ec808e3c2021b 662902 editors extra vim-lesstif_6.4-004+1_i386.deb
 90c901cab36afc7ad784b66786aeb2b9 736772 editors extra vim-perl_6.4-004+1_i386.deb
 4f82c0e922644612a8397e2ed901626b 729848 editors extra vim-python_6.4-004+1_i386.deb
 2c397a74c421875ba43309cce1dd6355 684450 editors extra vim-gnome_6.4-004+1_i386.deb
 ef67f6121af542b9eb4a9dc11dca2046 757550 editors extra vim-full_6.4-004+1_i386.deb
 feec75a4e71e133f0791d36565ceb4a4 80736 editors optional vim-common_6.4-004+1_i386.deb
 3ac8753887a0b6a9b009274db8a6b48e 66842 editors optional vim-gui-common_6.4-004+1_i386.deb
 cb415b75d739e7504e43d8e475442ff9 569734 editors optional vim_6.4-004+1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDmUgNr/RnCw96jQERAgcSAJ0eKqvVkmP7UFB1hphcW0IvZupEFACgp7wr
H8QSd+wZ2dzsF5ljmQt81ec=
=7tS+
-----END PGP SIGNATURE-----




More information about the pkg-vim-maintainers mailing list