Hi all,
When trying to play DRM protected content, LibreELEC segfaults and restarts.
- Device: NanoPi K2 (S905 SOC, Mali-450 GPU)
- LE version: devel-20190915174406-76b3023 (master branch)
- Command used for compiling: PROJECT=Amlogic ARCH=arm DEVICE=AMLGX UBOOT_SYSTEM=nanopi-k2 make image
- Kernel version: mainline 5.3.0-rc8 (aarch64)
- OpenGL vendor: Lima
- Userspace: 32-bit (Python platform.machine() reports armv7l)
- Inputstream Adaptive version: 2.4.2
Tested with:
In both tests, playing video with WideVine will cause segmentation fault .
I hope someone can shed some light as to why this is happening...If further tests are required, please let me know what I should do. Better still, if someone has this or a similar device (any Odroid C2 users here?), please test if the same problem also happens with LibreELEC running on mainline kernel, so I know this is not specific to my device. Thanks.
Full log: kodi_crash.log
Last lines in log:
2019-09-15 17:19:46.036 T:3788288880 DEBUG: AddOnLog: InputStream Adaptive: Entering encryption section
2019-09-15 17:19:46.191 T:3788288880 DEBUG: AddOnLog: InputStream Adaptive: CDM version: 4.10.1440.18
Segfault appears here:
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/lib/kodi/kodi.bin --standalone -fs'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0xffff0fa0 in ?? ()
[Current thread is 1 (Thread 0xe1ccb370 (LWP 867))]
...
...
Thread 1 (Thread 0xe1ccb370 (LWP 867)):
#0 0xffff0fa0 in ?? ()
#1 0xdf658e58 in ?? () from /storage/.kodi/cdm/libwidevinecdm.so
#2 0xdf6c65b8 in ?? () from /storage/.kodi/cdm/libwidevinecdm.so
#3 0xdf61e628 in ?? () from /storage/.kodi/cdm/libwidevinecdm.so
#4 0xdf70eab8 in CreateCdmInstance () from /storage/.kodi/cdm/libwidevinecdm.so
#5 0xe301c858 in media::CdmAdapter::Initialize() () from /storage/.kodi/addons/inputstream.adaptive/libssd_wv.so
#6 0xe301d068 in media::CdmAdapter::CdmAdapter(std::string const&, std::string const&, std::string const&, media::CdmConfig const&, media::CdmAdapterClient*) () from /storage/.kodi/addons/inputstream.adaptive/libssd_wv.so
#7 0xe3017bdc in WV_DRM::WV_DRM(char const*, AP4_DataBuffer const&, unsigned char) () from /storage/.kodi/addons/inputstream.adaptive/libssd_wv.so
#8 0xe3019238 in WVDecrypter::OpenDRMSystem(char const*, AP4_DataBuffer const&, unsigned char) () from /storage/.kodi/addons/inputstream.adaptive/libssd_wv.so
#9 0xe006056c in Session::initialize(unsigned char, unsigned int) () from /storage/.kodi/addons/inputstream.adaptive/inputstream.adaptive.so.2.4.2
#10 0xe00617f0 in CInputStreamAdaptive::Open(INPUTSTREAM&) () from /storage/.kodi/addons/inputstream.adaptive/inputstream.adaptive.so.2.4.2
#11 0x007ce274 in CInputStreamAddon::Open() ()
#12 0x0079eba0 in CVideoPlayer::OpenInputStream() ()
#13 0x007a324c in CVideoPlayer::Prepare() ()
#14 0x007a4c40 in CVideoPlayer::Process() ()
#15 0x0068bbbc in CThread::Action() ()
#16 0x006946c0 in CThread::staticThread(void*) ()
#17 0xf7e753c4 in start_thread (arg=0xe1ccb370) at pthread_create.c:479
#18 0xf5e0f6f8 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /usr/lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
############# END STACK TRACE ###############
Display More