Server-linux Plex Media Scan segmentation faults

Issue still occurring in latest update:
Plex Media Scan[8249]: segfault at 31 ip 00007f1a3d814097 sp 00007f1a2f741fe0 error 4 in libcrypto.so.1.0.0[7f1a3d703000+204000]
[632048.202931] Code: 8b 4f 1c 31 d2 4c 89 e0 48 f7 f1 49 8b 07 48 63 ca 4c 8b 2c c8 4d 85 ed 74 37 49 8b 6f 08 48 8d 1c c8 90 49 ff 87 a0 00 00 00 <4d> 39 65 10 75 11 49 ff 47 68 49 8b 7d 00 4c 89 f6 ff d5 85 c0 74

Is there a repository of old versions available? I’d like to at least have the latest stable version available.

No. There is no public repository of old versions here.

I can make my copy of a few versions available to you.

DEB or RPM? Architecture?

Ubuntu 18.04 - 64 bit for x86 .deb please.
Thank you very much!

Ther performance of the latest plex transcoder (PMS 1.17.0.1709) is amazing.
Plex Media Scanner is actually worse than before.
[78029.091618] Plex Media Scan[9929]: segfault at 1778a3 ip 00007f8666c4e599 sp 00007ffc30408ce0 error 4 in libpython2.7.so.1.0[7f8666bb7000+195000]
[78029.091627] Code: 8b 48 18 ff c1 89 48 18 48 8b 05 8a f7 2f 00 3b 08 7e 17 48 8d 3d 75 70 0b 00 e8 32 c4 fa ff 85 c0 74 07 31 c0 e9 c2 02 00 00 <48> 8b 45 08 48 3b 05 34 f4 2f 00 0f 84 96 00 00 00 48 3b 43 08 0f
[90325.816399] Plex Media Scan[11216]: segfault at 7fa700000010 ip 00007fa79f270097 sp 00007fff50becd10 error 4 in libcrypto.so.1.0.0[7fa79f15f000+204000]
[90325.816407] Code: 8b 4f 1c 31 d2 4c 89 e0 48 f7 f1 49 8b 07 48 63 ca 4c 8b 2c c8 4d 85 ed 74 37 49 8b 6f 08 48 8d 1c c8 90 49 ff 87 a0 00 00 00 <4d> 39 65 10 75 11 49 ff 47 68 49 8b 7d 00 4c 89 f6 ff d5 85 c0 74
[95725.448215] Plex Media Scan[11491]: segfault at 300000010 ip 00007fa902d19097 sp 00007fa8f8cb50d0 error 4 in libcrypto.so.1.0.0[7fa902c08000+204000]
[95725.448224] Code: 8b 4f 1c 31 d2 4c 89 e0 48 f7 f1 49 8b 07 48 63 ca 4c 8b 2c c8 4d 85 ed 74 37 49 8b 6f 08 48 8d 1c c8 90 49 ff 87 a0 00 00 00 <4d> 39 65 10 75 11 49 ff 47 68 49 8b 7d 00 4c 89 f6 ff d5 85 c0 74
[120324.890279] Plex Media Scan[13248]: segfault at 1f ip 00007f6571aa4097 sp 00007ffe24922ca0 error 4 in libcrypto.so.1.0.0[7f6571993000+204000]
[120324.890289] Code: 8b 4f 1c 31 d2 4c 89 e0 48 f7 f1 49 8b 07 48 63 ca 4c 8b 2c c8 4d 85 ed 74 37 49 8b 6f 08 48 8d 1c c8 90 49 ff 87 a0 00 00 00 <4d> 39 65 10 75 11 49 ff 47 68 49 8b 7d 00 4c 89 f6 ff d5 85 c0 74
[140128.661537] Plex Media Scan[15018]: segfault at 7d1 ip 00007f37bc1de097 sp 00007f37ae1380d0 error 4 in libcrypto.so.1.0.0[7f37bc0cd000+204000]
[140128.661546] Code: 8b 4f 1c 31 d2 4c 89 e0 48 f7 f1 49 8b 07 48 63 ca 4c 8b 2c c8 4d 85 ed 74 37 49 8b 6f 08 48 8d 1c c8 90 49 ff 87 a0 00 00 00 <4d> 39 65 10 75 11 49 ff 47 68 49 8b 7d 00 4c 89 f6 ff d5 85 c0 74
[142528.798420] Plex Media Scan[15310]: segfault at 7f375e074000 ip 00007f376bdef978 sp 00007f375ea79ae0 error 7 in libcppnetlib-uri.so[7f376bdb9000+45000]
[142528.798432] Code: 24 0f 10 84 24 e8 00 00 00 0f 29 44 24 20 48 8b 84 24 f8 00 00 00 48 89 44 24 08 bf b8 00 00 00 e8 cd 25 ff ff 0f 28 44 24 10 <0f> 11 00 88 58 10 4c 89 60 18 4c 89 68 28 40 88 68 30 4c 89 78 38
[159024.794662] Plex Media Scan[16787]: segfault at 41 ip 00007f64614b0097 sp 00007f6453360fe0 error 4 in libcrypto.so.1.0.0[7f646139f000+204000]
[159024.794675] Code: 8b 4f 1c 31 d2 4c 89 e0 48 f7 f1 49 8b 07 48 63 ca 4c 8b 2c c8 4d 85 ed 74 37 49 8b 6f 08 48 8d 1c c8 90 49 ff 87 a0 00 00 00 <4d> 39 65 10 75 11 49 ff 47 68 49 8b 7d 00 4c 89 f6 ff d5 85 c0 74

