Hi,

attached patch fix coredumps like:

0x00007fffe5d824b3 in CDeckLinkInput::DisableVideoInput() () from /usr/lib/libDeckLinkAPI.so Missing separate debuginfos, use: debuginfo-install SDL-1.2.14-13.fc16.x86_64 alsa-lib-1.0.25-1.fc16.x86_64 bzip2-libs-1.0.6-3.fc15.x86_64 cairo-1.10.2-4.fc16.x86_64 expat-2.0.1-11.fc15.x86_64 fontconfig-2.8.0-4.fc16.x86_64 freetype-2.4.6-4.fc16.x86_64 gdk-pixbuf2-2.24.1-1.fc16.x86_64 glib2-2.30.2-1.fc16.x86_64 glibc-2.14.90-24.fc16.6.x86_64 gtk2-2.24.8-3.fc16.x86_64 libX11-1.4.3-1.fc16.x86_64 libXau-1.0.6-2.fc15.x86_64 libXcomposite-0.4.3-2.fc15.x86_64 libXcursor-1.1.11-3.fc15.x86_64 libXdamage-1.1.3-2.fc15.x86_64 libXext-1.3.0-1.fc16.x86_64 libXfixes-5.0-1.fc16.x86_64 libXi-1.4.5-1.fc16.x86_64 libXinerama-1.1.1-2.fc15.x86_64 libXrandr-1.3.1-2.fc15.x86_64 libXrender-0.9.6-2.fc15.x86_64 libffi-3.0.10-1.fc16.x86_64 libgcc-4.6.3-2.fc16.x86_64 libogg-1.2.2-3.fc15.x86_64 libpng-1.2.48-1.fc16.x86_64 libselinux-2.1.6-6.fc16.x86_64 libstdc++-4.6.3-2.fc16.x86_64 libtheora-1.1.1-1.fc15.x86_64 libvorbis-1.3.3-1.fc16.x86_64 libxcb-1.7-3.fc16.x86_64 libxml2-2.7.8-6.fc16.x86_64 pango-1.29.4-1.fc16.x86_64 pixman-0.22.2-1.fc16.x86_64 speex-1.2-0.13.rc1.fc15.x86_64 zlib-1.2.5-6.fc16.x86_64
(gdb) bt
#0 0x00007fffe5d824b3 in CDeckLinkInput::DisableVideoInput() () from /usr/lib/libDeckLinkAPI.so #1 0x00007fffe5d843d7 in CDeckLinkInput::Release() () from /usr/lib/libDeckLinkAPI.so #2 0x00007fffe5d96fc1 in CDeckLinkInput_v9_2::~CDeckLinkInput_v9_2() () from /usr/lib/libDeckLinkAPI.so #3 0x00007fffe5d9704a in CDeckLinkInput_v9_2::Release() () from /usr/lib/libDeckLinkAPI.so #4 0x00007fffe672837d in ~DeckLinkProducer (this=0x7fffdc000920, __in_chrg=<optimized out>) at producer_decklink.cpp:112 #5 DeckLinkProducer::~DeckLinkProducer (this=0x7fffdc000920, __in_chrg=<optimized out>) at producer_decklink.cpp:114 #6 0x00007fffe67268b3 in producer_close (producer=0x7fffdc001170) at producer_decklink.cpp:625
#7  0x000000000040616b in mlt_stop (instance=0x614010) at src/mlt.c:553
#8 0x00000000004045db in ctl_method_Stop (envP=0x7ffff00a07d0, paramArrayP=0x7fffd4003c70, serverInfo=0x614010, channelInfo=
    0x7ffff00a0910) at src/ctl.c:452
