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.

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: Tue, 12 Nov 2019 08:38:00 -0800

I recently upgraded distro-packaged (openSUSE) curl/libcurl from v7.66 -> 7.67.

Subsequently, when I exec the distro's package management tool (zypper), it works for accessing ALL defined repos without problem/error, except for one, at which it reproducibly SEGFAULTs (~60+ machines, so far).

Downgrade from from v7.67 -> 7.60 fixes the problem.
(7.66 pkgs vanished from distro repos ... I _suspect_ 7.66 pkgs would be OK, unless some _other_ change is causal ...)

distro suggests it's a curl problem, not zypper.

I'm stymied atm as to why/how a SEGFAULT is dependent on accessing a single repo. (something in the content, or size, of the payload?)

Here's what I see on multiple machines:

```
zypper -vv up
        ...
        Checking whether to refresh metadata for OS15-non-oss
        Retrieving: repomd.xml ................................................................................................[done]
        Retrieving: media .....................................................................................................[done]
        Checking whether to refresh metadata for OS15-oss
        Retrieving: http://download.opensuse.org/distribution/leap/15.1/repo/oss/media.1/media ................................................................................................................................................................[done]
        Retrieving: http://download.opensuse.org/distribution/leap/15.1/repo/oss/repodata/repomd.xml.asc ......................................................................................................................................................[done]
        Retrieving: http://download.opensuse.org/distribution/leap/15.1/repo/oss/repodata/repomd.xml.key ............................................................................................................................................[done (988 B/s)]
        Retrieving: http://download.opensuse.org/distribution/leap/15.1/repo/oss/repodata/repomd.xml ..........................................................................................................................................................[done]
          Repository: OS15-oss
          Key Name: openSUSE Project Signing Key <opensuse_at_opensuse.org>
          Key Fingerprint: 22C07BA5 34178CD0 2EFE22AA B88B2FD4 3DBDC284
          Key Created: Mon 05 May 2014 01:37:40 AM PDT
          Key Expires: Thu 02 May 2024 01:37:40 AM PDT
          Rpm Name: gpg-pubkey-3dbdc284-53674dd4
        Retrieving: http://download.opensuse.org/distribution/leap/15.1/repo/oss/repodata/12756b0bcbe274b3bdf178191baea85635c717e3321644fb2ca8807e36be87fa-primary.xml.gz .....................................................................................[done]
        Retrieving: http://download.opensuse.org/distribution/leap/15.1/repo/oss/repodata/57cb86253c19b7c80ce4de1fb5a081a842e24eac5308c84b159d6728e3edc183-appdata.xml.gz ---------------------------------------------------------------------------------[starting]Segmentation fault (core dumped)
        ...
```

journal reports,
```
journalctl -f
        ...
        Nov 11 13:37:51 prod223 kernel: [13139.140228] zypper[26689]: segfault at 6d6172617088 ip 00007fbced4c5961 sp 00007ffdf070a3e0 error 4 in libcurl.so.4.6.0[7fbced488000+88000]
        Nov 11 13:37:51 prod223 kernel: [13139.140236] Code: 8c 94 00 00 00 39 71 28 0f 8c 8b 00 00 00 0f 1f 00 49 89 41 08 49 89 c1 48 8b 40 08 48 39 78 20 7e bd 48 8b 10 48 85 d2 74 3f <48> 39 7a 20 7f 19 7c 05 39 72 28 7f 12 48 89 c2 49 89 10 49 89 d0
        Nov 11 13:37:51 prod223 kernel: [13139.140245] RIP: 0033:0x7fbced4c5961
        Nov 11 13:37:51 prod223 kernel: [13139.140246] Code: 8c 94 00 00 00 39 71 28 0f 8c 8b 00 00 00 0f 1f 00 49 89 41 08 49 89 c1 48 8b 40 08 48 39 78 20 7e bd 48 8b 10 48 85 d2 74 3f <48> 39 7a 20 7f 19 7c 05 39 72 28 7f 12 48 89 c2 49 89 10 49 89 d0
        Nov 11 13:37:51 prod223 kernel: [13139.140247] RSP: 002b:00007ffdf070a3e0 EFLAGS: 00010202
        Nov 11 13:37:51 prod223 kernel: [13139.140248] RAX: 000055e3802b0da8 RBX: 000055e380270938 RCX: 000055e380270938
        Nov 11 13:37:51 prod223 kernel: [13139.140249] RDX: 00006d6172617068 RSI: 0000000000053d91 RDI: 0000000000003353
        Nov 11 13:37:51 prod223 kernel: [13139.140250] RBP: 0000000000003353 R08: 00007ffdf070a3e0 R09: 00007ffdf070a3e0
        Nov 11 13:37:51 prod223 kernel: [13139.140251] R10: 00007ffdf070a420 R11: 0000000000003353 R12: 0000000000053d91
        Nov 11 13:37:51 prod223 kernel: [13139.140251] R13: 000055e380270938 R14: 000055e380218890 R15: 000055e380270ae0
        Nov 11 13:37:51 prod223 kernel: [13139.140252] FS: 00007fbcef7caa00 GS: 0000000000000000
        ...
```

Again, downgrading curl/libcurl -> v7.60 fixes the problem.

Also, WITH v7.67, *DIS*abling the one repo also fixes the problem.

I'm not sure this *is* curl, vs something else systemic ... Can provide add'l info as needed.

*Is* this^^ likely a curl issue?

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