Can you gather the full DEBUG log (verbose logging OFF) in the ZIP file so I can give it to engineering on the trouble ticket.

I’ll have to turn the debugging on and let it run for a bit. I’ll do so right now and post logs in a day or so after they have time to gather.

Came here to say the same. Using Mint 19.2/Cinnamon, PMS: 1.17.0.1709.

[45627.743363] Plex Media Scan[18225]: segfault at d1 ip 00007efd43394097 sp 00007efd353b3fe0 error 4 in libcrypto.so.1.0.0[7efd43283000+204000]

Plex Media Server Logs_2019-09-27_20-28-28.zip (4.0 MB)

logs attached
Plex Media Server Logs_2019-09-27_23-41-33.zip (4.7 MB)

I’m working with engineering on this (I have a ticket open).

The more ground we can cover with different versions to isolate where the fault first occurs (version-build), the better. This will let them start running manual differences between the two.

I’m trying to recreate here and can’t , possibly because I’m using the redhat kernel.

This would be a LOT easier if I had a full repository of earlier releases to download and test. I’d be happy to test them out one by one and let you know the exact version that has these errors.

The problem for me started with plexmediaserver-1.16.6.1592. I have downgraded to plexmediaserver-1.16.3.1433 and it is running fine.

plexmediaserver-1.16.3.1433-359b06978.x86_64.rpm
plexmediaserver-1.16.6.1592-b9d49bdb7.x86_64.rpm

I have a few personal versions but Company policy has always been they don’t keep the older versions. We have asked more times than can be counted.

I maintain a few versions on my Google Drive for my use. I can help here but some of them are arguably older.

@sclintow

With it running ok on 1.16.3, if you go back to 1.17.0, does it again fail?

I’m looking for a definitive bracketing which can be then further refined

I kept all the downloaded versions. I can try 1.17.0 to see if it fails.

These are the versions that I kept.

