[mythtv-users] mythbackend still eats memory: the current status

Richard Shaw hobbes1069 at gmail.com
Sat Jan 10 03:45:24 UTC 2009


On Fri, Jan 9, 2009 at 10:04 AM, Michael T. Dean
<mtdean at thirdcontact.com> wrote:
> On 01/09/2009 09:37 AM, Greg Estabrooks wrote:
>>> Would 1.666 Ghz AMD Thunderbird be 'powerfull' enough to run both the
>>> backend and valgrind?
>>>
>> That should be fine to run both.
>
> Assuming you have sufficient RAM.

Sorry to jump in here so late in the thread...

I just tried running mythbackend under valgrind for about 30 seconds
and got some output. Keeping in mine that I was running a tunerless
backend which is unsupported (although I don't think that would be an
excuse to leak memory), is the below normal or a problem? It did start
a commflag job from the MBE...

System is F10 x86_64 w/ 2GB system memory and mythtv-0.21-15 from rpmfusion.

Thanks,
Richard

valgind output:

[richard at hobbes ~]$ valgrind mythbackend
==21300== Memcheck, a memory error detector.
==21300== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==21300== Using LibVEX rev 1804, a library for dynamic binary translation.
==21300== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==21300== Using valgrind-3.3.0, a dynamic binary instrumentation framework.
==21300== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==21300== For more details, rerun with: -v
==21300==
2009-01-09 21:27:56.677 Using runtime prefix = /usr
2009-01-09 21:27:56.888 Empty LocalHostName.
2009-01-09 21:27:56.903 Using localhost value of hobbes.localdomain
2009-01-09 21:27:57.823 New DB connection, total: 1
2009-01-09 21:27:58.167 Connected to database 'mythconverg' at host: 192.168.0.4
2009-01-09 21:27:58.279 Closing DB connection named 'DBManager0'
2009-01-09 21:27:58.312 Connected to database 'mythconverg' at host: 192.168.0.4
2009-01-09 21:27:58.364 New DB connection, total: 2
2009-01-09 21:27:58.367 Connected to database 'mythconverg' at host: 192.168.0.4
2009-01-09 21:27:58.461 Current Schema Version: 1214
Running as a slave backend.
ERROR: no valid capture cards are defined in the database.
Perhaps you should read the installation instructions?
2009-01-09 21:27:58.700 New DB connection, total: 3
2009-01-09 21:27:58.924 Connected to database 'mythconverg' at host: 192.168.0.4
2009-01-09 21:27:59.273 MediaServer:: Loopback address specified -
127.0.0.1. Disabling UPnP
2009-01-09 21:27:59.282 Main::Registering HttpStatus Extension
2009-01-09 21:27:59.288 mythbackend version: 0.21.20080304-1 www.mythtv.org
2009-01-09 21:27:59.294 Enabled verbose msgs:  important general
==21300== Syscall param write(buf) points to uninitialised byte(s)
==21300==    at 0x3ECC60DEDB: (within /lib64/libpthread-2.9.so)
==21300==    by 0x3ED780996E: (within /usr/lib64/libICE.so.6.3.0)
==21300==    by 0x3ED780DBCF: _IceWrite (in /usr/lib64/libICE.so.6.3.0)
==21300==    by 0x3ED780DCB3: IceFlush (in /usr/lib64/libICE.so.6.3.0)
==21300==    by 0x3A89E8AF3C: (within /usr/lib64/qt-3.3/lib/libqt-mt.so.3.3.8)
==21300==    by 0x3A89E8B0D1: (within /usr/lib64/qt-3.3/lib/libqt-mt.so.3.3.8)
==21300==    by 0x3A89E92B7D: (within /usr/lib64/qt-3.3/lib/libqt-mt.so.3.3.8)
==21300==    by 0x3A89E937A9: (within /usr/lib64/qt-3.3/lib/libqt-mt.so.3.3.8)
==21300==    by 0x3ED7406496: _SmcProcessMessage (in /usr/lib64/libSM.so.6.0.0)
==21300==    by 0x3ED7812213: IceProcessMessages (in /usr/lib64/libICE.so.6.3.0)
==21300==    by 0x3A89E8B69F: QSmSocketReceiver::qt_invoke(int,
QUObject*) (in /usr/lib64/qt-3.3/lib/libqt-mt.so.3.3.8)
==21300==    by 0x3A89F605BE:
QObject::activate_signal(QConnectionList*, QUObject*) (in
/usr/lib64/qt-3.3/lib/libqt-mt.so.3.3.8)
==21300==  Address 0x51c5584 is 12 bytes inside a block of size 1,024 alloc'd
==21300==    at 0x4A05174: calloc (vg_replace_malloc.c:397)
==21300==    by 0x3ED7805E59: IceOpenConnection (in /usr/lib64/libICE.so.6.3.0)
==21300==    by 0x3ED74027A0: SmcOpenConnection (in /usr/lib64/libSM.so.6.0.0)
==21300==    by 0x3A89E909FD:
QSessionManager::QSessionManager(QApplication*, QString&, QString&)
(in /usr/lib64/qt-3.3/lib/libqt-mt.so.3.3.8)
==21300==    by 0x3A89F035EA: QApplication::initialize(int, char**)
(in /usr/lib64/qt-3.3/lib/libqt-mt.so.3.3.8)
==21300==    by 0x3A89F0461B: QApplication::construct(int&, char**,
QApplication::Type) (in /usr/lib64/qt-3.3/lib/libqt-mt.so.3.3.8)
==21300==    by 0x3A89F04931: QApplication::QApplication(int&, char**,
bool) (in /usr/lib64/qt-3.3/lib/libqt-mt.so.3.3.8)
==21300==    by 0x441373: (within /usr/bin/mythbackend)
==21300==    by 0x3ECBA1E575: (below main) (in /lib64/libc-2.9.so)
2009-01-09 21:28:00.476 Connecting to master server: 192.168.0.4:6543
2009-01-09 21:28:00.531 Connected successfully
2009-01-09 21:28:09.907 JobQueue: Commercial Flagging Starting for
Curious George "Grease Monkeys in Space; Pinata Vision" recorded from
channel 1101 at Fri Jan 9 07:00:00 2009
2009-01-09 21:28:10.176 Using runtime prefix = /usr
2009-01-09 21:28:10.176 Empty LocalHostName.
2009-01-09 21:28:10.177 Using localhost value of hobbes.localdomain
2009-01-09 21:28:10.204 New DB connection, total: 1
2009-01-09 21:28:10.213 Connected to database 'mythconverg' at host: 192.168.0.4
2009-01-09 21:28:10.214 Closing DB connection named 'DBManager0'
2009-01-09 21:28:10.216 Connected to database 'mythconverg' at host: 192.168.0.4
2009-01-09 21:28:10.247 New DB connection, total: 2
2009-01-09 21:28:10.249 Connected to database 'mythconverg' at host: 192.168.0.4
2009-01-09 21:28:10.408 Connecting to backend server: 192.168.0.4:6543
(try 1 of 5)
2009-01-09 21:28:10.409 Using protocol version 40
2009-01-09 21:28:10.422 DB Error (SetInUse):
Query was:
INSERT INTO inuseprograms  (chanid, starttime, recusage, hostname,
lastupdatetime,  rechost, recdir )  VALUES  ('1101',
'2009-01-09T07:00:00', 'flagger', 'hobbes.localdomain',
'2009-01-09T21:28:10',  'calvin.localdomain', NULL);
Driver error was [2/1048]:
QMYSQL3: Unable to execute query
Database error was:
Column 'recdir' cannot be null

