Kodi crashes in c++ string functions at startup

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

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

Postby WarheadsSE » Thu Dec 17, 2015 4:24 pm

@aplund : Can you get us that message?

If this is an unaligned problem, then we need to see if we're getting the wrong type of pointer width. Looking at the message, it is using char*, and there have been some oddity issues in the past at the size and type of a char when processed on ARM.

For someone seeing this error, and willing to examine, please 'cat /proc/cpu/alignment' before and after running Kodi.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

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

Postby aplund » Thu Dec 17, 2015 11:17 pm

$this->bbcode_second_pass_quote('WarheadsSE', '@')aplund : Can you get us that message?


$this->bbcode_second_pass_code('', '[169994.162170] Alignment trap: not handling instruction e1921f9f at [<75dcd824>]
[169994.169485] Unhandled fault: alignment exception (0x001) at 0x69747461
')

No idea what any of the hex codes are as I didn't record all the mappings.

I've got a working system now which I don't really want to mess with until I have some time to play around with it. So I'm not super keen on breaking it again to check the output of /proc/cpu/alignment.
aplund
 
Posts: 24
Joined: Tue Feb 04, 2014 5:27 am

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

Postby WarheadsSE » Thu Dec 17, 2015 11:27 pm

Understood.

Looking around, I am seeing this as semi-relevant: https://github.com/dart-lang/sdk/issues/22384 which points to patchhes at https://codereview.chromium.org/1068823004/

Seems something in the string handling is causing this directly.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

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

Postby moonman » Fri Dec 18, 2015 1:15 am

It may be something else with an unaligned problem because I've got nothing in dmesg on my Cubox i4Pro (/proc/cpu/alignment has been set to 2 (fixup) by default). GCC5.1 did not help (although i used a sligtly newer gcc snapshot since 20150623 is not available anymore).
I compiled it without "--with-default-libstdcxx-abi=c++98" so it should default to the new c++11 abi. Then compiled kodi with it and it segfaults. I haven't investigated further, but it seems it is the same error as when kodi was compiled with GCC5.2 and was accessing any kind of DB.
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 iegubkin » Fri Dec 18, 2015 4:24 am

Could this be of any help?

KODI does not compile with gcc-5.3.0 [SOLVED]
https://forums.gentoo.org/viewtopic-t-1035384.html
iegubkin
 
Posts: 18
Joined: Fri Aug 14, 2015 9:27 pm

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

Postby moonman » Fri Dec 18, 2015 4:41 am

The thread is about x86, not ARM. AFAIK there are no problems with kodi on x86
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 » Mon Feb 01, 2016 1:30 am

Have these ABI problems been sorted out? Is it safe to perform a full system upgrade?
aplund
 
Posts: 24
Joined: Tue Feb 04, 2014 5:27 am

Previous

Return to User Questions

Who is online

Users browsing this forum: No registered users and 6 guests