Package: dpkg
Version: 1.13.11.0.1
Severity: serious

I created a package to be used in Greek Debian-Edu/Skolelinux
installations, which includes many Greek (UTF-8) filenames, but dpkg fails
to install it on any UTF-8 locale I tried (el_GR, en_GB, en_US, pt_BR,
fr_FR).UTF-8. This was reproduced by others in #debian-devel channel.

When using a UTF-8 locale, dpkg falls into some kind of endless loop and
fails with a 'Cannot allocate memory' error (debug log of dpkg with when
run thus:

# dpkg -D7777 -i 
/home/markos/Debian/ancient-greek-literature/ancient-greek-literature_1.0-1_all.deb

is attached)

The package is located at:

http://people.debian.org/~markos/ancient-greek-literature/ancient-greek-literature_1.0-1_all.deb

(with accompanying sources)

Thanks

Konstantinos

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12
Locale: LANG=el_GR.UTF-8, LC_CTYPE=el_GR.UTF-8 (charmap=UTF-8)

Versions of packages dpkg depends on:
ii  coreutils [textutils]         5.2.1-2.1  The GNU core utilities
ii  libc6                         2.3.5-8    GNU C Library: Shared libraries an

dpkg recommends no packages.

-- no debconf information
D000010: ensure_pathname_nonexisting `/var/lib/dpkg/tmp.ci'
Selecting previously deselected package ancient-greek-literature.
(Reading database ... 174755 files and directories currently installed.)
Unpacking ancient-greek-literature (from 
.../ancient-greek-literature_1.0-1_all.deb) ...
D000001: process_archive oldversionstatus=not installed
D000002: maintainer_script_new nonexistent preinst 
`/var/lib/dpkg/tmp.ci/preinst'
D000010: tarobject ti->Name=`.' Mode=755 owner=0.0 Type=53(d) ti->LinkName=`' 
namenode=`/.' flags=2 instead=`<none>'
D000100: setupvnamevbs main=`/.' tmp=`/..dpkg-tmp' new=`/..dpkg-new'
D000100: tarobject already exists
D000100: tarobject Directory exists
D000010: ensure_pathname_nonexisting `/..dpkg-new'
D000010: ensure_pathname_nonexisting `/..dpkg-tmp'
D000010: tarobject ti->Name=`./usr' Mode=755 owner=0.0 Type=53(d) 
ti->LinkName=`' namenode=`/usr' flags=2 instead=`<none>'
D000100: setupvnamevbs main=`/usr' tmp=`/usr.dpkg-tmp' new=`/usr.dpkg-new'
D000100: tarobject already exists
D000100: tarobject Directory exists
D000010: ensure_pathname_nonexisting `/usr.dpkg-new'
D000010: ensure_pathname_nonexisting `/usr.dpkg-tmp'
D000010: tarobject ti->Name=`./usr/bin' Mode=755 owner=0.0 Type=53(d) 
ti->LinkName=`' namenode=`/usr/bin' flags=2 instead=`<none>'
D000100: setupvnamevbs main=`/usr/bin' tmp=`/usr/bin.dpkg-tmp' 
new=`/usr/bin.dpkg-new'
D000100: tarobject already exists
D000100: tarobject Directory exists
D000010: ensure_pathname_nonexisting `/usr/bin.dpkg-new'
D000010: ensure_pathname_nonexisting `/usr/bin.dpkg-tmp'
D000010: tarobject ti->Name=`./usr/sbin' Mode=755 owner=0.0 Type=53(d) 
ti->LinkName=`' namenode=`/usr/sbin' flags=2 instead=`<none>'
D000100: setupvnamevbs main=`/usr/sbin' tmp=`/usr/sbin.dpkg-tmp' 
new=`/usr/sbin.dpkg-new'
D000100: tarobject already exists
D000100: tarobject Directory exists
D000010: ensure_pathname_nonexisting `/usr/sbin.dpkg-new'
D000010: ensure_pathname_nonexisting `/usr/sbin.dpkg-tmp'
D000010: tarobject ti->Name=`./usr/share' Mode=755 owner=0.0 Type=53(d) 
ti->LinkName=`' namenode=`/usr/share' flags=2 instead=`<none>'
D000100: setupvnamevbs main=`/usr/share' tmp=`/usr/share.dpkg-tmp' 
new=`/usr/share.dpkg-new'
D000100: tarobject already exists
D000100: tarobject Directory exists
D000010: ensure_pathname_nonexisting `/usr/share.dpkg-new'
D000010: ensure_pathname_nonexisting `/usr/share.dpkg-tmp'
D000010: tarobject ti->Name=`./usr/share/doc' Mode=755 owner=0.0 Type=53(d) 
ti->LinkName=`' namenode=`/usr/share/doc' flags=2 instead=`<none>'
D000100: setupvnamevbs main=`/usr/share/doc' tmp=`/usr/share/doc.dpkg-tmp' 
new=`/usr/share/doc.dpkg-new'
D000100: tarobject already exists
D000100: tarobject Directory exists
D000010: ensure_pathname_nonexisting `/usr/share/doc.dpkg-new'
D000010: ensure_pathname_nonexisting `/usr/share/doc.dpkg-tmp'
D000010: tarobject ti->Name=`./usr/share/doc/ancient-greek-literature' Mode=755 
owner=0.0 Type=53(d) ti->LinkName=`' 
namenode=`/usr/share/doc/ancient-greek-literature' flags=2 instead=`<none>'
D000100: setupvnamevbs main=`/usr/share/doc/ancient-greek-literature' 
tmp=`/usr/share/doc/ancient-greek-literature.dpkg-tmp' 
new=`/usr/share/doc/ancient-greek-literature.dpkg-new'
D000100: tarobject nonexistent
D000010: ensure_pathname_nonexisting 
`/usr/share/doc/ancient-greek-literature.dpkg-new'
D000010: ensure_pathname_nonexisting 
`/usr/share/doc/ancient-greek-literature.dpkg-tmp'
D000100: tarobject Directory creating
D000100: tarobject new - no backup
D000100: tarobject done and installed
D000010: tarobject ti->Name=`./usr/share/doc/ancient-greek-literature/texts' 
Mode=755 owner=0.0 Type=53(d) ti->LinkName=`' 
namenode=`/usr/share/doc/ancient-greek-literature/texts' flags=2 
instead=`<none>'
D000100: setupvnamevbs main=`/usr/share/doc/ancient-greek-literature/texts' 
tmp=`/usr/share/doc/ancient-greek-literature/texts.dpkg-tmp' 
new=`/usr/share/doc/ancient-greek-literature/texts.dpkg-new'
D000100: tarobject nonexistent
D000010: ensure_pathname_nonexisting 
`/usr/share/doc/ancient-greek-literature/texts.dpkg-new'
D000010: ensure_pathname_nonexisting 
`/usr/share/doc/ancient-greek-literature/texts.dpkg-tmp'
D000100: tarobject Directory creating
D000100: tarobject new - no backup
D000100: tarobject done and installed
D000010: tarobject 
ti->Name=`./usr/share/doc/ancient-greek-literature/texts/Αισχίνης' Mode=755 
owner=0.0 Type=53(d) ti->LinkName=`' 
namenode=`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης' flags=2 
instead=`<none>'
D000100: setupvnamevbs 
main=`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης' 
tmp=`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης.dpkg-tmp' 
new=`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης.dpkg-new'
D000100: tarobject nonexistent
D000010: ensure_pathname_nonexisting 
`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης.dpkg-new'
D000010: ensure_pathname_nonexisting 
`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης.dpkg-tmp'
D000100: tarobject Directory creating
D000100: tarobject new - no backup
D000100: tarobject done and installed
D000010: tarobject 
ti->Name=`./usr/share/doc/ancient-greek-literature/texts/Αισχίνης/κατά 
Τιμάρχου.odt' Mode=644 owner=0.0 Type=48(-) ti->LinkName=`' 
namenode=`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/κατά 
Τιμάρχου.odt' flags=2 instead=`<none>'
D000100: setupvnamevbs 
main=`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/κατά Τιμάρχου.odt' 
tmp=`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/κατά 
Τιμάρχου.odt.dpkg-tmp' 
new=`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/κατά 
Τιμάρχου.odt.dpkg-new'
D000100: tarobject nonexistent
D000010: ensure_pathname_nonexisting 
`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/κατά 
Τιμάρχου.odt.dpkg-new'
D000010: ensure_pathname_nonexisting 
`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/κατά 
Τιμάρχου.odt.dpkg-tmp'
D000100: tarobject NormalFile[01] open size=63753
D000100: tarobject new - no backup
D000100: tarobject done and installed
D000010: tarobject 
ti->Name=`./usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Επιστολαί.odt'
 Mode=644 owner=0.0 Type=48(-) ti->LinkName=`' 
namenode=`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Επιστολαί.odt' 
flags=2 instead=`<none>'
D000100: setupvnamevbs 
main=`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Επιστολαί.odt' 
tmp=`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Επιστολαί.odt.dpkg-tmp'
 
new=`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Επιστολαί.odt.dpkg-new'
D000100: tarobject nonexistent
D000010: ensure_pathname_nonexisting 
`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Επιστολαί.odt.dpkg-new'
D000010: ensure_pathname_nonexisting 
`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Επιστολαί.odt.dpkg-tmp'
D000100: tarobject NormalFile[01] open size=30921
D000100: tarobject new - no backup
D000100: tarobject done and installed
D000010: tarobject 
ti->Name=`./usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Κατά 
Κτησιφώντος.odt' Mode=644 owner=0.0 Type=48(-) ti->LinkName=`' 
namenode=`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Κατά 
Κτησιφώντος.odt' flags=2 instead=`<none>'
D000100: setupvnamevbs 
main=`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Κατά 
Κτησιφώντος.odt' 
tmp=`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Κατά 
Κτησιφώντος.odt.dpkg-tmp' 
new=`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Κατά 
Κτησιφώντος.odt.dpkg-new'
D000100: tarobject nonexistent
D000010: ensure_pathname_nonexisting 
`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Κατά 
Κτησιφώντος.odt.dpkg-new'
D000010: ensure_pathname_nonexisting 
`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Κατά 
Κτησιφώντος.odt.dpkg-tmp'
D000100: tarobject NormalFile[01] open size=79081
D000100: tarobject new - no backup
D000100: tarobject done and installed
D000010: tarobject 
ti->Name=`./usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Περί της 
παραπρεσβείας.odt' Mode=644 owner=0.0 Type=48(-) ti->LinkName=`' 
namenode=`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Περί της 
παραπρεσβείας.odt' flags=2 instead=`<none>'
D000100: setupvnamevbs 
main=`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Περί της 
παραπρεσβείας.odt' 
tmp=`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Περί της 
παραπρεσβείας.odt.dpkg-tmp' 
new=`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Περί της 
παραπρεσβείας.odt.dpkg-new'
D000100: tarobject nonexistent
D000010: ensure_pathname_nonexisting 
`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Περί της 
παραπρεσβείας.odt.dpkg-new'
D000010: ensure_pathname_nonexisting 
`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Περί της 
παραπρεσβείας.odt.dpkg-tmp'
D000100: tarobject NormalFile[01] open size=59944
dpkg: error processing 
/home/markos/Debian/ancient-greek-literature/ancient-greek-literature_1.0-1_all.deb
 (--install):
 failed to realloc for variable buffer: Cannot allocate memory
D000010: cu_installnew 
`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Περί της 
παραπρεσβείας.odt' flags=2
D000100: setupvnamevbs 
main=`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Περί της 
παραπρεσβείας.odt' 
tmp=`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Περί της 
παραπρεσβείας.odt.dpkg-tmp' 
new=`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Περί της 
παραπρεσβείας.odt.dpkg-new'
D000100: cu_installnew not restoring
D000100: unlinkorrmdir 
`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Περί της 
παραπρεσβείας.odt.dpkg-new' unlink OK
D000010: cu_installnew 
`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Κατά Κτησιφώντος.odt' 
flags=52
D000100: setupvnamevbs 
main=`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Κατά 
Κτησιφώντος.odt' 
tmp=`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Κατά 
Κτησιφώντος.odt.dpkg-tmp' 
new=`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Κατά 
Κτησιφώντος.odt.dpkg-new'
D000100: cu_installnew removing new file
D000100: unlinkorrmdir 
`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Κατά Κτησιφώντος.odt' 
unlink OK
D000100: unlinkorrmdir 
`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Κατά 
Κτησιφώντος.odt.dpkg-new' rmdir No such file or directory
D000010: cu_installnew 
`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Επιστολαί.odt' flags=52
D000100: setupvnamevbs 
main=`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Επιστολαί.odt' 
tmp=`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Επιστολαί.odt.dpkg-tmp'
 
new=`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Επιστολαί.odt.dpkg-new'
D000100: cu_installnew removing new file
D000100: unlinkorrmdir 
`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Επιστολαί.odt' unlink 
OK
D000100: unlinkorrmdir 
`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης/Επιστολαί.odt.dpkg-new'
 rmdir No such file or directory
