Bug 332105

Summary: zypper crash in response of curl that can't do a redirect more that 3 times
Product: [openSUSE] openSUSE 10.3 Reporter: Samuele Catuzzi <samuele_catuzzi>
Component: libzyppAssignee: Klaus Kämpf <kkaempf>
Status: RESOLVED DUPLICATE QA Contact: Klaus Kämpf <kkaempf>
Severity: Blocker    
Priority: P5 - None CC: mmarek
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 10.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Samuele Catuzzi 2007-10-09 10:17:55 UTC
# zypper install pidgin

La sorgente di installazione 'Main Repository (OSS)' non è valida.
Curl error for 'http://download.opensuse.org/repositories/openSUSE:10.3/standard/content':
Error code:
Error message: Maximum (3) redirects followed
Per favore, verificare se gli URL definiti per questa sorgente di installazione puntano ad una sorgente di installazione valida.
Esclusione della sorgente di installazione 'Main Repository (OSS)' a causa dell'errore precedente.
*** glibc detected *** zypper: free(): invalid pointer: 0x00002af251cb6192 ***
======= Backtrace: =========
/lib64/libc.so.6[0x2af2505ac21d]
/lib64/libc.so.6(cfree+0x76)[0x2af2505adf76]
/usr/lib64/libcurl.so.4[0x2af251c96acf]
/usr/lib64/libcurl.so.4[0x2af251c99fad]
/usr/lib64/libcurl.so.4[0x2af251c9a47e]
/usr/lib64/libcurl.so.4[0x2af251c9b9ce]
/usr/lib64/libcurl.so.4[0x2af251c9e34f]
/usr/lib64/libcurl.so.4[0x2af251cab206]
/usr/lib64/libzypp.so.324(_ZNK4zypp5media9MediaCurl18doGetDoesFileExistERKNS_10filesystem8PathnameE+0x867)[0x2af24f3c0b37]
/usr/lib64/libzypp.so.324(_ZNK4zypp5media9MediaCurl16getDoesFileExistERKNS_10filesystem8PathnameE+0x11b)[0x2af24f3b57eb]
/usr/lib64/libzypp.so.324(_ZNK4zypp5media12MediaHandler13doesFileExistERKNS_10filesystem8PathnameE+0x173)[0x2af24f393723]
/usr/lib64/libzypp.so.324(_ZNK4zypp5media11MediaAccess13doesFileExistERKNS_10filesystem8PathnameE+0x36)[0x2af24f38c396]
/usr/lib64/libzypp.so.324(_ZNK4zypp5media12MediaManager13doesFileExistEjRKNS_10filesystem8PathnameE+0x4e)[0x2af24f3d1d7e]
/usr/lib64/libzypp.so.324(_ZN4zypp14MediaSetAccess13doesFileExistERKNS_10filesystem8PathnameEj+0x1be)[0x2af24f5c2d9e]
/usr/lib64/libzypp.so.324(_ZNK4zypp11RepoManager5probeERKNS_3UrlE+0x265)[0x2af24f5d6de5]
/usr/lib64/libzypp.so.324(_ZN4zypp11RepoManager24checkIfToRefreshMetadataERKNS_8RepoInfoERKNS_3UrlENS0_24RawMetadataRefreshPolicyE+0xbb)[0x2af24f5dcb5b]
zypper[0x4503c9]
zypper[0x4528f9]
zypper(_Z11one_commandiPPc+0x4867)[0x42dab7]
zypper(_Z16safe_one_commandiPPc+0x20)[0x42eec0]
zypper(main+0x11f)[0x42ff3f]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x2af25055bb54]
zypper(__gxx_personality_v0+0x319)[0x426139]
======= Memory map: ========
00400000-004ad000 r-xp 00000000 08:02 1280470                            /usr/bin/zypper
006ac000-006af000 rw-p 000ac000 08:02 1280470                            /usr/bin/zypper
006af000-007df000 rw-p 006af000 00:00 0                                  [heap]
40000000-40001000 ---p 40000000 00:00 0
40001000-40801000 rw-p 40001000 00:00 0
40801000-40802000 ---p 40801000 00:00 0
40802000-41002000 rw-p 40802000 00:00 0
2aaaac000000-2aaaac021000 rw-p 2aaaac000000 00:00 0
2aaaac021000-2aaab0000000 ---p 2aaaac021000 00:00 0
2af24ef58000-2af24ef74000 r-xp 00000000 08:02 181211                     /lib64/ld-2.6.1.so
2af24ef74000-2af24ef75000 rw-p 2af24ef74000 00:00 0
2af24ef75000-2af24ef76000 r--p 00000000 08:02 1342259                    /usr/lib/locale/it_IT.utf8/LC_IDENTIFICATION
2af24ef76000-2af24ef7d000 r--s 00000000 08:02 1346316                    /usr/lib64/gconv/gconv-modules.cache
2af24ef7d000-2af24ef7e000 r--p 00000000 08:02 1344142                    /usr/lib/locale/it_IT.utf8/LC_MEASUREMENT
2af24ef7e000-2af24ef7f000 r--p 00000000 08:02 1344017                    /usr/lib/locale/it_IT.utf8/LC_TELEPHONE
2af24ef7f000-2af24ef80000 r--p 00000000 08:02 1344018                    /usr/lib/locale/it_IT.utf8/LC_ADDRESS
2af24ef80000-2af24ef81000 r--p 00000000 08:02 1344101                    /usr/lib/locale/it_IT.utf8/LC_NAME
2af24ef81000-2af24ef82000 r--p 00000000 08:02 1344138                    /usr/lib/locale/it_IT.utf8/LC_PAPER
2af24ef82000-2af24ef83000 r--p 00000000 08:02 1344103                    /usr/lib/locale/it_IT.utf8/LC_MESSAGES/SYS_LC_MESSAGES
2af24ef83000-2af24ef84000 r--p 00000000 08:02 1344102                    /usr/lib/locale/it_IT.utf8/LC_MONETARY
2af24ef91000-2af24ef92000 rw-p 2af24ef91000 00:00 0
2af24ef92000-2af24f072000 r--p 00000000 08:02 1344144                    /usr/lib/locale/it_IT.utf8/LC_COLLATE
2af24f072000-2af24f073000 r--p 00000000 08:02 1342261                    /usr/lib/locale/it_IT.utf8/LC_TIME
2af24f073000-2af24f074000 r--p 00000000 08:02 1344100                    /usr/lib/locale/it_IT.utf8/LC_NUMERIC
2af24f074000-2af24f0b3000 r--p 00000000 08:02 1344143                    /usr/lib/locale/it_IT.utf8/LC_CTYPE
2af24f0b3000-2af24f0b4000 rw-p 2af24f0b3000 00:00 0
2af24f0b4000-2af24f0c0000 r--p 00000000 08:02 1249002                    /usr/share/locale/it/LC_MESSAGES/zypper.mo
2afAbortito
Comment 1 Michal Marek 2007-10-09 12:19:04 UTC
Is it reproducible? Could you install libzypp-debuginfo, zypper-debuginfo and curl-debuginfo and run zypper in gdb?

$ gdb /usr/bin/zypper
(gdb) r install pidgin
(gdb) bt full
Comment 2 Samuele Catuzzi 2007-10-09 13:23:49 UTC
sorry but now there is no more error in redirect from 'Main Repository (OSS)' and thus I can't reproduce it.
Comment 3 Michal Marek 2007-10-11 16:29:32 UTC
Bug 332917 could be the same issue (*), at least it contains a gdb backtrace. I'll mark this one as a dup, please if you're able to reproduce, try to get the traces.

(*) If it turns out that these are two different issues, we can always reopen this one.

*** This bug has been marked as a duplicate of bug 332917 ***