Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Commits

Ticket #10956: Using -v refcount With myth* Commands Causes Endless Log Entries

 

 

MythTV commits RSS feed   Index | Next | Previous | View Threaded


noreply at mythtv

Jul 29, 2012, 8:38 PM

Post #1 of 4 (137 views)
Permalink
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 [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jul 30, 2012, 1:01 AM

Post #2 of 4 (133 views)
Permalink
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 [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jul 30, 2012, 6:36 AM

Post #3 of 4 (130 views)
Permalink
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 [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jul 30, 2012, 7:26 AM

Post #4 of 4 (131 views)
Permalink
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 [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits

MythTV commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.