[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#741685: libapt-*: 0.9.16 regression: files are closed twice



Package: libapt-pkg4.12
Version: 0.9.16
Severity: serious

Probably following the recent changes to the FileFd compressor
handling, some files now get closed twice. I noticed this while
running the python-apt test suite. It works on 0.9.15 but fails
on 0.9.16 (the backtrace below is most likely wrong, though).

It also occurs only under python3.4. Choosing Python 3.3 or 
APT 0.9.15.5 fixes the bug. The same applies to Bug#741682. Maybe
APT is corrupting memory somewhere?

$ python3.4 test_debfile.py -v
testDebFile (__main__.TestDebfile) ... ok
testDscFile (__main__.TestDebfile) ... ok
test_check_exception (__main__.TestDebfile) ... ERROR
test_contains (__main__.TestDebfile) ... ok
test_content (__main__.TestDebfile) ... ok
test_multi_arch_allowed (__main__.TestDebfile) ... ok
test_multi_arch_same (__main__.TestDebfile) ... ok
test_no_supported_data_tar (__main__.TestDebfile) ... ok
test_utf8_sections (__main__.TestDebfile) ... ok
test_xz_data (__main__.TestDebfile) ... ok

======================================================================
ERROR: test_check_exception (__main__.TestDebfile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_debfile.py", line 124, in test_check_exception
    deb = apt.debfile.DebPackage("./data/test_debs/data-tar-xz.deb")
  File "/usr/lib/python3/dist-packages/apt/debfile.py", line 51, in __init__
    cache = apt.Cache()
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 107, in __init__
    self.open(progress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 152, in open
    self._depcache = apt_pkg.DepCache(self._cache)
SystemError: E:Problem closing the gzip file  - close (9: Bad file descriptor)

----------------------------------------------------------------------
Ran 10 tests in 0.865s

FAILED (errors=1)



-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (980, 'unstable'), (500, 'unstable'), (100, 'experimental')
Architecture: amd64 (x86_64)

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

Versions of packages libapt-pkg4.12 depends on:
ii  libbz2-1.0         1.0.6-5
ii  libc6              2.18-4
ii  libgcc1            1:4.8.2-16
ii  liblzma5           5.1.1alpha+20120614-2
ii  libstdc++6         4.8.2-16
ii  multiarch-support  2.18-4
ii  zlib1g             1:1.2.8.dfsg-1

libapt-pkg4.12 recommends no packages.

libapt-pkg4.12 suggests no packages.

-- no debconf information

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

Please do not top-post if possible.


Reply to: