[pacman-dev] [PATCH] libalpm: don't FREELIST() deps in sync_prepare on error
hi http://frugalware.org/~vmiklos/patches/libpacman-proposed/sync_prepare_doubl... as the data pointer is passed back to the frontend on error, the frontend will alpm_list_free() deps in other words: a double free() fix old: $ sudo pacman -Syu :: Synchronizing package databases... frugalware-current is up to date extra-current is up to date :: Starting local database upgrade... :: Replace nfsidmap with frugalware-current/libnfsidmap? [Y/n] :: Replace trm with frugalware-current/libtunepimp? [Y/n] resolving dependencies... warning: possible dependency cycle detected done. looking for inter-conflicts... :: net-tools conflicts with hotplug. Remove hotplug? [Y/n] :: udev conflicts with pcmcia-cs. Remove pcmcia-cs? [Y/n] done. [debug] here i am: nfsidmap error: failed to prepare transaction (could not satisfy dependencies) :: : requires PO *** glibc detected *** double free or corruption (out): 0x084f8a68 *** new: error: failed to prepare transaction (could not satisfy dependencies) :: nfsidmap: requires nfs-utils udv / greetings, VMiklos -- Developer of Frugalware Linux, to make things frugal - http://frugalware.org
VMiklos wrote:
http://frugalware.org/~vmiklos/patches/libpacman-proposed/sync_prepare_doubl...
as the data pointer is passed back to the frontend on error, the frontend will alpm_list_free() deps in other words: a double free() fix
I've reworked the code checking deps for packages elected for removal during sync transactions, and the issue is now avoided. Thanks for the heads up. -- Aurelien
participants (2)
-
Aurelien Foret
-
VMiklos