#9 0x0000003955e022d3 in callNamedMethod (resultPP=0x7ffff00a0828, callInfoP=0x7ffff00a0910, paramArrayP=0x7fffd4003c70, methodP=<optimized out>, envP=0x7ffff00a07d0) at /usr/src/debug/xmlrpc-c-1.27.7/src/registry.c:307 #10 xmlrpc_dispatchCall (envP=0x7ffff00a07d0, registryP=0x635ac0, methodName=0x7fffd4004400 "TheCore.Stop", paramArrayP= 0x7fffd4003c70, callInfoP=0x7ffff00a0910, resultPP=0x7ffff00a0828) at /usr/src/debug/xmlrpc-c-1.27.7/src/registry.c:337 #11 0x0000003955e0248b in xmlrpc_registry_process_call2 (envP=0x7ffff00a08a0, registryP=0x635ac0, callXml= 0x7fffd4004d80 "<?xml version=\"1.0\" encoding=\"utf-8\"?><methodCall><methodName>TheCore.Stop</methodName><params></params></methodCall>ge_", callXmlLen=117, callInfo=0x7ffff00a0910, responseXmlPP=0x7ffff00a08c0)
    at /usr/src/debug/xmlrpc-c-1.27.7/src/registry.c:426
#12 0x00007ffff7bb4e99 in processCall (trace=0x0, accessControl=..., wantChunk=false, xmlProcessorArg=0x635ac0, xmlProcessor= 0x7ffff7bb47b0 <processXmlrpcCall>, contentSize=117, abyssSessionP=0x7ffff00a0910)
    at /usr/src/debug/xmlrpc-c-1.27.7/src/xmlrpc_server_abyss.c:462
#13 handleXmlRpcCallReq (accessControl=..., wantChunk=false, xmlProcessorArg=0x635ac0, xmlProcessor= 0x7ffff7bb47b0 <processXmlrpcCall>, requestInfoP=<optimized out>, abyssSessionP=0x7ffff00a0910)
    at /usr/src/debug/xmlrpc-c-1.27.7/src/xmlrpc_server_abyss.c:597
#14 handleIfXmlrpcReq (handlerArg=<optimized out>, abyssSessionP=0x7ffff00a0910, handledP=<optimized out>)
    at /usr/src/debug/xmlrpc-c-1.27.7/src/xmlrpc_server_abyss.c:661
#15 0x00007ffff79a7c24 in runUserHandler (srvP=0x634a90, sessionP=0x7ffff00a0910)
    at /usr/src/debug/xmlrpc-c-1.27.7/lib/abyss/src/server.c:564
#16 processRequestFromClient (connectionP=<optimized out>, lastReqOnConn=<optimized out>, timeout=<optimized out>, keepAliveP=0x7ffff00a0a8c) at /usr/src/debug/xmlrpc-c-1.27.7/lib/abyss/src/server.c:657 #17 0x00007ffff79a7d85 in serverFunc (userHandle=0x651160) at /usr/src/debug/xmlrpc-c-1.27.7/lib/abyss/src/server.c:723 #18 0x00007ffff79a2437 in connJob (userHandle=0x651160) at /usr/src/debug/xmlrpc-c-1.27.7/lib/abyss/src/conn.c:39 #19 0x00007ffff79aa804 in pthreadStart (arg=0x648920) at /usr/src/debug/xmlrpc-c-1.27.7/lib/abyss/src/thread_pthread.c:49
#20 0x0000003ca8207d90 in start_thread () from /lib64/libpthread.so.0
#21 0x0000003ca7ef0f5d in clone () from /lib64/libc.so.6
(gdb) quit

that happens if decklink's input instance released without disabling video and output...

--
________________________________________
Maksym Veremeyenko
>From c424d7a821d7e9b5a9644d4c801dd5b6db908989 Mon Sep 17 00:00:00 2001
From: Maksym Veremeyenko <ve...@m1stereo.tv>
Date: Wed, 11 Jul 2012 13:17:54 +0300
Subject: [PATCH] Disable Video and Audio Input on producer stop

---
 src/modules/decklink/producer_decklink.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/modules/decklink/producer_decklink.cpp b/src/modules/decklink/producer_decklink.cpp
index ca4b247..2cd6219 100644
--- a/src/modules/decklink/producer_decklink.cpp
+++ b/src/modules/decklink/producer_decklink.cpp
@@ -250,6 +250,8 @@ public:
 		pthread_mutex_unlock( &m_mutex );
 
 		m_decklinkInput->StopStreams();
+		m_decklinkInput->DisableVideoInput();
+		m_decklinkInput->DisableAudioInput();
 
 		// Cleanup queue
 		pthread_mutex_lock( &m_mutex );
-- 
1.7.7.6

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to