Davor Komljenovic wrote:
> Hello,
>
> I am running Tvheadend 4.1-2286~gb15b02c on Odroid XU4 running Debian Jessie with OScam r11279 and watching using Kodi. I am using a Smargo Smartreader v2. Tuner is HDHomeRun Expand (4 tuners).
>
> Watching SD encrypted channels works fine. When switching to any HD encrypted channel, Tvheadend crashes. There is no error message, it just crashes. Same setup (maybe slightly different Tvheadend versions) works perfectly on multiple other computers. Unencrypted HD channels work perfectly.
>
> I do see these two errors every time this happens (when running dmesg usb):
> Alignment trap: not handling instruction edd10b00 at ...
> Unhandled fault: alignment exception (0x001) at ...
>
> Seems like it has something to do with the Smartreader but I can't figure out what and it is strange that SD channels work. Comparing Odroid XU4 to other computers I tested, the USB ports and the operating system (specifically the Debian Jessie server image I am using) are the major differences.
>
> Any thoughts? Since this is going to be my PVR machine, I need this to work.
Install the debug version of tvheadend (tvheadend_dbg), corekeeper and gdb (sudo apt-get install tvheadend_dbg corekeeper gdb).
Run tvheadend as normal & when it crashes use gdb to parse the dump, dumps are placed in /var/crash.
So..
After a crash check there is a dump in /var/crash (use sudo ls /var/crash) & then start GDB using the tvheadend binary & the core dump.:
$ sudo gdb /usr/bin/tvheadend /var/crash/<0>/<dump>
Set logging to a temp file:
$ set logging on /tmp/gdb.txt
Get a full trace:
$ thread apply all bt full
Exit:
$ quit
Edit the /tmp/gdb.txt & file to remove any personal info (lines that say password (including 0x.... lines). You may want to do this on another pc rather than via terminal.
$ nano /tmp/gdb.txt
Once you have the trace, open a new issue on here and attach the log & include everything you think may be necessary.