Package: python2.6
Version: 2.6.6-8
Severity: important

python2.6 uses the following loop to import modules:

| for (fdp = _PyImport_Filetab; fdp->suffix != NULL; fdp++) {
| [...]
|     fp = fopen(buf, filemode);
|     if (fp != NULL) {
| [...]
|             break;
|     }
| [...]
| }

It checks for non-available files and tries the next pattern. However it
does not even touch errno to find out the error it got. This error can
be ESTALE, EMFILE or ENOMEM; all of them don't provide any knowledge if
the file does not exists (ESTALE can only happen for available files!).

This produces phantom errors of unavailable modules instead of the real
error.

Bastian

-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to