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

Mailing List Archive: MythTV: Commits

Ticket #10924: mythlogserver segfault when ending

 

 

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


noreply at mythtv

Jul 20, 2012, 5:47 PM

Post #1 of 11 (218 views)
Permalink
Ticket #10924: mythlogserver segfault when ending

#10924: mythlogserver segfault when ending
--------------------------------------+-------------------------
Reporter: jyavenard | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: Unspecified
Severity: medium | Keywords:
Ticket locked: 0 |
--------------------------------------+-------------------------
Starting mythlogserver manually, no daemon.
After a while it will exit due to inactivity, it will then segfault:

{{{
(gdb) bt full
#0 0x00000001036e85c8 in QObject::metaObject ()
No symbol table info available.
#1 0x00000001036eed27 in QObject::disconnect ()
No symbol table info available.
#2 0x000000010219f342 in QObject::disconnect (this=0x109e00040,
receiver=0x106d25930, member=0x0) at qobject.h:252
No locals.
#3 0x000000010349a26d in nzmqt::PollingZMQContext::unregisterSocket
(this=0x106d25930, socket_=0x109e00040) at nzmqt.hpp:703
lock = {
val = 4409416041
}
poIt = (iterator) 0x109e007f0
soIt = (iterator) 0x106d28588
#4 0x0000000103499848 in nzmqt::PollingZMQContext::qt_static_metacall
(_o=0x106d25930, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x106d2e0a0)
at moc_nzmqt.cpp:401
_t = ('nzmqt::PollingZMQContext' *) 0x106d25930
#5 0x00000001036e98e1 in QObject::event ()
No symbol table info available.
#6 0x00000001036d4d7f in QCoreApplicationPrivate::notify_helper ()
No symbol table info available.
#7 0x00000001036d5355 in QCoreApplication::notify ()
No symbol table info available.
#8 0x00000001036d517c in QCoreApplication::notifyInternal ()
No symbol table info available.
#9 0x00000001036d65a0 in QCoreApplicationPrivate::sendPostedEvents ()
No symbol table info available.
#10 0x000000010370a502 in QEventDispatcherUNIX::processEvents ()
No symbol table info available.
#11 0x00000001036d4094 in QEventLoop::processEvents ()
No symbol table info available.
#12 0x00000001036d4444 in QEventLoop::exec ()
No symbol table info available.
#13 0x00000001035bcf08 in QThread::exec ()
No symbol table info available.
#14 0x000000010208e355 in MThreadInternal::exec (this=0x106d23900) at
mthread.cpp:85
No locals.
#15 0x000000010208dd89 in MThread::exec (this=0x106d24550) at
mthread.cpp:327
No locals.
#16 0x000000010219b1a3 in LogServerThread::run (this=0x106d24540) at
loggingserver.cpp:830
locker = {
val = 4331302216
}
ctx = ('nzmqt::PollingZMQContext' *) 0x106d25930
abortThread = false
e = (ZMQException &) @0x107913800: {
<std::exception> = {
_vptr$exception = 0x10386f3b0
},
members of zmq::error_t:
errnum = 134303232
}
#17 0x000000010219b43c in non-virtual thunk to LogServerThread::run() ()
at loggingserver.cpp:1389
No symbol table info available.
#18 0x000000010208fb6a in MThreadInternal::run (this=0x106d23900) at
mthread.cpp:79
No locals.
#19 0x00000001035c05ba in QThreadPrivate::start ()
No symbol table info available.
#20 0x00007fff86c81782 in _pthread_start ()
No symbol table info available.
#21 0x00007fff86c6e1c1 in thread_start ()
No symbol table info available.
}}}

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10924>
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 20, 2012, 7:25 PM

Post #2 of 11 (238 views)
Permalink
Re: Ticket #10924: mythlogserver segfault when ending [In reply to]

#10924: mythlogserver segfault when ending
------------------------------------+-----------------------------
Reporter: jyavenard | Owner: beirdo
Type: Bug Report - Crash | Status: assigned
Priority: minor | Milestone: unknown
Component: MythTV - Mythlogserver | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
------------------------------------+-----------------------------
Changes (by beirdo):

* owner: => beirdo
* status: new => assigned
* version: Unspecified => Master Head
* component: MythTV - General => MythTV - Mythlogserver
* type: Bug Report - General => Bug Report - Crash


