[mythtv-commits] Ticket #13068: Scheduler crashes before recording starts after backend has been running for a few days
MythTV
noreply at mythtv.org
Fri Jul 14 01:49:16 UTC 2017
#13068: Scheduler crashes before recording starts after backend has been running
for a few days
---------------------------------+------------------------
Reporter: WilliamDeRieux@… | Owner: gigem
Type: Bug Report - Crash | Status: new
Priority: major | Milestone: 0.28.2
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
---------------------------------+------------------------
Comment (by WilliamDeRieux@…):
Replying to [comment:1 WilliamDeRieux@…]:
> Runnig with command...
>
> {{{
> $ gdb --args mythbackend --loglevel debug -v schedule
> }}}
>
> Produced a backtrace that was identicial to the one that I had already
posted and the debug log output showed nothing different.
>
> It's happening when the Scheduler attempts to run the FillRecordingDir
function...and it happens right before something is about to record.
>
> It crashed again about 22 hours after I opened this ticket.
The crash seems to originate after the scheduler::run function tries to
read the WakeUpThreshold setting.
In my settings table no setting named WakeUpThreshold exists, so it would
default to 300.
{{{
scheduler.cpp:2051 (in function void Scheduler::run(void))
wakeThreshold =
gCoreContext->GetNumSetting("WakeUpThreshold", 300);
}}}
In mythdbcon.cpp:427 (in function void
MDBManager::PurgeIdleConnections(bool leaveOne))
it deletes the idle DB connection
Subsequently after the idle connections are closed the destructor is
called in mythdbcon.cpp:102 (MSqlDatabase::~MSqlDatabase())
which attempts to close the db connection -- after the connection had been
deleted.
----------------------------------------
I am no expert but I believe the db connection should be closed before it
is deleted....
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13068#comment:2>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list