[mythtv-users] mythfrontend crash

David Hampton mythtv at love2code.net
Mon Nov 22 19:24:42 UTC 2021


On Mon, 2021-11-22 at 14:09 -0500, David Hampton wrote:
> On Mon, 2021-11-22 at 13:30 -0500, James Abernathy wrote:
> > 
> > 
> > On Mon, Nov 22, 2021 at 1:15 PM David Hampton via mythtv-users
> > <mythtv-users at mythtv.org> wrote:
> > > 
> > > Hi Jim,
> > > 
> > > Can you generate a stack trace from the core file?
> > > 
> > > David
> > > 
> > 
> > 
> > Unfortunately not with this crash. I'll have to wait until it
> > happens
> > again. I'm in the process of building an automated script to do all
> > the backend stuff like setting up mariadb, mythweb, mythtv user,
> > mythtv/config.xml, XMLTV, etc.
> > 
> > Since I could not reproduce the error, I blew away the system and
> > reinstalled it so I could test my script.  With the newest build I
> > have not had any issues.  So I'll have to wait until it happens
> > again.
> > 
> > Can you point me to how to generate a strack track from the core
> > file??
> > 
> > MythTV Forums: https://forum.mythtv.org
> 
> The following should do it...
> 
>    $ gdb <path to mythfrontend> <corefile>
>    (gdb) set pagination off
>    (gdb) thread apply all bt
>    (gdb) quit
> 
> You can also mash that all together as a single command:
> 
>    $ gdb <path to mythfrontend> <corefile> \
>         -iex "set pagination off" \
>         -ex "thread apply all bt" \
>         -ex "quit"
> 
> On my fedora system core dump files end up compressed with zstd in
> the
> /var/lib/systemd/coredump directory.  After giving myself read
> permission on the file, I decompressed it with the command "unzstd
> <path to core> -o core" before starting gdb with the uncompressed
> copy
> of the core file.

Actually, if your core dump files are in /var/lib/systemd/coredump its
even easier. Run:

    $ coredumpctl | tail
    $ coredumpctl info <pid>

where the pid is the number following the date and time in the output
of the first command.

David



More information about the mythtv-users mailing list