Segfault in libcurl

Server Version#:
Name : plexmediaserver
Version : 1.25.3.5409
Release : f11334058
Architecture : x86_64
Size : 206 M
Source : plexmediaserver-1.25.3.5409-f11334058.src.rpm

Player Version#: N/A: 4.69.1

on up to date centos8 machine.
Plex Media Server Logs_2022-01-20_13-04-52.zip (7.4 MB)

plex media serv service, crashed, dmesg shows:
[2062167.342335] Plex Media Serv[3894929]: segfault at 7ff053b2b540 ip 00007ff077cba189 sp 00007ff06dbf7d60 error 4 in libcurl.so[7ff077c9d000+3a000]

Installed Packages
Name : libcurl
Version : 7.61.1
Release : 22.el8
Architecture : x86_64
Size : 580 k
Source : curl-7.61.1-22.el8.src.rpm

[chuck@lizum system.2008]$ dpkg -l | grep curl
ii  curl                                                        7.68.0-1ubuntu2.7                     amd64        command line tool for transferring data with URL syntax
ii  libcurl3-gnutls:amd64                                       7.68.0-1ubuntu2.7                     amd64        easy-to-use client-side URL transfer library (GnuTLS flavour)
ii  libcurl4:amd64                                              7.68.0-1ubuntu2.7                     amd64        easy-to-use client-side URL transfer library (OpenSSL flavour)
ii  libcurl4-openssl-dev:amd64                                  7.68.0-1ubuntu2.7                     amd64        development files and documentation for libcurl (OpenSSL flavour)
ii  libwww-curl-perl                                            4.17-6                                amd64        Perl bindings to libcurl
[chuck@lizum system.2009]$ 

libcurl had some recent bug files. Any way to update?

This is the most up to date curl available for Centos 8

[root@plex ~]# dnf clean all
46 files removed
[root@plex ~]# dnf update
CentOS Linux 8 - AppStream                                                                                                                                   1.4 MB/s | 8.4 MB     00:05    
CentOS Linux 8 - BaseOS                                                                                                                                      1.9 MB/s | 4.6 MB     00:02    
CentOS Linux 8 - Extras                                                                                                                                      6.7 kB/s |  10 kB     00:01    
Extra Packages for Enterprise Linux 8 - x86_64                                                                                                               981 kB/s |  11 MB     00:11    
Extra Packages for Enterprise Linux Modular 8 - x86_64                                                                                                       244 kB/s | 979 kB     00:04    
PlexRepo                                                                                                                                                      10 kB/s |  17 kB     00:01    
Last metadata expiration check: 0:00:01 ago on Thu Jan 20 15:49:33 2022.
Dependencies resolved.
Nothing to do.
Complete!

It looks like redhat, euh, I mean centos, backports the security fixes, but does not provides updates to newer versions.

https://koji.mbox.centos.org/koji/buildinfo?buildID=19519

Since plex provides official repo with builds for plex media server for this platform and I’m running the most up to date depndencies I wanted to report this here so you are aware.

Do you prefer that I report this to centos? It looks like indeed this might be an issue that was not a security issue but fixed in libcurl 7.65

I can build the latest version from source and create an rpm, even provide it in a repo here for other users of plex to use, but i prefer doing this trough the official ways, would plex be intrested in providing the up to date libcurl rpm in the plex repo? (I can build it for you or help with the build process, but I notice you already know how to build rpm’s and put them in a repo ;))

Thanks for the offer but it’s not for Plex to be distributing RPM files which are for the distro itself to do and maintain.

Doesn’t Plex Media Server link against the embedded version it includes in its lib directory?

On Debian-based distributions it seems to:

@pshanew yep, indeed it does

libcurl.so => /usr/lib/plexmediaserver/lib/libcurl.so (0x00007f228e7d1000)

so it seems Plex is already supplying it’s own libcurl (just not in a separate rpm)
Sorry for throwing in the red hearing of mentioning my installed libcurl.

1 Like

To be honest, I didn’t initially notice that you’d included the installed version :wink: . I was more curious about the follow-up conversation about upgrading it and why it was requested to do so. Confusing to say the least when Plex uses its bundled version.

Server Version# 1.25.3.5409

Hello, I’m experiencing the same segfault problem on Debian 11.2 (x64) with Plex Media Server (installed from .deb source) :

dmesg output :

Plex Media Serv[3056]: segfault at 7ff03531d2e0 ip 00007ff03c705189 sp 00007ff0354d5f50 error 4 in libcurl.so[7ff03c6e8000+3a000]

These crashes occur randomly about every day or two since moving my Plex setup to a new Debian 11 VM. I’ve turned debug messages on (Enable Plex Media Server debug logging ) in the web interface.

The 1.25.4 beta may resolve some of these issues. If you’re running the beta please keep an eye out and see if it helps or not.

Hello, I’ve just tried the 1.25.4 when it came out of beta and the problem still occurs.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.