[mythtv-users] What is commflag "exit status 140"?

Phil Bridges gravityhammer at gmail.com
Thu Sep 6 22:25:07 UTC 2012


On Thu, Sep 6, 2012 at 6:14 PM, Michael T. Dean <mtdean at thirdcontact.com> wrote:
> On 09/06/2012 04:47 PM, Phil Bridges wrote:
>>
>> Since upgrading to .25-fixes, my slave backend has decided to error on
>> commercial detection.  If I look at my backend log, I see:
>>
>> 2012-09-06 16:32:26.352429 I [6825/10080] Commflag_6848
>> jobqueue.cpp:2276 (DoFlagCommercialsThread) - JobQueue: Commercial
>> Detection Starting for "Blah" recorded from channel 1051 at
>> 2012-09-06T16:00:00
>> 2012-09-06 16:32:26.450483 E [6825/10080] Commflag_6848
>> jobqueue.cpp:2362 (DoFlagCommercialsThread) - JobQueue: Commercial
>> Detection Errored: "Blah" recorded from channel 1051 at
>> 2012-09-06T16:00:00 (Failed with exit status 140)
>>
>> Restarting the backend will fix the problem - for a while.  What is
>> "exit status 140", and how do I fix it?
>>
>> I've also noticed that when this happens, the backend stops generating
>> the preview image for MythWeb:
>>
>> 2012-09-06 16:37:00.095873 E [6825/10083] HttpServer50
>> previewgenerator.cpp:254 (Run) - Preview: Encountered problems running
>> '/usr/bin/mythpreviewgen --size 100x56 --chanid 1301 --starttime
>> 20120906060000 --outfile
>> "/mnt/video2/recordings/1301_20120906060000.mpg.-1.100x56.png"
>> --verbose general --logpath /var/log/mythtv --loglevel info --quiet'
>> (140)
>>
>> If I run the command manually, I don't get the error, and the preview
>> works fine.
>
>
> #define GENERIC_EXIT_KILLED 140 ///< Process killed or stopped
>
> from
> https://github.com/MythTV/mythtv/blob/fixes/0.25/mythtv/libs/libmythbase/exitcodes.h
>
> which means that something is killing the process. If you're not the one
> doing the killing and it keeps happening--especially if it's most common
> after the backend has been running for a while--I would guess that you're
> getting hit by the OOM killer (the kernel is killing off processes because
> you're out of memory and don't have enough swap space).
>
> Mike

Hmm - here's my current top:

Mem:   4050052k total,  4015012k used,    35040k free,     3712k buffers
Swap:  2097148k total,    27840k used,  2069308k free,  3466692k cached

The backend has been running for a few days, and is still not comm-flagging.


More information about the mythtv-users mailing list