Opened 8 years ago

Closed 6 years ago

#9261 closed Bug Report - Hang/Deadlock (Need more Info)

[HANG] Mythbackend hangs after upgrade to 0.24-fixes when try to start recording

Reported by: ernst.reiter@… Owned by: stuartm
Priority: critical Milestone: 0.26
Component: MythTV - EIT Version: 0.24-fixes
Severity: low Keywords:
Cc: Ticket locked: no

Description

After the upgrade to 0.24 when tring to start a recording, mythbackend stops responding. Backtrace and log is attached.

Attachments (2)

gdb.txt (63.7 KB) - added by ernst.reiter@… 8 years ago.
myth.log (4.3 KB) - added by ernst.reiter@… 8 years ago.

Download all attachments as: .zip

Change History (13)

Changed 8 years ago by ernst.reiter@…

Attachment: gdb.txt added

Changed 8 years ago by ernst.reiter@…

Attachment: myth.log added

comment:1 Changed 8 years ago by robertm

Status: newassigned

comment:2 Changed 8 years ago by danielk

Component: MythTV - RecordingMythTV - EIT
Owner: danielk deleted
Priority: majorminor
Severity: mediumlow
Status: assignednew

This appears to be caused by a dead lock in the EIT shutdown code.

comment:3 Changed 8 years ago by Kenni Lund [kenni a kelu dot dk]

Milestone: unknown
Owner: set to Stuart Auchterlonie
Status: newassigned

comment:4 Changed 8 years ago by jrauti@…

I have same problem with my system and I can see same deadlock with EITScanner::lock on my gdb backtrace. Is it possible that EITScanner::RunEventLoop?() manages to monopolise lock so that EITScanner::StopPassiveScan? can't get lock? This link http://stackoverflow.com/questions/2121200/qmutex-stuck-in-locked-state suggests that it is possible scenario. Most of the RunEventLoop?() runs with lock activated most it's time especially when activeScan==false. One fact that speaks also for this is that I can do controlled shutdown for backend in couple seconds so it's deadlock that can be resolved. Could solution be that RunEventLoop?() is chanced so that it does sched_yield (or sleeps) when activeScan==false?

comment:5 Changed 7 years ago by beirdo

Summary: Mythbackend hangs after upgrade to 0.24-fixes when try to start recording[HANG] Mythbackend hangs after upgrade to 0.24-fixes when try to start recording

comment:6 Changed 7 years ago by beirdo

#9583 may be a dupe of this.

comment:7 Changed 6 years ago by stuartm

Milestone: unknown0.25
Owner: changed from Stuart Auchterlonie to stuartm
Priority: minorcritical
Status: assignedaccepted
Type: Bug ReportBug Report - Hang/Deadlock

I'll take this, although I might be asking for input from Stuart A or Daniel

comment:8 Changed 6 years ago by beirdo

Status: acceptedinfoneeded

Is this repeatable with 0.25-rc? If not, let's close this as it is a report against a fairly old version of 0.24, and we have made a year's worth of changes since.

comment:9 Changed 6 years ago by stuartm

Milestone: 0.250.25.1

comment:10 Changed 6 years ago by Raymond Wagner

Milestone: 0.25.10.26

comment:11 Changed 6 years ago by stuartm

Resolution: Need more Info
Status: infoneededclosed
Note: See TracTickets for help on using tickets.