Kodi Community Forum

Full Version: Kodi segfault running headless
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Running kodi headless, it segfaults when attempting to download and uncompress addons.xml.gz

Here is a debug log: http://pastebin.com/GQbYkpSj

It's running in a docker container. (https://github.com/linuxserver/docker-kodi-headless) If you disable addon updates kodi will boot, but without scrapers and things it's not much use in this mode.

There is an existing thread discussing this issue on another forum, but the general consensus is, is that it's probably an issue with the addons themselves:
https://lime-technology.com/forum/index....9.msg49419

Here is an strace: http://pastebin.com/B7e6dAwr

Is there any way to identify what's actually crashing it?
Post the gdb backtrace please
http://pastebin.com/TXPW4LPj

Is that what you need?
bt thread apply all would be good. Btw. we don't support / have ever tested kodi running in a docker container - it's just my personal interest. Also kodi-headless if built out of our tree has no support in this forum. Just for a head's up.
/lib/ld-musl-x86_64.so.1 is stripped Sad

http://pastebin.com/LnEAt4b8
(2016-09-08, 21:14)fritsch Wrote: [ -> ]bt thread apply all would be good. Btw. we don't support / have ever tested kodi running in a docker container - it's just my personal interest. Also kodi-headless if built out of our tree has no support in this forum. Just for a head's up.

Yeah, I was afraid of that. Thanks for your attention, though. I just want an easy way to update the mysql db without the htpc and this seemed like the best solution.
What do you use for building it? Which libs? That result above looks totally unrelated. We had something similar lately with ARCH linux shipping some broken dbus.
This is what they're using to build, on line 140

https://github.com/linuxserver/docker-ko...Dockerfile
No idea, sorry.
Thanks for your time anyway!
Looks like alpine linux(new default docker image) in that docker, which uses the musl libc.
Musl is not supported for kodi, so I suggest rebuilding that docker container against an ubuntu image or switch to glibc.
this issue is also happening with ubuntu based headless docker

https://github.com/Celedhrim/docker-kodi-server
I have been running alpine version of 16.1 headless docker for nearly 3 months (first from my personal repository, and later when my repository was pushed to the linuxserver.io repo) and up until about a week and a half ago, with no problems.
So what did you change so that the problem appeared? kodi 16.1 was not changed or altered for the last several months as it is the old stable release and receives no single change anymore.
I run a previous untouched ls.io Ubuntu docker headless. It does not seem to segfault but the Kodi API does fail randomly after almost continual uptime for months The only changes within this container will be due to Kodi self updates which makes sense since before the failure you can see a mirror curl pull fail for addons.xml.xv. Following that at some point it will get the file but it will fail to unpack. Sometime in the future it will succeed again and fix itself.

I took a dump of kodi logs and deleted them by mistake although I believe you can see this happening in some of the links posted above.

I cannot replicate this I can only watch for it happening again.
Pages: 1 2