[Bug 332917] New: Crash in libcurl when checking metadata
https://bugzilla.novell.com/show_bug.cgi?id=332917#c332105 Summary: Crash in libcurl when checking metadata Product: openSUSE 10.3 Version: Final Platform: x86-64 OS/Version: openSUSE 10.3 Status: NEW Severity: Critical Priority: P5 - None Component: libzypp AssignedTo: dmacvicar@novell.com ReportedBy: eskil@letterboxes.org QAContact: dmacvicar@novell.com Found By: --- Probably related to #332105, but since the backtrace is somewhat different I'm creating a new report. Crashes zypper and the package manager in yast every time. # rpm -q zypper libzypp curl zypper-0.8.23-7.x86_64 libzypp-3.26.2-2.x86_64 curl-7.16.4-15.x86_64 # zypper update *** glibc detected *** zypper: free(): invalid pointer: 0x00002b9d9926b192 *** ======= Backtrace: ========= /lib64/libc.so.6[0x2b9d97b6021d] /lib64/libc.so.6(cfree+0x76)[0x2b9d97b61f76] /usr/lib64/libcurl.so.4[0x2b9d9924bacf] /usr/lib64/libcurl.so.4[0x2b9d9924efad] /usr/lib64/libcurl.so.4[0x2b9d9924f47e] /usr/lib64/libcurl.so.4[0x2b9d992509ce] /usr/lib64/libcurl.so.4[0x2b9d9925334f] /usr/lib64/libcurl.so.4[0x2b9d99260206] /usr/lib64/libzypp.so.324(_ZNK4zypp5media9MediaCurl13doGetFileCopyERKNS_10filesystem8PathnameES5_RNS_8callback10SendReportINS0_22DownloadProgressReportEEE+0xf70)[0x2b9d9696c7b0] /usr/lib64/libzypp.so.324(_ZNK4zypp5media9MediaCurl11getFileCopyERKNS_10filesystem8PathnameES5_+0x178)[0x2b9d9696a728] /usr/lib64/libzypp.so.324(_ZNK4zypp5media9MediaCurl7getFileERKNS_10filesystem8PathnameE+0xf3)[0x2b9d96968753] /usr/lib64/libzypp.so.324(_ZNK4zypp5media12MediaHandler11provideFileENS_10filesystem8PathnameE+0x173)[0x2b9d96947433] /usr/lib64/libzypp.so.324(_ZNK4zypp5media11MediaAccess11provideFileERKNS_10filesystem8PathnameEbb+0x76)[0x2b9d9693f646] /usr/lib64/libzypp.so.324(_ZNK4zypp5media12MediaManager11provideFileEjRKNS_10filesystem8PathnameEbb+0x66)[0x2b9d96986356] /usr/lib64/libzypp.so.324(_ZN4zypp14MediaSetAccess19provideFileInternalERKNS_10filesystem8PathnameEjbb+0x19c)[0x2b9d96b75a4c] /usr/lib64/libzypp.so.324(_ZN4zypp14MediaSetAccess11provideFileERKNS_10filesystem8PathnameEj+0xf)[0x2b9d96b76baf] /usr/lib64/libzypp.so.324(_ZN4zypp4repo8susetags10Downloader6statusERNS_14MediaSetAccessE+0xb2)[0x2b9d969e3e12] /usr/lib64/libzypp.so.324(_ZN4zypp11RepoManager24checkIfToRefreshMetadataERKNS_8RepoInfoERKNS_3UrlENS0_24RawMetadataRefreshPolicyE+0x694)[0x2b9d96b91134] zypper[0x4503c9] zypper[0x4528f9] zypper(_Z11one_commandiPPc+0x575d)[0x42e9ad] zypper(_Z16safe_one_commandiPPc+0x20)[0x42eec0] zypper(main+0x11f)[0x42ff3f] /lib64/libc.so.6(__libc_start_main+0xf4)[0x2b9d97b0fb54] zypper(__gxx_personality_v0+0x319)[0x426139] -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=332917#c1
--- Comment #1 from Eskil Bylund
https://bugzilla.novell.com/show_bug.cgi?id=332917
Duncan Mac-Vicar
https://bugzilla.novell.com/show_bug.cgi?id=332917#c2
--- Comment #2 from Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=332917#c3
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=332917#c4
--- Comment #4 from Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=332917#c5
--- Comment #5 from Eskil Bylund
https://bugzilla.novell.com/show_bug.cgi?id=332917#c6
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=332917#c7
--- Comment #7 from Michal Marek
Sorry, I wasn't able to reproduce it by the time I got your first reply.
I feared that... Anyway, if you or someone else is able to reproduce it again, could they also try the 7.17.0 version from factory (libcurl4-7.17.0-*.rpm)? Just in case there's a bug that was already fixed upstream. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=332917#c8
Eskil Bylund
https://bugzilla.novell.com/show_bug.cgi?id=332917#c9
--- Comment #9 from Eskil Bylund
https://bugzilla.novell.com/show_bug.cgi?id=332917#c10
--- Comment #10 from Michal Marek
I couldn't find the package you mentioned but I updated the 10.3 package to 7.17.0 and the crash is still there.
The rpm package was not yet synced out, sorry. Thanks for testing 7.17.0. Just for sure, did you overwrite /usr/lib64/libcurl.so.4* (ie. run ./configure --prefix=/usr --libdir=/usr/lib64)? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=332917#c11
--- Comment #11 from Eskil Bylund
https://bugzilla.novell.com/show_bug.cgi?id=332917#c12
Michal Marek
GET /pub/linux/opensuse/distribution/10.3/repo/debug/content HTTP/1.1 User-Agent: curl/7.17.0 (x86_64-suse-linux-gnu) libcurl/7.17.0 OpenSSL/0.9.8e zlib/1.2.3 libidn/1.0 Host: ftp.uninett.no Accept: */*
< HTTP/1.1 302 Found < Date: Fri, 12 Oct 2007 11:49:37 GMT < Server: Apache/1.3.37 (Unix) PHP/4.4.4 mod_perl/1.29 < Location: ftp://ftp.uninett.no/pub/linux/opensuse/distribution/10.3/repo/debug/content < Transfer-Encoding: chunked < Content-Type: text/html; charset=iso-8859-1 < * Ignoring the response-body * Connection #0 to host ftp.uninett.no left intact * Issue another request to this URL: 'ftp://ftp.uninett.no/pub/linux/opensuse/distribution/10.3/repo/debug/content' * About to connect() to ftp.uninett.no port 21 (#1) * Trying 158.36.2.10... connected * Connected to ftp.uninett.no (158.36.2.10) port 21 (#1) *** glibc detected *** curl: free(): invalid pointer: 0x00002b01a33115f2 *** .. The strace helped. I also have a suspect why it happens. Stay tuned. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=332917#c13
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=332917#c14
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=332917#c15
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=332917#c16
--- Comment #16 from Peter Poeml
https://bugzilla.novell.com/show_bug.cgi?id=332917#c17
--- Comment #17 from Michal Marek
There is one mirror (ftp.is.co.za) which is ftp-only (i.e., we immediately redirect to ftp://ftp.is.co.za/mirror/opensuse/opensuse/ ourselves. (They have already set up an Apache, I am in contact with them about that.) Should I disable redirection to them as well?
Yes, please do. It's the http -> ftp redirect that libcurl can't handle on 10.3
Did someone contact uninett.no? If not, I'll talk to them.
Not me. But their setup is perfectly ok, just our tool can't handle it :-/ (In reply to comment #15 from Michal Marek)
As for the bug itself: I've a workaround for it, discussing a proper fix with upstream [*]. I'm building testing packages in the buildservice
Sorry, that didn't work at all. Unfortunately the patch from upstream didn't help either. Stay tuned... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=332917#c18
--- Comment #18 from Peter Poeml
https://bugzilla.novell.com/show_bug.cgi?id=332917#c19
--- Comment #19 from Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=332917#c20
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=332917#c21
Anja Stock
https://bugzilla.novell.com/show_bug.cgi?id=332917#c24
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=332917#c25
--- Comment #25 from Peter Poeml
https://bugzilla.novell.com/show_bug.cgi?id=332917#c26
--- Comment #26 from Anja Stock
https://bugzilla.novell.com/show_bug.cgi?id=332917#c27
Ladislav Slezak
https://bugzilla.novell.com/show_bug.cgi?id=332917#c28
Ladislav Slezak
https://bugzilla.novell.com/show_bug.cgi?id=332917
User schwab@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=332917#c29
Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=332917
User schwab@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=332917#c30
--- Comment #30 from Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=332917
User mmarek@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=332917#c31
--- Comment #31 from Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=332917
User hmuelle@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=332917#c34
Harald Mueller-Ney
https://bugzilla.novell.com/show_bug.cgi?id=332917
User mmarek@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=332917#c35
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=332917
User meissner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=332917#c36
--- Comment #36 from Marcus Meissner
participants (1)
-
bugzilla_noreply@novell.com