--
Ticket URL: <http://code.mythtv.org/trac/ticket/10924#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

Jan 18, 2013, 5:17 PM

Post #3 of 11 (164 views)
Permalink
Re: Ticket #10924: mythlogserver segfault when ending [In reply to]

#10924: mythlogserver segfault when ending
------------------------------------+-----------------------------
Reporter: jyavenard | Owner: beirdo
Type: Bug Report - Crash | Status: assigned
Priority: minor | Milestone: unknown
Component: MythTV - Mythlogserver | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
------------------------------------+-----------------------------

Comment (by natanojl):

Valgrind log added and reported upstream at
https://github.com/jonnydee/nzmqt/issues/8.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10924#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

Feb 4, 2013, 10:42 PM

Post #4 of 11 (162 views)
Permalink
Re: Ticket #10924: mythlogserver segfault when ending [In reply to]

#10924: mythlogserver segfault when ending
------------------------------------+-----------------------------
Reporter: jyavenard | Owner: beirdo
Type: Bug Report - Crash | Status: assigned
Priority: minor | Milestone: unknown
Component: MythTV - Mythlogserver | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
------------------------------------+-----------------------------

Comment (by faginbagin <mythtv@…>):

I am submitting a patch (mythlogserver-segv.patch) that eliminates the
segfault reported here and in other tickets. It changes the parent of the
polling socket from the `LoggerThread` to the polling context. As a
result, the polling socket is not deleted when the `LoggerThread` is
deleted and the destroyed signal is never triggered leading to the call to
disconnect() the deleted polling socket from the polling context.

This patch should fix the following tickets:
#11043
#11378

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10924#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


noreply at mythtv

Feb 5, 2013, 3:38 PM

Post #5 of 11 (152 views)
Permalink
Re: Ticket #10924: mythlogserver segfault when ending [In reply to]

#10924: mythlogserver segfault when ending
------------------------------------+-----------------------------
Reporter: jyavenard | Owner: beirdo
Type: Bug Report - Crash | Status: assigned
Priority: minor | Milestone: unknown
Component: MythTV - Mythlogserver | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
------------------------------------+-----------------------------

Comment (by jyavenard):

Mark #11043 and #11378 as duplicate

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10924#comment:4>
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

Feb 10, 2013, 10:46 PM

Post #6 of 11 (145 views)
Permalink
Re: Ticket #10924: mythlogserver segfault when ending [In reply to]

#10924: mythlogserver segfault when ending
------------------------------------+-----------------------------
Reporter: jyavenard | Owner: beirdo
Type: Bug Report - Crash | Status: assigned
Priority: minor | Milestone: unknown
Component: MythTV - Mythlogserver | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
------------------------------------+-----------------------------

Comment (by kenni):

Mark #11395 as a duplicate.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10924#comment:5>
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

Feb 17, 2013, 5:09 PM

Post #7 of 11 (145 views)
Permalink
Re: Ticket #10924: mythlogserver segfault when ending [In reply to]

#10924: mythlogserver segfault when ending
------------------------------------+-----------------------------
Reporter: jyavenard | Owner: beirdo
Type: Bug Report - Crash | Status: assigned
Priority: minor | Milestone: unknown
Component: MythTV - Mythlogserver | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
------------------------------------+-----------------------------

Comment (by Craig Treleaven <ctreleaven@…>):

Re mythlogserver-segv.patch, I was doing some testing this morning (no
segfaults!) but I think it may be causing another problem. I believe that
the client is not answering the heartbeat which leads mythlogserver to
expire the client after 5 seconds. Extract from mythlogserver log
follows:

