Plexamp memory tagging crashes

Server Version#1.40.2.8395
Player Version#:4.10.1

Hi all,

On ARMv9a, there’s a new hardware security feature called memory tagging. This is where the CPU cores tag memory to detect out of bounds and use after free bugs. I’m currently running Plexamp on a Pixel 8 pro with grapheneos, which has feature fully built into the allocator. While good for security, this also makes spotting these bugs much easier because the system will kill any apps that try access memory that they shouldn’t.

Interestingly, a few apps (1-2 installed) crash with memory tagging enabled - not immediately but with Plexamp typically in the background while I’m listening to music.

This suggests to me that either in Plexamp or one of its dependencies there’s a memory issue somewhere, either a use after free or out of bounds check failing. Maybe this is worth looking at? Plexamp works fine with tagging explicitly disabled for it, but that obviously takes out the benefits of tagging.

Probably also worth mentioning that the normal Plex app also crashes with tagging enabled, but instead crashes at launch during the start animation.

Interesting, is there a way to enable this inside an emulator so that we can debug where it’s happening? (Don’t have a Pixel 8)

Not sure you can do it in an emulator, but here’s a log from the crash if it helps. Ignore all the complaining for Google play services, it crashes even if they are installed. You can just cmd F for “switch to crash”. Hope this helps somewhat…
Plex log 0e57faa9c196.txt (59.4 KB)

That’s for Plex, sorry. I’ll upload another for plexamp

unfortunately i don’t think that’ll help as we’re not going to be able to symbolicate the crash.

I’m not sure then. Did it show up on Crashlytics? It would be a segfault. If not, I’m not sure if you can get the details running in an emulator.

Nothing I can see from you in Bugsnag.

I’ve just enabled MTE on my Pixel 8 Pro, and will try and reproduce the issue. Have you got any specific steps to get it to crash? So far playback seems fine, but I’m seeing a buffer overflow crash in the stock Pixel Camera app :sweat_smile:

Do you have access to logcat on your device, and if so, can you pull out the Plexamp crashes by any chance?

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