curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: reproducible, but limited, SEGFAULTS after upgrade curl/libcurl 7.66 -> 7.67. curl issue, or not?

From: PGNet Dev via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 13 Nov 2019 13:54:10 -0800

> might help. I'll take a look with that enabled here in a bit.

With that increased verbosity ...

ZYPP_MEDIA_CURL_DEBUG=2 zypper ref OS15-oss

journalctl -f

        Nov 13 13:36:49 vm013 kernel: traps: zypper[3470] general protection fault ip:7fdd10cec910 sp:7ffc76592bf0 error:0 in libcurl.so.4.6.0[7fdd10caf000+88000]
        Nov 13 13:36:49 vm013 systemd[1]: Started Process Core Dump (PID 3545/UID 0).
        Nov 13 13:36:50 vm013 systemd-coredump[3546]: Process 3470 (zypper) of user 0 dumped core.

                Stack trace of thread 3470:
                #0 0x00007fdd10cec910 n/a (libcurl.so.4)
                #1 0x00007fdd10cecb09 n/a (libcurl.so.4)
                #2 0x00007fdd10ce72c8 curl_multi_perform (libcurl.so.4)
                #3 0x00007fdd1283b4c8 _ZN4zypp5media17multifetchrequest3runERSt6vectorINS_3UrlESaIS3_EE (libzypp.so.1712)
                #4 0x00007fdd1283d7f8 _ZNK4zypp5media14MediaMultiCurl10multifetchERKNS_10filesystem8PathnameEP8_IO_FILEPSt6vectorINS_3UrlESaIS9_EEPNS_8callback10SendReportINS0_22DownloadProgressReportEEEPNS0_14MediaBlockListEl (libzypp.so.1712)
                #5 0x00007fdd1283ebe8 _ZNK4zypp5media14MediaMultiCurl13doGetFileCopyERKNS_10filesystem8PathnameES5_RNS_8callback10SendReportINS0_22DownloadProgressReportEEERKNS_9ByteCountENS_4base5FlagsINS0_9MediaCurl13RequestOptionEEE (libzypp.so.1712)
                #6 0x00007fdd12834704 _ZNK4zypp5media9MediaCurl11getFileCopyERKNS_10filesystem8PathnameES5_RKNS_9ByteCountE (libzypp.so.1712)
                #7 0x00007fdd12827920 _ZNK4zypp5media9MediaCurl7getFileERKNS_10filesystem8PathnameERKNS_9ByteCountE (libzypp.so.1712)
                #8 0x00007fdd128013cd _ZNK4zypp5media12MediaHandler11provideFileENS_10filesystem8PathnameERKNS_9ByteCountE (libzypp.so.1712)
                #9 0x00007fdd127fb13a _ZNK4zypp5media11MediaAccess11provideFileERKNS_10filesystem8PathnameERKNS_9ByteCountE (libzypp.so.1712)
                #10 0x00007fdd129ca3f4 n/a (libzypp.so.1712)
                #11 0x00007fdd129c6b51 _ZN4zypp14MediaSetAccess7provideEN5boost8functionIFvjRKNS_10filesystem8PathnameEEEERKNS_15OnMediaLocationENS_4base5FlagsINS0_17ProvideFileOptionEEES6_ (libzypp.so.1712)
                #12 0x00007fdd129c7e2f _ZN4zypp14MediaSetAccess11provideFileERKNS_15OnMediaLocationENS_4base5FlagsINS0_17ProvideFileOptionEEERKNS_10filesystem8PathnameE (libzypp.so.1712)
                #13 0x00007fdd12998073 _ZN4zypp7Fetcher4Impl13provideToDestERNS_14MediaSetAccessERKNS_10filesystem8PathnameERKN5boost10shared_ptrINS_10FetcherJobEEE (libzypp.so.1712)
                #14 0x00007fdd12998d54 _ZN4zypp7Fetcher4Impl5startERKNS_10filesystem8PathnameERNS_14MediaSetAccessERKN5boost8functionIFbRKNS_12ProgressDataEEEE (libzypp.so.1712)
                #15 0x00007fdd1299a3d3 _ZN4zypp7Fetcher5startERKNS_10filesystem8PathnameERNS_14MediaSetAccessERKN5boost8functionIFbRKNS_12ProgressDataEEEE (libzypp.so.1712)
                #16 0x00007fdd128b38d2 _ZN4zypp4repo3yum10Downloader8downloadERNS_14MediaSetAccessERKNS_10filesystem8PathnameERKN5boost8functionIFbRKNS_12ProgressDataEEEE (libzypp.so.1712)
                #17 0x00007fdd12a28857 _ZN4zypp11RepoManager4Impl15refreshMetadataERKNS_8RepoInfoENS0_24RawMetadataRefreshPolicyERKN5boost8functionIFbRKNS_12ProgressDataEEEE (libzypp.so.1712)
                #18 0x00007fdd12a29551 _ZN4zypp11RepoManager15refreshMetadataERKNS_8RepoInfoENS0_24RawMetadataRefreshPolicyERKN5boost8functionIFbRKNS_12ProgressDataEEEE (libzypp.so.1712)
                #19 0x000055ddc52780c1 _Z20refresh_raw_metadataR6ZypperRKN4zypp8RepoInfoEb (zypper)
                #20 0x000055ddc52fba44 _ZN14RefreshRepoCmd17refreshRepositoryER6ZypperRKN4zypp8RepoInfoENS2_4base5FlagsINS_16RefreshFlagsBitsEEE (zypper)
                #21 0x000055ddc52fc888 _ZN14RefreshRepoCmd19refreshRepositoriesER6ZypperN4zypp4base5FlagsINS_16RefreshFlagsBitsEEESt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISD_EE (zypper)
                #22 0x000055ddc52fe6db _ZN14RefreshRepoCmd7executeER6ZypperRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EE (zypper)
                #23 0x000055ddc52aa142 _ZN17ZypperBaseCommand3runER6Zypper (zypper)
                #24 0x000055ddc5249c10 _ZN6Zypper9doCommandEiPPci (zypper)
                #25 0x000055ddc5223f59 _ZN6Zypper4mainEiPPc (zypper)
                #26 0x000055ddc5223529 main (zypper)
                #27 0x00007fdd1153ff8a __libc_start_main (libc.so.6)
                #28 0x000055ddc522666a _start (zypper)

