Kodi crashes in c++ string functions at startup

Ask questions about Arch Linux ARM. Please search before making a new topic.

Kodi crashes in c++ string functions at startup

Postby aplund » Wed Dec 16, 2015 4:17 am

I recently did an upgrade and now Kodi won't start. I've got a cubox-i4pro and I'm using vanilla packages out of alarm.

Below is a couple of crash logs that kodi outputs. I've tried downgrading gcc-libs to 5.2 and 5.1 but this doesn't seem to fix the crash. Kodi itself wasn't upgraded when the problem started.

I'm totally out of ideas as to what to do about this.

$this->bbcode_second_pass_code('', '
############## Kodi CRASH LOG ###############

################ SYSTEM INFO ################
Date: Wed Dec 16 14:04:49 AEST 2015
Kodi Options:
Arch: armv7l
Kernel: Linux 3.14.36-1-APL #1 SMP Sun Mar 22 18:31:16 AEST 2015
Release: Arch Linux ARM
############## END SYSTEM INFO ##############

############### STACK TRACE #################
=====> Core file: /root/core (2015-12-16 14:04:49.829346955 +1000)
=========================================
[New LWP 2882]
[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'.
Program terminated with signal SIGBUS, Bus error.
#0 0x75dcd828 in std::string::_S_construct_aux<char*> (__a=..., __end=0xe01f9c39 <error: Cannot access memory at address 0xe01f9c39>, __beg=0x75e5b720 <std::string::_Rep::_S_empty_rep_storage> "") at /build/gcc/src/gcc-build/armv7l-unknown-linux-gnueabihf/libstdc++-v3/include/bits/basic_string.h:4143

Thread 1 (Thread 0x7433c000 (LWP 2882)):
#0 0x75dcd828 in std::string::_S_construct_aux<char*> (__a=..., __end=0xe01f9c39 <error: Cannot access memory at address 0xe01f9c39>, __beg=0x75e5b720 <std::string::_Rep::_S_empty_rep_storage> "") at /build/gcc/src/gcc-build/armv7l-unknown-linux-gnueabihf/libstdc++-v3/include/bits/basic_string.h:4143
#1 std::string::_S_construct<char*> (__a=..., __end=0xe01f9c39 <error: Cannot access memory at address 0xe01f9c39>, __beg=0x75e5b720 <std::string::_Rep::_S_empty_rep_storage> "") at /build/gcc/src/gcc-build/armv7l-unknown-linux-gnueabihf/libstdc++-v3/include/bits/basic_string.h:4164
#2 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string (this=0x7ea9e8a0, __str=..., __pos=0, __n=1769239641) at /build/gcc/src/gcc-build/armv7l-unknown-linux-gnueabihf/libstdc++-v3/include/bits/basic_string.tcc:633
#3 0x7ea9e8a0 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
############# END STACK TRACE ###############

################# LOG FILE ##################

<U+FEFF>14:04:49 T:1949487104 NOTICE: special://profile/ is mapped to: special://masterprofile/
14:04:49 T:1949487104 NOTICE: -----------------------------------------------------------------------
14:04:49 T:1949487104 NOTICE: Starting Kodi (15.2 Git:Unknown). Platform: Linux ARM 32-bit
14:04:49 T:1949487104 NOTICE: Using Release Kodi x32 build
14:04:49 T:1949487104 NOTICE: Kodi compiled Oct 25 2015 by GCC 5.1.0 for Linux ARM 32-bit version 4.1.4 (262404)
14:04:49 T:1949487104 NOTICE: Running on Arch Linux ARM 0.0, kernel: Linux ARM 32-bit version 3.14.36-1-APL
14:04:49 T:1949487104 NOTICE: FFmpeg statically linked, version: 2.6.4-kodi-2.6.4-Isengard
14:04:49 T:1949487104 NOTICE: Host CPU: ARMv7 Processor rev 10 (v7l), 4 cores available
14:04:49 T:1949487104 NOTICE: ARM Features: Neon enabled
14:04:49 T:1949487104 NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
14:04:49 T:1949487104 NOTICE: special://xbmcbin/ is mapped to: /usr/lib/kodi
14:04:49 T:1949487104 NOTICE: special://masterprofile/ is mapped to: /root/.kodi/userdata
14:04:49 T:1949487104 NOTICE: special://home/ is mapped to: /root/.kodi
14:04:49 T:1949487104 NOTICE: special://temp/ is mapped to: /root/.kodi/temp
14:04:49 T:1949487104 NOTICE: The executable running is: /usr/lib/kodi/kodi.bin
14:04:49 T:1949487104 NOTICE: Local hostname: lund-cuboxi
14:04:49 T:1949487104 NOTICE: Log File is located: /root/.kodi/temp/kodi.log
14:04:49 T:1949487104 NOTICE: -----------------------------------------------------------------------
14:04:49 T:1949487104 ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property CanSuspend
14:04:49 T:1949487104 ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property CanHibernate
14:04:49 T:1949487104 NOTICE: load settings...


############### END LOG FILE ################

############ END Kodi CRASH LOG #############
')

$this->bbcode_second_pass_code('', '
############## Kodi CRASH LOG ###############

################ SYSTEM INFO ################
Date: Tue Dec 15 15:26:44 AEST 2015
Kodi Options:
Arch: armv7l
Kernel: Linux 3.14.36-1-APL #1 SMP Sun Mar 22 18:31:16 AEST 2015
Release: Arch Linux ARM
############## END SYSTEM INFO ##############

############### STACK TRACE #################
=====> Core file: /root/core (2015-12-15 15:26:44.282644120 +1000)
=========================================
[New LWP 1486]
[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'.
Program terminated with signal SIGBUS, Bus error.
#0 0x75e4c49c in __gnu_cxx::__exchange_and_add (__val=-1, __mem=0x69747461) at /
build/gcc/src/gcc-build/armv7l-unknown-linux-gnueabihf/libstdc++-v3/include/ext/a
tomicity.h:49

Thread 1 (Thread 0x743bb000 (LWP 1486)):
#0 0x75e4c49c in __gnu_cxx::__exchange_and_add (__val=-1, __mem=0x69747461) at /
build/gcc/src/gcc-build/armv7l-unknown-linux-gnueabihf/libstdc++-v3/include/ext/a
tomicity.h:49
#1 __gnu_cxx::__exchange_and_add_dispatch (__val=-1, __mem=0x69747461) at /build
/gcc/src/gcc-build/armv7l-unknown-linux-gnueabihf/libstdc++-v3/include/ext/atomic
ity.h:82
#2 std::string::_Rep::_M_dispose (__a=..., this=<optimized out>) at /build/gcc/s
rc/gcc-build/armv7l-unknown-linux-gnueabihf/libstdc++-v3/include/bits/basic_strin
g.h:2643
#3 std::string::assign (this=0x7e8af8a0, __str=...) at /build/gcc/src/gcc-build/
armv7l-unknown-linux-gnueabihf/libstdc++-v3/include/bits/basic_string.tcc:694
#4 0x00c995e0 in CXBMCTinyXML::Parse(std::string const&, std::string const&) ()
#5 0x00c99710 in CXBMCTinyXML::LoadFile(std::string const&, TiXmlEncoding) ()
#6 0x00c998a4 in CXBMCTinyXML::LoadFile(char const*, TiXmlEncoding) ()
#7 0x0035d8ac in CSettings::Initialize(std::string const&) ()
#8 0x00000000 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
############# END STACK TRACE ###############

################# LOG FILE ##################

<U+FEFF>15:26:43 T:1949204480 NOTICE: special://profile/ is mapped to: special://masterprofile/
15:26:43 T:1949204480 NOTICE: -----------------------------------------------------------------------
15:26:43 T:1949204480 NOTICE: Starting Kodi (15.2 Git:Unknown). Platform: Linux ARM 32-bit
15:26:43 T:1949204480 NOTICE: Using Release Kodi x32 build
15:26:43 T:1949204480 NOTICE: Kodi compiled Oct 25 2015 by GCC 5.1.0 for Linux ARM 32-bit version 4.1.4 (262404)
15:26:43 T:1949204480 NOTICE: Running on Arch Linux ARM 0.0, kernel: Linux ARM 32-bit version 3.14.36-1-APL
15:26:43 T:1949204480 NOTICE: FFmpeg statically linked, version: 2.6.4-kodi-2.6.4-Isengard
15:26:43 T:1949204480 NOTICE: Host CPU: ARMv7 Processor rev 10 (v7l), 4 cores available
15:26:43 T:1949204480 NOTICE: ARM Features: Neon enabled
15:26:43 T:1949204480 NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
15:26:43 T:1949204480 NOTICE: special://xbmcbin/ is mapped to: /usr/lib/kodi
15:26:43 T:1949204480 NOTICE: special://masterprofile/ is mapped to: /root/.kodi/userdata
15:26:43 T:1949204480 NOTICE: special://home/ is mapped to: /root/.kodi
15:26:43 T:1949204480 NOTICE: special://temp/ is mapped to: /root/.kodi/temp
15:26:43 T:1949204480 NOTICE: The executable running is: /usr/lib/kodi/kodi.bin
15:26:43 T:1949204480 NOTICE: Local hostname: lund-cuboxi
15:26:43 T:1949204480 NOTICE: Log File is located: /root/.kodi/temp/kodi.log
15:26:43 T:1949204480 NOTICE: -----------------------------------------------------------------------
15:26:43 T:1949204480 ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property CanSuspend
15:26:43 T:1949204480 ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property CanHibernate
15:26:43 T:1949204480 NOTICE: load settings...


############### END LOG FILE ################

')
aplund
 
Posts: 24
Joined: Tue Feb 04, 2014 5:27 am

Re: Kodi crashes in c++ string functions at startup

Postby moonman » Wed Dec 16, 2015 4:28 am

Building kodi right now with gcc 5.3 to test. The one in repos was built with gcc 5.1 (and older abi)
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Kodi crashes in c++ string functions at startup

Postby aplund » Wed Dec 16, 2015 4:37 am

$this->bbcode_second_pass_quote('moonman', 'B')uilding kodi right now with gcc 5.3 to test. The one in repos was built with gcc 5.1 (and older abi)


I did test with gcc-libs 5.1 and it still crashed. Perhaps there was some other package that changed ABI which I missed, but I couldn't figure out what it could be.
aplund
 
Posts: 24
Joined: Tue Feb 04, 2014 5:27 am

Re: Kodi crashes in c++ string functions at startup

Postby moonman » Wed Dec 16, 2015 4:48 am

Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Kodi crashes in c++ string functions at startup

Postby moonman » Wed Dec 16, 2015 5:58 am

Well, looks like kodi is doomed for now. It has to be rebuilt for the new ABI with GCC 5.3, but it has problems accessing databases (crashes) if built with GCC >= 5.2
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Kodi crashes in c++ string functions at startup

Postby aplund » Wed Dec 16, 2015 8:00 am

$this->bbcode_second_pass_quote('moonman', 'W')ell, looks like kodi is doomed for now. It has to be rebuilt for the new ABI with GCC 5.3, but it has problems accessing databases (crashes) if built with GCC >= 5.2


Well downgrading tinyxml indeed has helped. I will freeze my upgrades there until this mess is sorted out.
aplund
 
Posts: 24
Joined: Tue Feb 04, 2014 5:27 am

Re: Kodi crashes in c++ string functions at startup

Postby moonman » Wed Dec 16, 2015 9:35 am

I will try to compile GCC5.1 with new abi.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Kodi crashes in c++ string functions at startup

Postby ILMostro » Thu Dec 17, 2015 8:31 am

Any luck with 5.1? I recompiled with 5.3, reinstalled kodi-rbp and kodi-rbp-eventclients with no luck. Downgrading tinyxml then restarting newly-compiled kodi results in segfault that's different from previous.
ILMostro
 
Posts: 29
Joined: Tue Apr 22, 2014 8:07 am

Re: Kodi crashes in c++ string functions at startup

Postby aplund » Thu Dec 17, 2015 8:34 am

I noticed a more detailed explanation in dmesg. Seems to be somthing to do with instruction alignment.
aplund
 
Posts: 24
Joined: Tue Feb 04, 2014 5:27 am

Re: Kodi crashes in c++ string functions at startup

Postby iegubkin » Thu Dec 17, 2015 4:10 pm

@aplund What is working for me is previous tinyxml (2.6.2-3) and the current kodi-rbp (15.2-1)
iegubkin
 
Posts: 18
Joined: Fri Aug 14, 2015 9:27 pm

Next

Return to User Questions

Who is online

Users browsing this forum: No registered users and 6 guests