Has anyone compiled Kodi 17 or 18 with gcc 8?
#1
Trying to use Kodi 17.6 or 18.0a1 compiled with gcc 8 ends up in segfaults on app startup.

17.6, window opens, app crashes after splash screen, backtrace:
Code:
#0  0x00007f890892af4b in raise () at /lib64/libc.so.6
#1  0x00007f8908915591 in abort () at /lib64/libc.so.6
#2  0x000055a6556a8485 in CGUIFontTTFGL::LastEnd() ()
#3  0x000055a6556fcad1 in CGUITextLayout::Render(float, float, float, unsigned int, unsigned int, unsigned int, float, bool) ()
#4  0x000055a6556ae3f7 in CGUIControl::DoRender() ()
#5  0x000055a6556be355 in CGUIControlGroupList::Render() ()
#6  0x000055a6556ae3f7 in CGUIControl::DoRender() ()
#7  0x000055a6556be355 in CGUIControlGroupList::Render() ()
#8  0x000055a6556ae3f7 in CGUIControl::DoRender() ()
#9  0x000055a6556bb41e in CGUIControlGroup::Render() ()
#10 0x000055a6556ae3f7 in CGUIControl::DoRender() ()
#11 0x000055a6556bb41e in CGUIControlGroup::Render() ()
#12 0x000055a6556ae3f7 in CGUIControl::DoRender() ()
#13 0x000055a6556bb41e in CGUIControlGroup::Render() ()
#14 0x000055a6556ae3f7 in CGUIControl::DoRender() ()
#15 0x000055a6556bb41e in CGUIControlGroup::Render() ()
#16 0x000055a6556ae3f7 in CGUIControl::DoRender() ()
#17 0x000055a6556bb41e in CGUIControlGroup::Render() ()
#18 0x000055a6556ae3f7 in CGUIControl::DoRender() ()
#19 0x000055a65568b018 in CGUIWindow::DoRender() ()
#20 0x000055a655690e48 in CGUIWindowManager::RenderPass() const ()
#21 0x000055a65569102f in CGUIWindowManager::Render() ()
#22 0x000055a655c57eed in CApplication::Render() ()
#23 0x000055a655d00d45 in CXBApplicationEx::Run(CFileItemList&) ()
#24 0x000055a655a531a0 in XBMC_Run ()
#25 0x000055a655547fa9 in main ()

18.0a1, app never opens a window, crashes immediately:
$ kodi
/usr/include/c++/8/bits/unique_ptr.h:328: typename std::add_lvalue_reference<_Tp>::type std::unique_ptr<_Tp, _Dp>::operator*() const [with _Tp = CProfilesManager; _Dp = std::default_delete<CProfilesManager>; typename std::add_lvalue_reference<_Tp>::type = CProfilesManager&]: Assertion 'get() != pointer()' failed.
/usr/bin/kodi: line 208: 31208 Aborted                 (core dumped) ${KODI_BINARY} $SAVED_ARGS
Crash report available at /home/foo/crashlog.log
backtrace:
Code:
#0  0x00007fffec466f4b in raise () from /lib64/libc.so.6
#1  0x00007fffec451591 in abort () from /lib64/libc.so.6
#2  0x0000555555cb4aa8 in std::__replacement_assert(char const*, int, char const*, char const*) ()
#3  0x00005555565cc451 in CServiceManager::GetProfileManager() ()
#4  0x0000555556a2f6ae in XFILE::IDirectory::IDirectory() ()
#5  0x0000555555e4badd in XFILE::CPosixDirectory::CPosixDirectory() ()
#6  0x0000555556a13745 in XFILE::CDirectoryFactory::Create(CURL const&) ()
#7  0x0000555556a10548 in XFILE::CDirectory::Exists(CURL const&, bool) ()
#8  0x0000555556a10bb8 in XFILE::CDirectory::Exists(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) ()
#9  0x000055555652da89 in CApplication::InitDirectoriesLinux() ()
#10 0x000055555652e05f in CApplication::Create(CAppParamParser const&) ()
#11 0x00005555561f61fa in XBMC_Run ()
#12 0x0000555555c2af8e in main ()
Reply
#2
Seems very much related to Fedora 28: crash with Assertion '__builtin_expect(__n < this->size(), true)' failed
Reply
#3
Yes, that is our issue. I'll follow up in that thread.
Reply

Logout Mark Read Team Forum Stats Members Help
Has anyone compiled Kodi 17 or 18 with gcc 8?0