[pacman-dev] [PATCH] libalpm: avoid double free() in trans_free()

VMiklos vmiklos at frugalware.org
Mon Jan 2 09:25:11 EST 2006


On Mon, Jan 02, 2006 at 08:47:29AM +0100, Aurelien Foret <aurelien at archlinux.org> wrote:
> I don't say FREELISTPKGS should be always used when dealing with 
> trans->packages.
> 
> But, the point was to discuss your patch which basically calls 
> FREELISTPTR instead of FREELISTPKGS from the trans_free function.
> In this specific function, the latter _must_ be used (obviously if we're 
> not in the case of a SYNC transaction).

okay, unfortunatelly i was speaking not about trans_free(). you have
reason :)

> Can you please confirm that the bug we are discussing is occurring with 
> the code from the official ArchLinux CVS tree?

vmiklos at vmobile:~/cvs/pacman-lib/src/pacman$ sudo ./pacman.static -Rs k9copy
checking dependencies... done.

Targets: k9copy toolame

Do you want to remove these packages? [Y/n]

removing k9copy... done.
removing toolame... done.
*** glibc detected *** double free or corruption (!prev): 0x0824f610 ***

udv / greetings,
VMiklos

-- 
Developer of Frugalware Linux, to make things frugal - http://frugalware.org




More information about the pacman-dev mailing list