Project

General

Profile

Bug #4167

Hang after resume

Added by Ivan Kalvachev almost 8 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Crashes
Target version:
-
Start date:
2017-01-07
Due date:
% Done:

0%

Estimated time:
Found in version:
4.1-1931~gc3eefc6
Affected Versions:

Description

I've had this issue for a while and I wasn't sure how to exactly reproduce it.
I suspect that it happens when I resume (in this case, after suspend to disk) and it is time for a recording. This is part of the log:

2017-01-06 02:04:36.039 [ INFO] subscription: 0041: "epggrab" unsubscribing
2017-01-06 11:11:25.157 [ ERROR] tcp: tcp_server_loop: tvhpoll_wait: Прекъснато системно извикване (Interrupted system call)
2017-01-06 11:11:25.212 [ INFO] linuxdvb: adapter removed /dev/dvb/adapter0
2017-01-06 11:11:25.216 [ INFO] dvr: "Дързост и красота " on "BNT1" recorder starting

The tvheadend hangs and only `kill -9 ` could make it exit. Attaching `gdb -p` gives the following backtrace:

#0 0x00007f8bc4e1b91d in pthread_join () from /lib64/libpthread.so.0
#1 0x000055b41962af78 in dvr_rec_unsubscribe (de=0x7f8b5c0435a0) at src/dvr/dvr_rec.c:166
#2 0x000055b419626b35 in dvr_stop_recording (de=0x7f8b5c0435a0, stopcode=0, saveconf=1, clone=<optimized out> ) at src/dvr/dvr_db.c:2063
#3 0x000055b4195a5a84 in mainloop () at src/main.c:705
#4 main (argc=<optimized out>, argv=<optimized out> ) at src/main.c:1259

History

#1

Updated by Ivan Kalvachev over 7 years ago

Ivan Kalvachev wrote:

I've had this issue for a while and I wasn't sure how to exactly reproduce it.
I suspect that it happens when I resume (in this case, after suspend to disk) and it is time for a recording.

I just want to point out that my suspicion was wrong. It hangs when a recording is completely missed.

E.g. In the example above, there is repeat of a recording in 4am. The computer is turned off during the night so it misses it completely. When computer resumes, it tries to start the recording, then (obviously) tries to stop it and dead-locks along the way.

It still happens with Tvheadend version 4.3-206~gb5ec51c3f .

Also available in: Atom PDF