mythtv-31.0_p20210606 mythbackend segfault

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
raydude
Junior
Posts: 25
Joined: Sat Sep 02, 2017 8:08 pm
United States of America

mythtv-31.0_p20210606 mythbackend segfault

Post by raydude »

I'm really hoping to record the olympics, but the latest update under Gentoo has given me a problem in mythbackend.

It is segfaulting in the middle of the night. This is not related to the mariadb / mysql issues as those patches have been applied.

The only clue in the standard log are 12420 of these NAL messages, at the end of the log followed by a segfault.

I'm going to run the mythbackend in the foreground with more logging on, but I was hoping someone would recognize this and know how to fix it

I will update the thread if I get anymore information.

Code: Select all

2021-06-17 10:59:10.513288 E [23702/722] HDHRStreamHandler mpeg/H264Parser.cpp:544 (addBytes) - H264Parser::addbytes: malformed NAL units
2021-06-17 10:59:10.513297 E [23702/722] HDHRStreamHandler mpeg/H264Parser.cpp:544 (addBytes) - H264Parser::addbytes: malformed NAL units
2021-06-17 10:59:10.513833 C [23702/23702] CoreContext signalhandling.cpp:299 (handleSignal) - Received Segmentation fault: Code 2, PID -197345592, UID 32736, Value 0x00000000
These errors occur just as the backend is supposed to be launching two recorders.

Thanks in advance.
User avatar
paulh
Developer
Posts: 909
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: mythtv-31.0_p20210606 mythbackend segfault

Post by paulh »

Enable a debug build in Gentoo of the MythTV package and then run mythfrontend under gdb to get a backtrace of the crash and post it here.

There are some Gentoo specific instructions on the wiki (don't know if they are up to date though)
https://www.mythtv.org/wiki/Debugging#Gentoo_ebuilds
raydude
Junior
Posts: 25
Joined: Sat Sep 02, 2017 8:08 pm
United States of America

Re: mythtv-31.0_p20210606 mythbackend segfault

Post by raydude »

paulh wrote:
Fri Jun 18, 2021 11:48 am
Enable a debug build in Gentoo of the MythTV package and then run mythfrontend under gdb to get a backtrace of the crash and post it here.

There are some Gentoo specific instructions on the wiki (don't know if they are up to date though)
https://www.mythtv.org/wiki/Debugging#Gentoo_ebuilds
Thanks for replying. I'm running mythbackend as root in the foreground and it lasted overnight after failing three nights in a row.

When it crashes again, I'll post the full log. If that's not enough to figure out what went wrong then I'll figure out how to build with debug. I've never done that before.

It might only be crashing when two recordings start at exactly the same time. That won't happen again until the 22nd...
Post Reply