[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 22:32:51 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@…):
I just run
{{{
$ gdb --args mythbackend --loglevel debug -v database
}}}
This is the backtrace now (still not much different)
The problem seems to be a mysql driver issue when closing the idle db
connection...
I'm at as loss here trying to figure it out
{{{
2017-07-14 11:34:20.598847 D Running HouseKeeper.
2017-07-14 11:34:20.598858 D Checking to run DBCleanup
2017-07-14 11:34:20.598862 D Checking to run HardwareProfiler
2017-07-14 11:34:20.598874 D Checking to run JobQueueRecover
2017-07-14 11:34:20.598876 D Checking to run LogClean
2017-07-14 11:34:20.598878 D Checking to run MythFillDB
2017-07-14 11:34:20.598905 D MythFillDatabase scheduled to run at Sat Jul
15 05:32:23 2017 GMT.
2017-07-14 11:34:20.598908 D Checking to run RecordedArtworkUpdate
2017-07-14 11:34:20.598913 D Checking to run ThemeUpdateNotifications
2017-07-14 11:34:20.598916 I Queueing HouseKeeperTask
'ThemeUpdateNotifications'.
2017-07-14 11:34:20.598919 D Checking to run UpdateRadioStreams
2017-07-14 11:34:20.599190 I MSqlQuery::exec(DBManager1) DELETE FROM
settings WHERE value = 'MusicStreamListModified' AND hostname = 'desktop1'
; <<<< Took 0ms
2017-07-14 11:34:20.599202 I Clearing Settings Cache for
'musicstreamlistmodified'.
2017-07-14 11:34:20.599410 I MSqlQuery::exec(DBManager1) SELECT data FROM
settings WHERE value = 'musicstreamlistmodified' AND hostname = 'desktop1'
<<<< Took 0ms, Returned 0 row(s)
2017-07-14 11:34:20.599577 I MSqlQuery::exec(DBManager1) SELECT data FROM
settings WHERE value = 'musicstreamlistmodified' AND hostname IS NULL <<<<
Took 0ms, Returned 0 row(s)
2017-07-14 11:34:20.599594 D Waking HouseKeepingThread.
2017-07-14 11:34:20.599635 I Database object created: DBManager17
2017-07-14 11:34:20.599639 I New DB connection, total: 7
2017-07-14 11:34:20.599641 I Deleting idle DB connection...
Thread 44 "HouseKeeping" received signal SIGPIPE, Broken pipe.
[Switching to Thread 0x7ffef0ff9700 (LWP 1298)]
0x00007fffea53861f in __libc_send (fd=61, buf=0x7fff0400e348, n=5,
flags=0) at ../sysdeps/unix/sysv/linux/x86_64/send.c:26
26 ../sysdeps/unix/sysv/linux/x86_64/send.c: No such file or
directory.
(gdb) bt
#0 0x00007fffea53861f in __libc_send (fd=61, buf=0x7fff0400e348, n=5,
flags=0) at ../sysdeps/unix/sysv/linux/x86_64/send.c:26
#1 0x00007fffd8670c2d in () at /usr/lib/x86_64-linux-
gnu/libmariadbclient.so.18
#2 0x00007fffd864c8f9 in () at /usr/lib/x86_64-linux-
gnu/libmariadbclient.so.18
#3 0x00007fffd864cbe3 in () at /usr/lib/x86_64-linux-
gnu/libmariadbclient.so.18
#4 0x00007fffd864d292 in () at /usr/lib/x86_64-linux-
gnu/libmariadbclient.so.18
#5 0x00007fffd8644a04 in () at /usr/lib/x86_64-linux-
gnu/libmariadbclient.so.18
#6 0x00007fffd8642008 in mysql_select_db () at /usr/lib/x86_64-linux-
gnu/libmariadbclient.so.18
#7 0x00007fffd864204a in mysql_close () at /usr/lib/x86_64-linux-
gnu/libmariadbclient.so.18
#8 0x00007ffff7feba51 in QMYSQLDriver::close() (this=0x7fff04000d70) at
../../../sql/drivers/mysql/qsql_mysql.cpp:1455
#9 0x00007ffff3cc649b in MSqlDatabase::~MSqlDatabase()
(this=0x7fff04000b80, __in_chrg=<optimized out>) at mythdbcon.cpp:102
#10 0x00007ffff3cc8c59 in MDBManager::PurgeIdleConnections(bool)
(this=0x555555a3f7a0, leaveOne=true) at mythdbcon.cpp:427
#11 0x00007ffff3cc8071 in MDBManager::popConnection(bool)
(this=0x555555a3f7a0, reuse=true) at mythdbcon.cpp:300
#12 0x00007ffff3cc9d13 in MSqlQuery::InitCon(MSqlQuery::ConnectionReuse)
(_reuse=MSqlQuery::kNormalConnection) at mythdbcon.cpp:545
#13 0x00007ffff3dbdeae in HouseKeeperTask::UpdateLastRun(QDateTime, bool)
(this=0x555555aec2d0, last=..., successful=false) at housekeeper.cpp:217
#14 0x00007ffff3dbef99 in
PeriodicHouseKeeperTask::UpdateLastRun(QDateTime, bool)
(this=0x555555aec2d0, last=..., successful=false) at housekeeper.cpp:338
#15 0x00007ffff3dc2a96 in HouseKeeperTask::UpdateLastRun(bool)
(this=0x555555aec2d0, successful=false) at housekeeper.h:61
#16 0x00007ffff3dbfd6f in HouseKeepingThread::run() (this=0x555555a6a520)
at housekeeper.cpp:517
#17 0x00007ffff3caaf75 in MThreadInternal::run() (this=0x555555b13ec0) at
mthread.cpp:79
#18 0x00007fffea7f3da8 in () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007fffea52f494 in start_thread (arg=0x7ffef0ff9700) at
pthread_create.c:333
#20 0x00007fffe99d4aff in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:97
}}}
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13068#comment:4>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list