tail -v /var/log/zypper.log

        full ==> https://paste.fedoraproject.org/paste/PqxtCcNo7UJcG2CmQuteOQ

        ...
        2019-11-13 13:36:49 <1> vm013(3470) [zypp++] MediaCurl.cc(log_curl):83 * TCP_NODELAY set
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 Error: signal 11
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [hd]: (-3) /usr/lib64/libzypp.so.1712 : zypp::dumpBacktrace(std::ostream&)+0x39 [0x7fdd12ab9229]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [hd]: (-2) /usr/lib64/libzypp.so.1712 : +0x3984cb [0x7fdd12a724cb]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [hd]: (-1) /lib64/libc.so.6 : +0x361e0 [0x7fdd115551e0]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 vvvvvvvvvv----------------------------------------
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (0) /usr/lib64/libcurl.so.4 : +0x3d910 [0x7fdd10cec910]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (1) /usr/lib64/libcurl.so.4 : +0x3db09 [0x7fdd10cecb09]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (2) /usr/lib64/libcurl.so.4 : curl_multi_perform+0x148 [0x7fdd10ce72c8]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (3) /usr/lib64/libzypp.so.1712 : zypp::media::multifetchrequest::run(std::vector<zypp::Url, std::allocator<zypp::Url> >&)+0x148 [0x7fdd1283b4c8]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (4) /usr/lib64/libzypp.so.1712 : zypp::media::MediaMultiCurl::multifetch(zypp::filesystem::Pathname const&, _IO_FILE*, std::vector<zypp::Url, std::allocator<zypp::Url> >*, zypp::callback::SendReport<zypp::media::DownloadProgressReport>*, zypp::media::MediaBlockList*, long) const+0x3d8 [0x7fdd1283d7f8]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (5) /usr/lib64/libzypp.so.1712 : zypp::media::MediaMultiCurl::doGetFileCopy(zypp::filesystem::Pathname const&, zypp::filesystem::Pathname const&, zypp::callback::SendReport<zypp::media::DownloadProgressReport>&, zypp::ByteCount const&, zypp::base::Flags<zypp::media::MediaCurl::RequestOption>) const+0x1038 [0x7fdd1283ebe8]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (6) /usr/lib64/libzypp.so.1712 : zypp::media::MediaCurl::getFileCopy(zypp::filesystem::Pathname const&, zypp::filesystem::Pathname const&, zypp::ByteCount const&) const+0xa4 [0x7fdd12834704]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (7) /usr/lib64/libzypp.so.1712 : zypp::media::MediaCurl::getFile(zypp::filesystem::Pathname const&, zypp::ByteCount const&) const+0x80 [0x7fdd12827920]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (8) /usr/lib64/libzypp.so.1712 : zypp::media::MediaHandler::provideFile(zypp::filesystem::Pathname, zypp::ByteCount const&) const+0x5d [0x7fdd128013cd]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (9) /usr/lib64/libzypp.so.1712 : zypp::media::MediaAccess::provideFile(zypp::filesystem::Pathname const&, zypp::ByteCount const&) const+0x9a [0x7fdd127fb13a]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (10) /usr/lib64/libzypp.so.1712 : +0x2f03f4 [0x7fdd129ca3f4]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (11) /usr/lib64/libzypp.so.1712 : zypp::MediaSetAccess::provide(boost::function<void (unsigned int, zypp::filesystem::Pathname const&)>, zypp::OnMediaLocation const&, zypp::base::Flags<zypp::MediaSetAccess::ProvideFileOption>, zypp::filesystem::Pathname const&)+0x281 [0x7fdd129c6b51]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (12) /usr/lib64/libzypp.so.1712 : zypp::MediaSetAccess::provideFile(zypp::OnMediaLocation const&, zypp::base::Flags<zypp::MediaSetAccess::ProvideFileOption>, zypp::filesystem::Pathname const&)+0x6f [0x7fdd129c7e2f]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (13) /usr/lib64/libzypp.so.1712 : zypp::Fetcher::Impl::provideToDest(zypp::MediaSetAccess&, zypp::filesystem::Pathname const&, boost::shared_ptr<zypp::FetcherJob> const&)+0x273 [0x7fdd12998073]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (14) /usr/lib64/libzypp.so.1712 : zypp::Fetcher::Impl::start(zypp::filesystem::Pathname const&, zypp::MediaSetAccess&, boost::function<bool (zypp::ProgressData const&)> const&)+0x384 [0x7fdd12998d54]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (15) /usr/lib64/libzypp.so.1712 : zypp::Fetcher::start(zypp::filesystem::Pathname const&, zypp::MediaSetAccess&, boost::function<bool (zypp::ProgressData const&)> const&)+0x383 [0x7fdd1299a3d3]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (16) /usr/lib64/libzypp.so.1712 : zypp::repo::yum::Downloader::download(zypp::MediaSetAccess&, zypp::filesystem::Pathname const&, boost::function<bool (zypp::ProgressData const&)> const&)+0x7b2 [0x7fdd128b38d2]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (17) /usr/lib64/libzypp.so.1712 : zypp::RepoManager::Impl::refreshMetadata(zypp::RepoInfo const&, zypp::RepoManager::RawMetadataRefreshPolicy, boost::function<bool (zypp::ProgressData const&)> const&)+0x827 [0x7fdd12a28857]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (18) /usr/lib64/libzypp.so.1712 : zypp::RepoManager::refreshMetadata(zypp::RepoInfo const&, zypp::RepoManager::RawMetadataRefreshPolicy, boost::function<bool (zypp::ProgressData const&)> const&)+0x221 [0x7fdd12a29551]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (19) zypper : refresh_raw_metadata(Zypper&, zypp::RepoInfo const&, bool)+0x351 [0x55ddc52780c1]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (20) zypper : RefreshRepoCmd::refreshRepository(Zypper&, zypp::RepoInfo const&, zypp::base::Flags<RefreshRepoCmd::RefreshFlagsBits>)+0x194 [0x55ddc52fba44]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (21) zypper : RefreshRepoCmd::refreshRepositories(Zypper&, zypp::base::Flags<RefreshRepoCmd::RefreshFlagsBits>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)+0xad8 [0x55ddc52fc888]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (22) zypper : RefreshRepoCmd::execute(Zypper&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)+0x7cb [0x55ddc52fe6db]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (23) zypper : ZypperBaseCommand::run(Zypper&)+0x152 [0x55ddc52aa142]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (24) zypper : Zypper::doCommand(int, char**, int)+0xca0 [0x55ddc5249c10]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (25) zypper : Zypper::main(int, char**)+0x49 [0x55ddc5223f59]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (26) zypper : main+0x419 [0x55ddc5223529]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (27) /lib64/libc.so.6 : __libc_start_main+0xea [0x7fdd1153ff8a]
        2019-11-13 13:36:49 <5> vm013(3470) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (28) zypper : _start+0x2a [0x55ddc522666a]

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-11-13