Project

General

Profile

Bug #5108

Deadlock on shutdown with DDCI

Added by Daniel Scheller about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Descrambling
Target version:
-
Start date:
2018-05-10
Due date:
% Done:

0%

Estimated time:
Found in version:
gitd941885
Affected Versions:

Description

Copying from https://github.com/tvheadend/tvheadend/pull/1090#issuecomment-378722161

With Tvheadend as of April 4 (d941885), Tvheadend deadlocks during shutdown (ie. systemctl stop tvheadend) if at least one channel has been descrambled through a CAM via the DDCI implementation. It doesn't if the CAM wasn't used at all during the process' lifetime. From the gdb backtrace (attached) it looks like it's waiting in linuxdvb_ddci_rd_thread_stop, but this guess could aswell be just wrong.

I can't reproduce this right now with current GIT HEAD (595fd17) as I'm getting crashes and deadlocks all over the place (last one was in tvhlog.c) when trying to do so. Copying the reported problem to redmine anyway so it won't get lost in the GitHub PR comment.


Files

tvh-deadlock.txt (20.7 KB) tvh-deadlock.txt Daniel Scheller, 2018-05-10 13:36

Also available in: Atom PDF