2009-01-09 21:28:11.324 AFD: Opened codec 0x19daf70, id(MPEG2VIDEO) type(Video)
2009-01-09 21:28:11.324 AFD: codec AC3 has 2 channels
2009-01-09 21:28:11.326 AFD: Opened codec 0x19db450, id(AC3) type(Audio)
2009-01-09 21:28:11.326 AFD: codec AC3 has 2 channels
2009-01-09 21:28:11.327 AFD: Opened codec 0x19dba90, id(AC3) type(Audio)
2009-01-09 21:28:11.329 AFD: Opened codec 0x19dc0d0, id(MPEG1VIDEO) type(Video)
2009-01-09 21:28:15.101 [mpeg2video @ 0x3a8df879c0]mb incr damaged
2009-01-09 21:28:15.109 [mpeg2video @ 0x3a8df879c0]Warning MVs not available
2009-01-09 21:28:15.124 [ac3 @ 0x3a8df879c0]frame CRC mismatch
2009-01-09 21:28:15.369 JobQueue: Commercial Flagging Starting for
Clifford the Big Red Dog "Clifford Grows Up; Jetta's Sweater" recorded
from channel 1101 at Fri Jan 9 08:30:00 2009
2009-01-09 21:28:15.425 Using runtime prefix = /usr
2009-01-09 21:28:15.426 Empty LocalHostName.
2009-01-09 21:28:15.426 Using localhost value of hobbes.localdomain
2009-01-09 21:28:15.440 New DB connection, total: 1
2009-01-09 21:28:15.736 Connected to database 'mythconverg' at host: 192.168.0.4
2009-01-09 21:28:15.737 Closing DB connection named 'DBManager0'
2009-01-09 21:28:15.739 Connected to database 'mythconverg' at host: 192.168.0.4
2009-01-09 21:28:15.743 New DB connection, total: 2
2009-01-09 21:28:15.745 Connected to database 'mythconverg' at host: 192.168.0.4
2009-01-09 21:28:15.786 Connecting to backend server: 192.168.0.4:6543
(try 1 of 5)
2009-01-09 21:28:15.788 Using protocol version 40
2009-01-09 21:28:15.797 DB Error (SetInUse):
Query was:
INSERT INTO inuseprograms  (chanid, starttime, recusage, hostname,
lastupdatetime,  rechost, recdir )  VALUES  ('1101',
'2009-01-09T08:30:00', 'flagger', 'hobbes.localdomain',
'2009-01-09T21:28:15',  'calvin.localdomain', NULL);
Driver error was [2/1048]:
QMYSQL3: Unable to execute query
Database error was:
Column 'recdir' cannot be null

