Your message dated Sat, 3 May 2008 01:25:57 +0300
with message-id <[EMAIL PROTECTED]>
and subject line Re: Bug#300502: If postrm of package removes the packge being 
installed a 'free(): invalid pointer' error occurs
has caused the Debian Bug report #300502,
regarding If postrm of package removes the packge being installed a 'free(): 
invalid pointer' error occurs
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
300502: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=300502
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: dpkg
Version: 1.10.27

The attached package (and source) help demonstrate this issue. Just install the package, and then mount a tmpfs in /tmp called 't'. Then, place this package in that tmpfs and try to install it again. As far as I know this doesn't affect any 'real' packages.

I was unable to reproduce the problem if the umount happened in the preinst, only in the postrm of the package being upgraded.

Ie:

cp testcase_0.1-1_i386.deb /tmp
cd /tmp
dpkg -i testcase_0.1-1_i386.deb
mkdir t
mount -t tmpfs none t
cp testcase_0.1-1_i386.deb t
dpkg -i t/testcase_0.1-1_i386.deb

Transcript:

runabout:/tmp# cp ~dieman/debian/test-case/testcase*deb .
runabout:/tmp# dpkg -i testcase_0.1-1_i386.deb
(Reading database ... 71012 files and directories currently installed.)
Unpacking testcase (from testcase_0.1-1_i386.deb) ...
Setting up testcase (0.1-1) ...
runabout:/tmp# mount -t tmpfs none t
runabout:/tmp# cp testcase_0.1-1_i386.deb t
runabout:/tmp# dpkg -i t/testcase_0.1-1_i386.deb
(Reading database ... 71016 files and directories currently installed.)
Preparing to replace testcase 0.1-1 (using t/testcase_0.1-1_i386.deb) ...
Unpacking replacement testcase ...
dpkg-deb: failed to read archive `t/testcase_0.1-1_i386.deb': No such file or directory
free(): invalid pointer 0xb7f1e4c4!
dpkg: error processing t/testcase_0.1-1_i386.deb (--install):
subprocess dpkg-deb --fsys-tarfile returned error exit status 2
Errors were encountered while processing:
t/testcase_0.1-1_i386.deb


--
Scott Dier <[EMAIL PROTECTED]> KC0OBS  http://www.ringworld.org/

Attachment: testcase_0.1-1.diff.gz
Description: GNU Zip compressed data

Format: 1.0
Source: testcase
Version: 0.1-1
Binary: testcase
Maintainer: Scott Dier <[EMAIL PROTECTED]>
Architecture: any
Standards-Version: 3.6.1
Build-Depends: debhelper (>= 4.0.0)
Files: 
 e4b3b5e7bc254bd8ab50a571b7b8f605 1720 testcase_0.1-1.tar.gz

Attachment: testcase_0.1-1.tar.gz
Description: GNU Zip compressed data

Attachment: testcase_0.1-1_i386.deb
Description: application/debian-package


--- End Message ---
--- Begin Message ---
Package: dpkg
Version: 1.14.17

On Sat, 2005-03-19 at 22:56:41 -0600, Scott Dier wrote:
> Package: dpkg
> Version: 1.10.27
>
> The attached package (and source) help demonstrate this issue.  Just  
> install the package, and then mount a tmpfs in /tmp called 't'.  Then,  
> place this package in that tmpfs and try to install it again.  As far as  
> I know this doesn't affect any 'real' packages.

This was fixed in 1.14.17, follows the relevant changelog entry:

dpkg (1.14.17) experimental; urgency=low

  [ Guillem Jover ]
  * Fix crash when a .deb file becomes unreadable while dpkg is starting.
    Thanks to Ian Jackson. Closes: #255882

regards,
guillem


--- End Message ---

Reply via email to