Mailing List Archive

Ticket #10956: Using -v refcount With myth* Commands Causes Endless Log Entries
#10956: Using -v refcount With myth* Commands Causes Endless Log Entries
------------------------------------+--------------------------------------
Reporter: Bill Meek <keemllib@…> | Type: Bug Report - General
Status: new | Priority: minor
Milestone: unknown | Component: MythTV - General
Version: Master Head | Severity: medium
Keywords: | Ticket locked: 0
------------------------------------+--------------------------------------
To Duplicate (get ready to press ctrl-c first):
{{{
mythbackend -v refcount --nodblog --setverbose general
mythshutdown -c --nodblog -v general,refcount
etc.
}}}

Results in the following from libs/libmythbase/referencecounter.cpp
until interrupted with ctrl-c:
{{{
...
2012-07-29 22:14:18.390297 I (0x7f509c418c60)::IncrRef() -> 2
2012-07-29 22:14:18.390337 I (0x7f509c418c60)::DecrRef() -> 1
2012-07-29 22:14:18.390344 I (0x7f509c418c60)::DecrRef() -> 0
2012-07-29 22:14:18.390467 I (0x21102c0)::IncrRef() -> 2
2012-07-29 22:14:18.390495 I (0x21102c0)::DecrRef() -> 1
2012-07-29 22:14:18.390509 I (0x21102c0)::DecrRef() -> 0
...
}}}

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10956>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #10956: Using -v refcount With myth* Commands Causes Endless Log Entries [ In reply to ]
#10956: Using -v refcount With myth* Commands Causes Endless Log Entries
------------------------------------+-----------------------------
Reporter: Bill Meek <keemllib@…> | Owner:
Type: Bug Report - General | Status: closed
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: Master Head
Severity: medium | Resolution: Won't Fix
Keywords: | Ticket locked: 0
------------------------------------+-----------------------------
Changes (by beirdo):

* status: new => closed
* resolution: => Won't Fix


Comment:

This is not a bug. That verbose mask setting is there specifically for
debugging the reference counters. If you don't want the output, don't
mask it on.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10956#comment:1>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #10956: Using -v refcount With myth* Commands Causes Endless Log Entries [ In reply to ]
#10956: Using -v refcount With myth* Commands Causes Endless Log Entries
------------------------------------+-----------------------------
Reporter: Bill Meek <keemllib@…> | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: 0.26
Component: MythTV - General | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
------------------------------------+-----------------------------
Changes (by danielk):

* status: closed => new
* resolution: Won't Fix =>
* milestone: unknown => 0.26


Comment:

There is actually infinite recursion going on. We are logging the
reference count changes for LoggingItem which causes another logging item
to be created, creating another reference count message, causing another
logging item to be created ad-infinitum. I'll commit a fix shortly.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10956#comment:2>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #10956: Using -v refcount With myth* Commands Causes Endless Log Entries [ In reply to ]
#10956: Using -v refcount With myth* Commands Causes Endless Log Entries
-------------------------+-------------------------------------------------
Reporter: Bill Meek | Owner: Daniel Thor Kristjansson
<keemllib@…> | <danielk@…>
Type: Bug Report | Status: closed
- General | Milestone: 0.26
Priority: minor | Version: Master Head
Component: MythTV - | Resolution: fixed
General | Ticket locked: 0
Severity: medium |
Keywords: |
-------------------------+-------------------------------------------------
Changes (by Daniel Thor Kristjansson <danielk@…>):

* owner: => Daniel Thor Kristjansson <danielk@…>
* status: new => closed
* resolution: => fixed


Comment:

In [changeset:922b1d2be8175e7a83af7cb7de930ece7d6df4a4/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="922b1d2be8175e7a83af7cb7de930ece7d6df4a4"
Fixes #10956. Special case LoggingItem in ReferenceCounter.

We can't LOG the LoggingItem reference counter as that will lead to
infinite recursion.
We also can't LOG in PrintDebug() under the leakLock lock anymore because
that will lead to a deadlock.
}}}

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10956#comment:3>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-commits