Bug [Solved] segfault starting git kodi with a file on command line
#1
Starting with a file name on the command line used to work, but with Todays git I segfault.

kodi will start alone and the same file that would crash on command line will play from normally started kodi.

Debug log

Edit: This log is not from a crash - it crashes so quickly I don't get a log.

http://pastebin.ca/3411160

(gdb) run ~/x264-letters.mkv
Starting program: /mnt/sdb1/Gits/xbmc/kodi.bin ~/x264-letters.mkv
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
CServiceManager::GetAnnouncementManager (this=0x0) at ServiceManager.cpp:83
83 return *m_announcementManager;
(gdb) thread apply all bt

Thread 1 (Thread 0x7ffff7fbd800 (LWP 24902)):
#0 CServiceManager::GetAnnouncementManager (this=0x0) at ServiceManager.cpp:83
#1 0x0000000001029ad8 in CServiceBroker::GetAnnouncementManager () at ServiceBroker.cpp:36
#2 0x0000000000d4c285 in ANNOUNCEMENT::CAnnouncementManager::GetInstance () at AnnouncementManager.cpp:50
#3 0x0000000000e7806a in PLAYLIST::CPlayList::AnnounceAdd (this=this@entry=0x2e32c30, item=std:Confusedhared_ptr (count 4, weak 0) 0x2e80910, pos=pos@entry=0) at PlayList.cpp:84
#4 0x0000000000e78518 in PLAYLIST::CPlayList::Add (this=this@entry=0x2e32c30, item=std:Confusedhared_ptr (count 4, weak 0) 0x2e80910, iPosition=0, iPosition@entry=-1, iOrder=iOrder@entry=-1) at PlayList.cpp:122
#5 0x0000000000e7866c in PLAYLIST::CPlayList::Add (this=this@entry=0x2e32c30, item=std:Confusedhared_ptr (count 4, weak 0) 0x2e80910) at PlayList.cpp:127
#6 0x0000000000e786be in PLAYLIST::CPlayList::Add (this=this@entry=0x2e32c30, items=...) at PlayList.cpp:139
#7 0x000000000102089e in PLAYLIST::CPlayListPlayer::Add (this=0x26ef440 <g_playlistPlayer>, iPlaylist=0, items=...) at PlayListPlayer.cpp:624
#8 0x0000000000fbbbb5 in CAppParamParser:TonguelayPlaylist (this=this@entry=0x7fffffffdc40) at AppParamParser.cpp:156
#9 0x0000000000fbc296 in CAppParamParser:Tonguearse (this=this@entry=0x7fffffffdc40, argv=argv@entry=0x7fffffffe128, nArgs=nArgs@entry=2) at AppParamParser.cpp:80
#10 0x00000000007d44b5 in main (argc=2, argv=0x7fffffffe128) at main.cpp:77
Reply
#2
bf19cc057aed285ff10591e24011d8b000f52629 is the first bad commit
commit bf19cc057aed285ff10591e24011d8b000f52629
Author: Rainer Hochecker <fernetmenta@online.de>
Date: Sun Mar 20 12:40:18 2016 +0100

run Announcements on thread with lower priority
Reply
#3
I seem to be having the same problem since the same commit.

Starting Kodi without command-line options works but with them leads to an immediate segfault.

I start Kodi like this:

Code:
export set KODI_HOME=/usr/share/kodi
export set DISPLAY=:0
export set HOME=/home/xbmc

/usr/bin/xinit /usr/bin/kodi -fs -q --standalone :0

The log (at first glance the same as Andy's)

Code:
Thread 1 (Thread 0x7ff06a209840 (LWP 4958)):
#0  0x000000000110d8c0 in CServiceManager::GetAnnouncementManager() ()
#1  0x0000000000f2c43d in PLAYLIST::CPlayList::AnnounceAdd(std::shared_ptr<CFileItem> const&, int) ()
#2  0x0000000000f2cd2d in PLAYLIST::CPlayList::Add(std::shared_ptr<CFileItem> const&, int, int) ()
#3  0x0000000000f2cf6a in PLAYLIST::CPlayList::Add(CFileItemList&) ()
#4  0x0000000001102a2e in PLAYLIST::CPlayListPlayer::Add(int, CFileItemList&) ()
#5  0x000000000109a285 in CAppParamParser::PlayPlaylist() ()
#6  0x000000000109a47a in CAppParamParser::Parse(char const**, int) ()
#7  0x00000000007fd215 in main ()

Kodi is compiled from git without modification on Debian Jessie x64.
Reply
#4
Thanks - we heard you. We are currently busy with ffmpeg-3 upgrade and other infrastructure issue. This one will be revisited later.

Thanks for reporting.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#5
Bump!

Forgotten or WONTFIX?
Reply
#6
Both. Feel free to help us with a PR.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#7
Well if I had and clue at all what was wrong I would have said :-)
Reply
#8
Fixed -

commit 2f2eaed68f84bc39eb9f8887849755c164243e5a
Author: Rainer Hochecker <fernetmenta@online.de>
Date: Sat Oct 15 14:20:32 2016 +0200

app: move first access of CPlaylistPlayer after init
Reply

Logout Mark Read Team Forum Stats Members Help
[Solved] segfault starting git kodi with a file on command line0