Project

General

Profile

Help about the debugging

Added by Volkan Celebi about 7 years ago

I installed different versions of TVH but not success every versions crashing after a few days later (sometimes after a few hours) Therefore I fhave been followed the tutorial but it is a bit complicated for the linux newbies. I added TVH pin to GCC and I executed the following commands:

echo core.%h.%e.%t | sudo tee /proc/sys/kernel/core_pattern
core.%h.%e.%t
[root@localhost ~]# echo 0 | sudo tee /proc/sys/kernel/core_uses_pid
0
[root@localhost ~]# gdb tvheadend core
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-94.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying" 
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/tvheadend...Reading symbols from /usr/bin/tvheadend...(no debugging symbols found)...done.
(no debugging symbols found)...done.
/root/core: No such file or directory.
Missing separate debuginfos, use: debuginfo-install tvheadend-4.2.3-20~g407c8a3.el7.centos.x86_64
(gdb) exit
Undefined command: "exit".  Try "help".
(gdb) quit
[root@localhost ~]# tvheadend -v
tvheadend: version 4.2.3-20~g407c8a3.el7.centos
[root@localhost ~]# gdb tvheadend-4.2.3-20~g407c8a3.el7.centos core
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-94.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying" 
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
tvheadend-4.2.3-20~g407c8a3.el7.centos: No such file or directory.
/root/core: No such file or directory.
(gdb) quit
[root@localhost ~]# 

I think some things are missing. Could you please help me