Bug#502202: dpkg: crashes if $PATH contains unreachable nfs directory

2008-10-14 Thread Sven Joachim
On 2008-10-14 15:35 +0200, Daniel Abel wrote:

> Package: dpkg
> Version: 1.14.16.6ubuntu4
> Severity: normal

Please report Ubuntu bugs in Launchpad, not in the Debian BTS.

> Running 'dpkg -l' gives the following if $PATH contains an unreachable
> NFS-mounted directory:
> [EMAIL PROTECTED]:~$ dpkg -l
> dpkg: failed to exec dpkg-query: Input/output error
> [EMAIL PROTECTED]:~$ 
>
> removing that directory from $PATH fixes the problem.
>
> I assume this is caused by dpkg looking for something in any directory
> in $PATH and not skipping unaccessible ones. 

It is the glibc's execvp() function that performs this search and fails,
there is nothing dpkg can do about that.  See exec(3).

Sven



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#502202: dpkg: crashes if $PATH contains unreachable nfs directory

2008-10-14 Thread Daniel Abel
Package: dpkg
Version: 1.14.16.6ubuntu4
Severity: normal

Running 'dpkg -l' gives the following if $PATH contains an unreachable
NFS-mounted directory:
[EMAIL PROTECTED]:~$ dpkg -l
dpkg: failed to exec dpkg-query: Input/output error
[EMAIL PROTECTED]:~$ 

removing that directory from $PATH fixes the problem.

I assume this is caused by dpkg looking for something in any directory
in $PATH and not skipping unaccessible ones. 

-- System Information:
Debian Release: lenny/sid
  APT prefers hardy-updates
  APT policy: (500, 'hardy-updates'), (500, 'hardy-security'), (500, 'hardy')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-19-server (SMP w/32 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dpkg depends on:
ii  coreutils 6.10-3ubuntu2  The GNU core utilities
ii  libc6 2.7-10ubuntu4  GNU C Library: Shared libraries
ii  lzma  4.43-12ubuntu1 Compression method of 7z format in

dpkg recommends no packages.

-- no debconf information



signature.asc
Description: Digital signature