OpenELEC / OpenELEC.tv

OpenELEC - The living room PC for everyone
http://openelec.tv
1.61k stars 883 forks source link

Outdated libcec in 7.0 (and 6.0.x) causing segfaults #4920

Open rabisuz opened 8 years ago

rabisuz commented 8 years ago

Ever since the 6.0.1 update I haven't been able to launch Kodi. Now that I've finally had some time (and disk space) to look into it, it appears that an update to libcec was the cause of the issue. The fix is easy: simply update the libcec package to the latest version like in the master branch. Cherry picking the commits a6ddcba8a3367f75b59c13dd61cc7f55bb4d9d69 and 2340c967557d73923ca165f77c0997a90b2734e1 fixed the problem for me.

edit: While this prevents the segfault, there's another problem: Kodi doesn't load the correct lib version. It tries to load libcec.so.3.0 instead of libcec.so.3 or libcec.so.3.1.0. My bad. Forgot to clean kodi after making the changes.

stif commented 8 years ago

I have the same problem with segfaults because of outdated libcec: [ 9.123144] CECAdapter[832]: segfault at 7fef60e7c000 ip 00007fef6806b0bd sp 00007fef60e795c8 error 4 in libcec.so.3.0.1[7fef68025000+5f000]

I do not have any problems building the ordinary 6.0.3 version, but after cherry-picking a6ddcba and 2340c96 the build fails with some errors.

Anybody has some hints for me?

stif commented 8 years ago

I applied a6ddcba and 2340c96 on top of version 6.95.3 and it build fine afterwards. So far i had no segfaults or any other problem.