Re: non-existent rpm-dir directory causes apt to dump core

Panu Matilainen <[email protected]> Sat, 18 Sep 2004 13:38:06 +0300 (EEST)
Newsgroups gmane.linux.conectiva.apt-rpm
Message-ID <[email protected]>
On Fri, 17 Sep 2004, Jeff Pitman wrote:

> hi:
> 
> using apt-0.5.15cnc6-51 (rh73, rh9, fc1, and fc2) from atrpms, if you 
> configure an rpm-dir in sources.list that doesn't exist on the local 
> disk, then apt will core dump.  Even more fun, it will say "E: The 
> package cache file is corrupted" for apt-cache operations.  Running 
> "apt-get check" in gdb gives:
[snip]
> 
> The "update" also cores in the destructor of the RPMDirHandler.  Maybe 
> something ends up NULL on the way in.  Like it's assuming a transaction 
> set is open when it never really did because the directory didn't exist 
> or something funky.  I don't have the code, so I don't know.
> 
> The non-code solution is to remove the rpm-dir.
> 
> Oh, and, if you've fixed it .. thanks!  Just couldn't find why on 
> Google, so I decided to post this for mass consumption... 

Known issue but fixed in the svn tree post 0.5.15cnc6. Thanks for
reporting anyway.

	- Panu -