D000010: cu_installnew 
`/usr/share/doc/ancient-greek-literature/texts/Αισχίνης/κατά Τιμάρχου.odt' 
flags=52
D000100: setupvnamevbs 
main=`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης/κατά 
Τιμάρχου.odt' tmp=`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης/κατά 
Τιμάρχου.odt.dpkg-tmp' 
new=`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης/κατά 
Τιμάρχου.odt.dpkg-new'
D000100: cu_installnew removing new file
D000100: unlinkorrmdir 
`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης/κατά Τιμάρχου.odt' 
unlink OK
D000100: unlinkorrmdir 
`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης/κατά 
Τιμάρχου.odt.dpkg-new' rmdir No such file or directory
D000010: cu_installnew `/usr/share/doc/ancient-greek-literature/texts/Αισχίνης' 
flags=52
D000100: setupvnamevbs 
main=`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης' 
tmp=`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης.dpkg-tmp' 
new=`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης.dpkg-new'
D000100: cu_installnew removing new file
D000100: unlinkorrmdir 
`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης' rmdir OK
D000100: unlinkorrmdir 
`//usr/share/doc/ancient-greek-literature/texts/Αισχίνης.dpkg-new' rmdir No 
such file or directory
D000010: cu_installnew `/usr/share/doc/ancient-greek-literature/texts' flags=52
D000100: setupvnamevbs main=`//usr/share/doc/ancient-greek-literature/texts' 
tmp=`//usr/share/doc/ancient-greek-literature/texts.dpkg-tmp' 
new=`//usr/share/doc/ancient-greek-literature/texts.dpkg-new'
D000100: cu_installnew removing new file
D000100: unlinkorrmdir `//usr/share/doc/ancient-greek-literature/texts' rmdir OK
D000100: unlinkorrmdir 
`//usr/share/doc/ancient-greek-literature/texts.dpkg-new' rmdir No such file or 
directory
D000010: cu_installnew `/usr/share/doc/ancient-greek-literature' flags=52
D000100: setupvnamevbs main=`//usr/share/doc/ancient-greek-literature' 
tmp=`//usr/share/doc/ancient-greek-literature.dpkg-tmp' 
new=`//usr/share/doc/ancient-greek-literature.dpkg-new'
D000100: cu_installnew removing new file
D000100: unlinkorrmdir `//usr/share/doc/ancient-greek-literature' rmdir OK
D000100: unlinkorrmdir `//usr/share/doc/ancient-greek-literature.dpkg-new' 
rmdir No such file or directory
dpkg-deb: subprocess paste killed by signal (Broken pipe)
D000002: maintainer_script_new nonexistent postrm `/var/lib/dpkg/tmp.ci/postrm'
D000010: ensure_pathname_nonexisting `/var/lib/dpkg/tmp.ci'
dpkg: error while cleaning up:
 fork failed: Cannot allocate memory
D000010: ensure_pathname_nonexisting `/var/lib/dpkg/reassemble.deb'
Errors were encountered while processing:
 
/home/markos/Debian/ancient-greek-literature/ancient-greek-literature_1.0-1_all.deb
Processing was halted because there were too many errors.

Reply via email to