[mythtv-commits] Ticket #10924: mythlogserver segfault when ending
MythTV
noreply at mythtv.org
Thu Sep 12 10:59:15 UTC 2013
#10924: mythlogserver segfault when ending
------------------------------------+-----------------------------
Reporter: jyavenard | Owner: natanojl
Type: Bug Report - Crash | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Mythlogserver | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
------------------------------------+-----------------------------
Comment (by jonny.dee@…):
regaring nzmqt: I've changed code executed if 'ZMQContext' and 'ZMQSocket'
instances are deleted a bit. Additionally, I've add (succeeding) unit
tests for PUB-SUB, REQ-REP, and PUSH-PULL protocols. Furthermore, nzmqt
can now be built as static/shared lib (see
[https://github.com/jonnydee/nzmqt/blob/branch-2.x/doc/Software.md#setup-
your-own-project-to-use-nzmqt documentation] for more details).
I don't really know what causes the crash(s) but please make sure that, if
several threads are sharing the same 'ZMCContext' instance, the
'ZMQSocket' instances are created in the same thread as the 'ZMQContext'
instance itself (0MQ requirement). After creation, use
'QObject::moveToThread(QThread*)' method to move the socket instances to
their corresponding threads and give them a reference to their socket
instances (Qt requirement). You can see how this is exactly done in
nzmqt's unit test source code.
HTH?
--
Ticket URL: <http://code.mythtv.org/trac/ticket/10924#comment:28>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list