{{{
2013-02-17 14:05:53.476554 I [77036/24579] LogForward
loggingserver.cpp:1310 (forwardMessage) - New Client:
00042aee859b7e4afca074dff43b352167 (#2)
2013-02-17 14:05:53.476560 I [77036/24579] LogForward
loggingserver.cpp:1315 (forwardMessage) - Aborting shutdown timer
2013-02-17 14:05:53.476764 I [77036/24579] LogForward
loggingserver.cpp:138 (FileLogger) - Added logging to
/opt/local/var/log/mythtv.26/mythtv-setup.20130217190507.77026.log
2013-02-17 14:05:59.540512 I [77036/24579] LogForward
loggingserver.cpp:1204 (expireClients) - Expiring client
00042aee859b7e4afca074dff43b352167 (#1)
2013-02-17 14:05:59.540551 I [77036/24579] LogForward
loggingserver.cpp:148 (~FileLogger) - Removed logging to
/opt/local/var/log/mythtv.26/mythtv-setup.20130217190507.77026.log
2013-02-17 14:05:59.540690 I [77036/24579] LogForward
loggingserver.cpp:1234 (expireClients) - Starting 10 sec shutdown timer,
MacPorts mod
}}}

I found the client being expired 6 seconds after it was created on a
regular basis.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10924#comment:6>
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

Feb 17, 2013, 8:12 PM

Post #8 of 11 (134 views)
Permalink
Re: Ticket #10924: mythlogserver segfault when ending [In reply to]

#10924: mythlogserver segfault when ending
------------------------------------+-----------------------------
Reporter: jyavenard | Owner: beirdo
Type: Bug Report - Crash | Status: assigned
Priority: minor | Milestone: unknown
Component: MythTV - Mythlogserver | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
------------------------------------+-----------------------------

Comment (by faginbagin <mythtv@…>):

FWIW, I'm not seeing running clients being expired. mythbackend and
mythfrontend client connections are not being expired. The only ones being
expired are for mythpreviewgen, presumably being spawned and terminating
as I navigate through my recordings. I'm also using syslogging, not file
logging. Are you seeing this behavior for clients other than mythtv-setup?

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10924#comment:7>
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

Feb 17, 2013, 8:33 PM

Post #9 of 11 (137 views)
Permalink
Re: Ticket #10924: mythlogserver segfault when ending [In reply to]

#10924: mythlogserver segfault when ending
------------------------------------+-----------------------------
Reporter: jyavenard | Owner: beirdo
Type: Bug Report - Crash | Status: assigned
Priority: minor | Milestone: unknown
Component: MythTV - Mythlogserver | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
------------------------------------+-----------------------------

Comment (by Craig Treleaven <ctreleaven@…>):

I don't have a full 0.26 test system so my testing has primarily been with
mythtv-setup.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10924#comment:8>
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

Apr 2, 2013, 11:30 AM

Post #10 of 11 (85 views)
Permalink
Re: Ticket #10924: mythlogserver segfault when ending [In reply to]

#10924: mythlogserver segfault when ending
------------------------------------+-----------------------------
Reporter: jyavenard | Owner: beirdo
Type: Bug Report - Crash | Status: assigned
Priority: minor | Milestone: unknown
Component: MythTV - Mythlogserver | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
------------------------------------+-----------------------------

Comment (by hugh@…):

In my case, I just stopped the backend, in preparation to do a database
restore. Before I did anything else (I'm a slow), Ubuntu told me a crash
happened and asked if I wanted to report it. That's how I'm here.

I've seen this before, I think after I stopped the backend.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10924#comment:9>
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

Apr 25, 2013, 4:32 AM

Post #11 of 11 (41 views)
Permalink
Re: Ticket #10924: mythlogserver segfault when ending [In reply to]

#10924: mythlogserver segfault when ending
------------------------------------+-----------------------------
Reporter: jyavenard | Owner: beirdo
Type: Bug Report - Crash | Status: assigned
Priority: minor | Milestone: unknown
Component: MythTV - Mythlogserver | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
------------------------------------+-----------------------------

Comment (by jonny.dee@…):

I am the author of [[https://github.com/jonnydee/nzmqt|nzmqt]] project,
which seems to be used by mythTV project. BTW, glad to here this, I had
not been aware of this :)

Some time ago a [[https://github.com/jonnydee/nzmqt/issues/8|bug]] has
been reported that seems to be related to this bug. Unfortunately, I
didn't have time to investigate this. But now I have changed
implementation such that no 'destroyed' signal is used for cleanup work
anymore (which als makes a call to 'disconnect' obsolete). Instead,
cleanup work is done by a direct method call as soon as a socket instance
gets deleted.

If it is still an issue for you, would you please try the fixed version
and see if the issue is resolved? I don't know if you use 0MQ 2.2.x or
3.2.x release. In the former case you should try out the latest version in
[[https://github.com/jonnydee/nzmqt/tree/branch-2.x|2.x branch]]. In the
latter case use the latest version in master.

If the bugfix works I'd release a new version, so please let me know.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10924#comment:10>
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.