plexmediaserver-1.0.0.2261-a17e99e.x86_64.rpm
plexmediaserver-1.0.3.2461-35f0caa.x86_64.rpm
plexmediaserver-1.1.4.2757-24ffd60.x86_64.rpm
plexmediaserver-1.3.2.3112-1751929.x86_64.rpm
plexmediaserver-1.4.4.3495-edef59192.x86_64.rpm
plexmediaserver-1.5.6.3790-4613ce077.x86_64.rpm
plexmediaserver-1.5.7.4016-25d94bad9.x86_64.rpm
plexmediaserver-1.7.5.4035-313f93718.x86_64.rpm
plexmediaserver-1.9.0.4252-d07c1f408.x86_64.rpm
plexmediaserver-1.11.0.4666-fc63598ba.x86_64.rpm
plexmediaserver-1.13.2.5154-fd05be322.x86_64.rpm
plexmediaserver-1.13.5.5291-6fa5e50a8.x86_64.rpm
plexmediaserver-1.13.6.5339-115f087d6.x86_64.rpm
plexmediaserver-1.13.9.5456-ecd600442.x86_64.rpm
plexmediaserver-1.14.1.5487-dcc512d26.x86_64.rpm
plexmediaserver-1.14.1.5488-cc260c476.x86_64.rpm
plexmediaserver-1.15.1.707-d893009fb.x86_64.rpm
plexmediaserver-1.15.2.793-782228f99.x86_64.rpm
plexmediaserver-1.15.4.919-8e2884e4b.x86_64.rpm
plexmediaserver-1.16.3.1433-359b06978.x86_64.rpm
plexmediaserver-1.16.6.1592-b9d49bdb7.x86_64.rpm

If you can start, one at a time, incrementally go from 1.16.3 (where you are now), try 1.16.4, -> 1.16.6,

The sequence should be:

1.16.3,
1.17.0 (verify still fails)
1.16.4 (verify good)
1.17.0 (verify still fails)
1.16.5 (verify still good)


This addresses an potential changes in the Database (migrations)

EDIT: I just did a manual script to create the environment variables (exports), then launch the scanner in gdb. The command line to use will be that which you see when you do a ps -ef | grep -i scanner (if you want to go that far). Having just scanned all my media without error, I suspect their is a naming condition under which it faults. We need find that.
What will help is, while the scanner is running in GDB, you can see which series and season it’s working on or movies it 's working on. it will help isolate the condition needed to replicate the failure.

Segfault with 1.17.0.

475915.040557] show_signal_msg: 5 callbacks suppressed
[475915.040559] Plex Media Scan[24142]: segfault at 791 ip 00007f2030d26097 sp 00007f2016b5bfe0 error 4 in libcrypto.so.1.0.0[7f2030c15000+204000]
[475915.040563] Code: 8b 4f 1c 31 d2 4c 89 e0 48 f7 f1 49 8b 07 48 63 ca 4c 8b 2c c8 4d 85 ed 74 37 49 8b 6f 08 48 8d 1c c8 90 49 ff 87 a0 00 00 00 <4d> 39 65 10 75 11 49 ff 47 68 49 8b 7d 00 4c 89 f6 ff d5 85 c0 74

I don’t have the 1.16.4 or 1.16.5 RPMs.

Let me look and see if I have them. If I do, I will send links via pm

Links sent via PM

Hello,

I have the very same bug on Ubuntu 16.04.4 LTS.

I do keep a lot of the deb packages. I could supply the following:

