BASS crashes on Android after v2.4.17.0

Started by elan,

elan

After having the release out for a few weeks, we're seeing some additional crashes on the Google Play console which are worrisome with BASS v2.4.17.0.

This one is our top crash.

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 4443 >>> tv.plex.labs.plexamp <<<

FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x<sanitized>)

backtrace:
  #00  pc 0x000000000009ce10  /apex/com.android.runtime/lib64/bionic/libc.so (abort+168)
  #01  pc 0x000000000009ed44  /apex/com.android.runtime/lib64/bionic/libc.so (__fortify_fatal(char const*, ...)+128)
  #02  pc 0x00000000001061a8  /apex/com.android.runtime/lib64/bionic/libc.so (HandleUsingDestroyedMutex(pthread_mutex_t*, char const*)+68)
  #03  pc 0x0000000000106028  /apex/com.android.runtime/lib64/bionic/libc.so (pthread_mutex_lock+272)
  #04  pc 0x000000000001786c  /data/app/~~liGRCKQLsvNWT3D2VxCNuQ==/tv.plex.labs.plexamp-FWQyPOh69rsW8Fv4V8v0qA==/split_config.arm64_v8a.apk!libbass.so (BuildId: f8a85e0d7037a2b8555dbea9e6433da886cf09e2)
  #05  pc 0x0000000000024fb8  /data/app/~~liGRCKQLsvNWT3D2VxCNuQ==/tv.plex.labs.plexamp-FWQyPOh69rsW8Fv4V8v0qA==/split_config.arm64_v8a.apk!libbass.so (BuildId: f8a85e0d7037a2b8555dbea9e6433da886cf09e2)
  #06  pc 0x0000000000104fc4  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208)
  #07  pc 0x000000000009e764  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68)


Second new crash is this one:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 32004 >>> tv.plex.labs.plexamp <<<

backtrace:
  #00  pc 0x00000000000079ac  /data/app/~~H0blJwP-OcDiU-QPiFm9Dw==/tv.plex.labs.plexamp-nTRAf4hPM-IuqCc682RS0w==/split_config.arm64_v8a.apk!libbassmix.so (BuildId: 9caa9046ac41b8e31c2907c75d999ac41ae900fc)
  #01  pc 0x0000000000009334  /data/app/~~H0blJwP-OcDiU-QPiFm9Dw==/tv.plex.labs.plexamp-nTRAf4hPM-IuqCc682RS0w==/split_config.arm64_v8a.apk!libbassmix.so (BuildId: 9caa9046ac41b8e31c2907c75d999ac41ae900fc)
  #02  pc 0x0000000000009cd8  /data/app/~~H0blJwP-OcDiU-QPiFm9Dw==/tv.plex.labs.plexamp-nTRAf4hPM-IuqCc682RS0w==/split_config.arm64_v8a.apk!libbassmix.so (BuildId: 9caa9046ac41b8e31c2907c75d999ac41ae900fc)
  #03  pc 0x000000000002b284  /data/app/~~H0blJwP-OcDiU-QPiFm9Dw==/tv.plex.labs.plexamp-nTRAf4hPM-IuqCc682RS0w==/split_config.arm64_v8a.apk!libbass.so (BuildId: f8a85e0d7037a2b8555dbea9e6433da886cf09e2)
  #04  pc 0x000000000002ad68  /data/app/~~H0blJwP-OcDiU-QPiFm9Dw==/tv.plex.labs.plexamp-nTRAf4hPM-IuqCc682RS0w==/split_config.arm64_v8a.apk!libbass.so (BuildId: f8a85e0d7037a2b8555dbea9e6433da886cf09e2)
  #05  pc 0x00000000000316ec  /data/app/~~H0blJwP-OcDiU-QPiFm9Dw==/tv.plex.labs.plexamp-nTRAf4hPM-IuqCc682RS0w==/split_config.arm64_v8a.apk!libbass.so (BuildId: f8a85e0d7037a2b8555dbea9e6433da886cf09e2)
  #06  pc 0x000000000002cb10  /data/app/~~H0blJwP-OcDiU-QPiFm9Dw==/tv.plex.labs.plexamp-nTRAf4hPM-IuqCc682RS0w==/split_config.arm64_v8a.apk!libbass.so (BuildId: f8a85e0d7037a2b8555dbea9e6433da886cf09e2)
  #07  pc 0x000000000003151c  /data/app/~~H0blJwP-OcDiU-QPiFm9Dw==/tv.plex.labs.plexamp-nTRAf4hPM-IuqCc682RS0w==/split_config.arm64_v8a.apk!libbass.so (BuildId: f8a85e0d7037a2b8555dbea9e6433da886cf09e2)
  #08  pc 0x0000000000017658  /data/app/~~H0blJwP-OcDiU-QPiFm9Dw==/tv.plex.labs.plexamp-nTRAf4hPM-IuqCc682RS0w==/split_config.arm64_v8a.apk!libbass.so (BuildId: f8a85e0d7037a2b8555dbea9e6433da886cf09e2)
  #09  pc 0x00000000000b008c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64)
  #10  pc 0x00000000000503c8  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)



Any ideas or suggestions?

Ian @ un4seen

The first crash looks like one that's fixed in the latest BASS build, which you can get here:

    www.un4seen.com/stuff/bass-android.zip

I haven't seen the second one before and unfortunately it isn't possible to tell the cause just from the call stack. If you're able to reproduce it, I can send you a debug BASSmix version to get more info. Otherwise, please try using this BASSmix update and see if it helps:

    www.un4seen.com/stuff/bassmix-android.zip