[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kodi build failing in raspbian, segfault



Hi Peter,

peter green <plugwash@p10link.net> ezt írta (időpont: 2020. ápr. 5., V, 22:51):
>
> While trying to build kodi in raspbian bullseye-staging, after working around the font build issues I am running into a segfault from jsonschemabuilder. It looks like it's segfaulting before even reaching main, possibly due to some issue with static initalisation order. I got a backtrace but it wasn't hugely meaningful.
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00000000 in ?? ()
> (gdb) bt
> #0  0x00000000 in ?? ()
> #1  0xb6eb6230 in ?? () from /usr/lib/arm-linux-gnueabihf/libstdc++.so.6
> #2  0xb6eb627c in std::locale::locale() ()
>     from /usr/lib/arm-linux-gnueabihf/libstdc++.so.6
> #3  0xb6eb2d3c in std::ios_base::Init::Init() ()
>     from /usr/lib/arm-linux-gnueabihf/libstdc++.so.6
> #4  0x0000a810 in __static_initialization_and_destruction_0 (__priority=65535,
>      __initialize_p=1)
>      at ./tools/depends/native/JsonSchemaBuilder/src/JsonSchemaBuilder.cpp:176
> #5 _GLOBAL__sub_I__Z13print_versionRSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E ()
>      at ./tools/depends/native/JsonSchemaBuilder/src/JsonSchemaBuilder.cpp:176
> #6  0x0001def8 in __libc_csu_init ()
> #7  0xb6cc2c98 in __libc_start_main (main=0xbefff774, argc=-1226883072,
>      argv=0xb6cc2c98 <__libc_start_main+160>, init=0x1deac <__libc_csu_init>,
>      fini=0x1df0c <__libc_csu_fini>, rtld_fini=0xb6fde494 <_dl_fini>,
>      stack_end=0xbefff774) at libc-start.c:264
> #8  0x0000a85c in _start ()
>      at ./tools/depends/native/JsonSchemaBuilder/src/JsonSchemaBuilder.cpp:176
> Backtrace stopped: previous frame identical to this frame (corrupt stack?)
> (gdb)
>
> Anyone have any thoughts on this? if I can't find a fix I may end up having to remove kodi from raspbian bullseye.

I saw no similar problem on Debian or Ubuntu. I suspect a toolchain issue.
If you need to patch Kodi I'll be happy to carry the patch in Debian.

Cheers,
Balint


Reply to: