Package: dpkg
Version: 1.10.10

When I install a package using either `apt-get install' or `dpkg -i' I
get a segmentation fault. My /usr/share/doc is on a seperate partition
which is full:

mystery:/tmp# df /usr/share/doc
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda20              381139    381137         0 100% /usr/share/doc


Running dpkg through strace shows the problem:

mystery:/tmp# strace dpkg -i dpkg_1.13.11_i386.deb
execve("/usr/bin/dpkg", ["dpkg", "-i", "dpkg_1.13.11_i386.deb"], [/* 25 vars 
*/]) = 0
uname({sys="Linux", node="mystery.home", ...}) = 0
brk(0)                                         = 0x807a000

(...)

open("/usr/share/doc/dpkg/changelog.gz.dpkg-new", O_WRONLY|O_CREAT|O_EXCL, 0) = 
8
read(7, "\37\213\10\10\332\262\2C\2\3changelog\0\264[\375s\23G\322"..., 32768) 
= 32768
write(8, "\37\213\10\10\332\262\2C\2\3changelog\0\264[\375s\23G\322"..., 32768) 
= -1 ENOSPC (No space left on device)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
dpkg-deb: subprocess paste killed by signal (Broken pipe)


Here is the output from apt-get:

mystery:/usr/share/doc# apt-get install dpkg
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded
  dpkg
1 upgraded, 0 newly installed, 0 to remove and 981 not upgraded.
1 not fully installed or removed.
Need to get 0B/1821kB of archives.
After unpacking 2204kB of additional disk space will be used.
Traceback (most recent call last):
  File "/usr/bin/apt-listchanges", line 68, in ?
    seen = anydbm.open(config.save_seen, 'c')
  File "/usr/lib/python2.3/anydbm.py", line 82, in open
    mod = __import__(result)
  File "/usr/lib/python2.3/dbhash.py", line 5, in ?
    import bsddb
  File "/usr/lib/python2.3/bsddb/__init__.py", line 40, in ?
    import _bsddb
ImportError: No module named _bsddb

Gtk-WARNING **: cannot open display:
debconf: unable to initialize frontend: Gnome
debconf: (DISPLAY problem?)
debconf: falling back to frontend: Dialog
(Reading database ... 119556 files and directories currently installed.)
Preparing to replace dpkg 1.10.10 (using
.../archives/dpkg_1.13.11_i386.deb) ...
Unpacking replacement dpkg ...
dpkg-deb: subprocess paste killed by signal (Broken pipe)
localepurge: Disk space freed in /usr/share/locale: 3668K
localepurge: Disk space freed in /usr/share/man: 212K

Total disk space freed by localepurge: 3880K

E: Sub-process /usr/bin/dpkg received a segmentation fault.




I suggest that dpkg exit gracefully with an error message indicating the
problem (i.e. a partition is out of space).


I am using Debian testing/unstable, kernel 2.6.12.3, libc 2.3.5.


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

Reply via email to