2009-01-09 21:28:18.025 AFD: Opened codec 0x1ab21e0, id(MPEG2VIDEO) type(Video)
2009-01-09 21:28:18.025 AFD: codec AC3 has 2 channels
2009-01-09 21:28:18.026 AFD: Opened codec 0x1ab26c0, id(AC3) type(Audio)
2009-01-09 21:28:18.026 AFD: codec AC3 has 2 channels
2009-01-09 21:28:18.027 AFD: Opened codec 0x1ab2d00, id(AC3) type(Audio)
2009-01-09 21:28:18.196 AFD: Opened codec 0x1ab3340, id(MPEG1VIDEO) type(Video)
2009-01-09 21:28:42.458 [mpeg2video @ 0x3a8df879c0]ac-tex damaged at 77 26
2009-01-09 21:28:42.459 [mpeg2video @ 0x3a8df879c0]skipped MB in I
frame at 90 26
2009-01-09 21:28:42.469 [mpeg2video @ 0x3a8df879c0]Warning MVs not available
^C==21300==
==21300== ERROR SUMMARY: 5 errors from 1 contexts (suppressed: 6 from 1)
==21300== malloc/free: in use at exit: 1,242,797 bytes in 21,415 blocks.
==21300== malloc/free: 125,166 allocs, 103,751 frees, 5,548,121 bytes allocated.
==21300== For counts of detected errors, rerun with: -v
==21300== searching for pointers to 21,415 not-freed blocks.
==21300== checked 114,046,296 bytes.
==21300==
==21300== LEAK SUMMARY:
==21300==    definitely lost: 2,448 bytes in 51 blocks.
==21300==      possibly lost: 3,520 bytes in 10 blocks.
==21300==    still reachable: 1,236,829 bytes in 21,354 blocks.
==21300==         suppressed: 0 bytes in 0 blocks.
==21300== Rerun with --leak-check=full to see details of leaked memory.
Killed


More information about the mythtv-users mailing list