Bug 189107
Summary: | RFE: rpm http transport does not support redirects. | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ville Skyttä <scop> | ||||
Component: | rpm | Assignee: | Panu Matilainen <pmatilai> | ||||
Status: | CLOSED UPSTREAM | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | rawhide | CC: | loganjerry, redhat-bugzilla | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-09-12 11:26:00 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Ville Skyttä
2006-04-16 09:53:11 UTC
Created attachment 127795 [details]
gdb backtrace from crash
The URL is returning 302, redirects not handled by rpm. *** Bug 190010 has been marked as a duplicate of this bug. *** *** Bug 152285 has been marked as a duplicate of this bug. *** User pnasrat's account has been closed Bug 190010 has some information that should be recorded here. For one thing, the bug happens when the remote repository does not respond. To trigger the bug, therefore, it is sufficient to do something like this: rpm -ivh http://rpm.nosuchorg.org/thereisnosuchpackage.rpm Here is what happens when that command is issued under valgrind (there is more output, but this is the important part for this bug): ==17800== Invalid free() / delete / delete[] ==17800== at 0x4905208: free (vg_replace_malloc.c:235) ==17800== by 0x385FB3124B: XurlFree (in /usr/lib64/librpmio-4.4.so) ==17800== by 0x385FB31E80: urlFreeCache (in /usr/lib64/librpmio-4.4.so) ==17800== by 0x4040DB: ??? (rpmqv.c:886) ==17800== by 0x33AC91D083: __libc_start_main (in /lib64/libc-2.4.so) ==17800== Address 0x8525F08 is 0 bytes inside a block of size 176 free'd ==17800== at 0x4905208: free (vg_replace_malloc.c:235) ==17800== by 0x385FB3124B: XurlFree (in /usr/lib64/librpmio-4.4.so) ==17800== by 0x385FB1D1B9: (within /usr/lib64/librpmio-4.4.so) ==17800== by 0x385FB1D524: davOpen (in /usr/lib64/librpmio-4.4.so) ==17800== by 0x385FB2697D: (within /usr/lib64/librpmio-4.4.so) ==17800== by 0x385FB26EA0: Fopen (in /usr/lib64/librpmio-4.4.so) ==17800== by 0x385FB30C65: urlGetFile (in /usr/lib64/librpmio-4.4.so) ==17800== by 0x35A9637B30: rpmInstall (in /usr/lib64/librpm-4.4.so) ==17800== by 0x404927: ??? (rpmqv.c:790) ==17800== by 0x33AC91D083: __libc_start_main (in /lib64/libc-2.4.so) which implicates the urlFree in davInit (rpmio/rpmdav.c) as the place where the first free() took place. Reassigning to owner after bugzilla made a mess, sorry about the noise... Moving to devel, FC5 is EOL. Rpm crashing on failure with neon transport is essentially the same in here and bug 190010, supporting redirects (which is the request here) is a different issue. The crash has been fixed some time ago, additionally upstream rpm.org now supports redirects if the used helper does (curl etc do): $ ./rpmq -qpi http://dag.wieers.com/packages/mplayerplug-in/mozilla-mplayer-0.95-1.rhel2.1.dag.i386.rpm warning: http://dag.wieers.com/packages/mplayerplug-in/mozilla-mplayer-0.95-1.rhel2.1.dag.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6 Name : mozilla-mplayer Relocations: /usr Version : 0.95 Vendor: Dag Apt Repository, http://dag.wieers.com/apt/ Release : 1.rhel2.1.dag Build Date: Sun 01 Feb 2004 12:40:08 PM EET Install Date: (not installed) Build Host: localhost Group : Applications/Internet Source RPM: mozilla-mplayer-0.95-1.rhel2.1.dag.src.rpm Size : 198465 License: GPL Signature : DSA/SHA1, Tue 03 Feb 2004 12:12:31 PM EET, Key ID a20e52146b8d79e6 Packager : Dag Wieers <dag> URL : http://mplayerplug-in.sourceforge.net/ Summary : MPlayer plugin for Mozilla. Description : This package contains a plugin for the Mozilla browser that makes it possible to use the MPlayer movie player in Mozilla. |