Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#10970 closed Bug Report - General (fixed)

Mythbackend failed recordings, deadlocks

Reported by: Peter Townsend <elpinkus@…> Owned by: Daniel Kristjansson <danielk@…>
Priority: minor Milestone: 0.26
Component: MythTV - General Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

In the last week or so, my backend has been getting into a state where all recordings fail to start. Killing mythbackend and running it again makes things record again for a day or two.

This afternoon two recordings failed to start and mythbackend stopped responding through mythweb or the internal webserver.

I followed the instructions on the wiki for attaching gdb and generating a backtrace. Let me know what other information I can provide.

Running version v0.26-alpha-79-gb379de3. Possibly related to #10870.

Attachments (3)

mythbackend.tar.bz2 (261.9 KB ) - added by Peter Townsend <elpinkus@…> 13 years ago.
Backend log
gdb.txt (103.6 KB ) - added by Peter Townsend <elpinkus@…> 13 years ago.
Backtrace
version.txt (823 bytes ) - added by Peter Townsend <elpinkus@…> 13 years ago.
--version output

Download all attachments as: .zip

Change History (10)

by Peter Townsend <elpinkus@…>, 13 years ago

Attachment: mythbackend.tar.bz2 added

Backend log

by Peter Townsend <elpinkus@…>, 13 years ago

Attachment: gdb.txt added

Backtrace

by Peter Townsend <elpinkus@…>, 13 years ago

Attachment: version.txt added

--version output

comment:1 by danielk, 13 years ago

Status: newinfoneeded_new

What is your "ulimit -u" output ?

Also, what is the output of "cat /proc/sys/vm/overcommit_memory" ?

comment:2 by Daniel Thor Kristjansson <danielk@…>, 13 years ago

In 9f0be65bfcf192191d8905012f173f80a19f66d5/mythtv:

Error: Processor CommitTicketReference failed
GIT backend not available

comment:3 by danielk, 13 years ago

As far as I can tell this shouldn't be happening.

StreamHandler::Start() seems to be waiting for the thread to start. It's waiting for either _running or _error to be set. I don't see any way that DVBStreamHandler::run() can exit without setting either of those. It also seems like DVBStreamHandler::RunTS() is running a piece of code that would only be run after setting _running to true, however that could be in service of another stream. It is possible that MTHread::start() has called QThread::start(), but the thread was never started because we ran out of memory or we exceeded our process allocation. However, that shouldn't occur with any normally configured Linux system. Finally, while _running is not declared as volatile, the while loop that checks it calls a function outside the current translation unit so gcc should not optimise the check away since it can't know that _running isn't set by that call.

comment:4 by Peter Townsend <elpinkus@…>, 13 years ago

ulimit -u 31520

cat /proc/sys/vm/overcommit_memory 0

comment:5 by Daniel Kristjansson <danielk@…>, 13 years ago

Owner: set to Daniel Kristjansson <danielk@…>
Resolution: fixed
Status: infoneeded_newclosed

In 7d01e691d2bb58ed7dcbbdcca93ec06dc3a7381b/mythtv:

Error: Processor CommitTicketReference failed
GIT backend not available

comment:6 by danielk, 13 years ago

Milestone: unknown0.26

comment:7 by Daniel Kristjansson <danielk@…>, 13 years ago

In eb52783e9f7ad232cbf4afb22dbc604898514e45/mythtv:

Error: Processor CommitTicketReference failed
GIT backend not available
Note: See TracTickets for help on using tickets.