-rw-r--r--  1 sica sica  99M Sep 21  2018 plexmediaserver_1.13.8.5395-10d48da0d_amd64.deb
-rw-r--r--  1 sica sica  99M Oct  9  2018 plexmediaserver_1.13.9.5439-7303bc002_amd64.deb
-rw-r--r--  1 sica sica  99M Oct 31  2018 plexmediaserver_1.13.9.5456-ecd600442_amd64.deb
-rw-r--r--  1 sica sica  99M Nov 12  2018 plexmediaserver_1.14.0.5465-425e4ac90_amd64.deb
-rw-r--r--  1 sica sica  99M Nov 21  2018 plexmediaserver_1.14.0.5468-5a0183d2c_amd64.deb
-rw-r--r--  1 sica sica  99M Nov 27  2018 plexmediaserver_1.14.0.5470-9d51fdfaa_amd64.deb
-rw-r--r--  1 sica sica 101M Dec 13  2018 plexmediaserver_1.14.1.5487-dcc512d26_amd64.deb
-rw-r--r--  1 sica sica 101M Dec 17  2018 plexmediaserver_1.14.1.5488-cc260c476_amd64.deb
-rw-r--r--  1 sica sica  78M Feb  7  2019 plexmediaserver_1.15.0.659-9311f93fd_amd64.deb
-rw-r--r--  1 sica sica  78M Feb 21  2019 plexmediaserver_1.15.1.707-d893009fb_amd64.deb
-rw-r--r--  1 sica sica  78M Feb 25  2019 plexmediaserver_1.15.1.710-ece95b3a1_amd64.deb
-rw-r--r--  1 sica sica  78M Mar 12  2019 plexmediaserver_1.15.1.780-a27ffa5be_amd64.deb
-rw-r--r--  1 sica sica  78M Mar 15  2019 plexmediaserver_1.15.2.793-782228f99_amd64.deb
-rw-r--r--  1 sica sica  78M Apr  1 14:57 plexmediaserver_1.15.3.858-fbfb913f7_amd64.deb
-rw-r--r--  1 sica sica  78M Apr  5 15:33 plexmediaserver_1.15.3.876-ad6e39743_amd64.deb
-rw-r--r--  1 sica sica  76M Apr 23 18:11 plexmediaserver_1.15.4.993-bb4a2cb6c_amd64.deb
-rw-r--r--  1 sica sica  77M Apr 25 22:17 plexmediaserver_1.15.5.994-4610c6e8d_amd64.deb
-rw-r--r--  1 sica sica  76M May 16 19:31 plexmediaserver_1.15.6.1079-78232c603_amd64.deb
-rw-r--r--  1 sica sica  76M May 29 06:24 plexmediaserver_1.15.8.1163-005053bb5_amd64.deb
-rw-r--r--  1 sica sica  76M Jun 20 19:40 plexmediaserver_1.16.1.1246-1d09ac057_amd64.deb
-rw-r--r--  1 sica sica  76M Jun 29 05:49 plexmediaserver_1.16.1.1291-158e5b199_amd64.deb
-rw-r--r--  1 sica sica  75M Jul  3 14:23 plexmediaserver_1.16.2.1297-4b7ace214_amd64.deb
-rw-r--r--  1 sica sica  76M Jul 16 16:29 plexmediaserver_1.16.3.1402-22929c8a2_amd64.deb
-rw-r--r--  1 sica sica  76M Jul 25 14:17 plexmediaserver_1.16.3.1433-359b06978_amd64.deb
-rw-r--r--  1 sica sica  71M Aug  5 15:37 plexmediaserver_1.16.4.1469-6d5612c2f_amd64.deb
-rw-r--r--  1 sica sica  72M Aug 13 21:32 plexmediaserver_1.16.5.1488-deeb86e7f_amd64.deb
-rw-r--r--  1 sica sica  72M Aug 26 14:51 plexmediaserver_1.16.6.1559-a71394a45_amd64.deb
-rw-r--r--  1 sica sica  73M Aug 28 03:02 plexmediaserver_1.16.6.1592-b9d49bdb7_amd64.deb
-rw-r--r--  1 sica sica  73M Sep 16 22:09 plexmediaserver_1.17.0.1709-982421575_amd64.deb

CheckPA wants you to verify the exact version that the problem started with:

1.16.3, - works fine
1.17.0 (verify still fails) - fails
1.16.4 (verify good) - works fine
1.17.0 (verify still fails) - testing now
1.16.5 (verify still good)

Does your scanner segfault every run? Because here it seems to do fine for around 12-24 hours and then segfaults and stops working.