Update: First I made a small mistake:
xulrunner: 16.0.1 Now, I can rule out epoll problem as I have the exact same behavior with poll() I have enabled logging and when the posturlnotify works, I see a NPN function being called: -1250400240[8052998]: NPError mozilla::plugins::child::_posturlnotify(NPP_t*, const char*, const char*, uint32_t, const char*, NPBool, void*) -1230779552[81756c8]: NPN_PostURLNotify: npp=816c750, target=(null), len=621, file=0, notify=83a36c0, url=http://10.0.16.198:19675/DictionaryWebService/, buf=Referer: http://10.0.16.198/PIS Mission/Web/fra/BannerBottom.swf Content-Type: text/xml; charset=utf-8 SOAPAction: "urn:#DictionaryGetValue" Content-Length: 454 <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><ns1:DictionaryGetValueRequest xmlns:ns1="http://transport.alstom.com/DictionaryWebService/"><ns1:variableName>Train.ExternalTemperature</ns1:variableName></ns1:DictionaryGetValueRequest></SOAP-ENV:Body></SOAP-ENV:Envelope> ... When it fails I have: -1250400240[8052998]: NPError mozilla::plugins::child::_posturlnotify(NPP_t*, const char*, const char*, uint32_t, const char*, NPBool, void*) -1390290032[83b1128]: nsHostResolver::ThreadFunc exiting and the plugin-container thread stack is: #1 0xb7f9a915 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #2 0xb5aa4b5f in PR_WaitCondVar () from /usr/lib/firefox-16.0.1/libnspr4.so #3 0xb5ec108f in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x0040408F (mozilla::CondVar::Wait) #4 0xb6800bf6 in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x00D43BF6 (mozilla::Monitor::Wait) #5 0xb706e54f in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x015B154F (mozilla::ipc::SyncChannel::WaitForNotify) #6 0xb706b1b0 in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x015AE1B0 (mozilla::ipc::RPCChannel::Call) #7 0xb7162dfd in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x016A5DFD (mozilla::plugins::PPluginInstanceChild::CallPStreamNotifyConstructor) #8 0xb7049c31 in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x0158CC31 (mozilla::plugins::child::_posturlnotify) This really sounds like a IPC problem. I'll compile the debug version to be able to enable IPC logging. P.S.: Do you think this is Bugzilla material? -----Original Message----- From: dev-platform-bounces+olivier.pis.langlois=transport.alstom....@lists.mozilla.org [mailto:dev-platform-bounces+olivier.pis.langlois=transport.alstom....@lists.mozilla.org] On Behalf Of LANGLOIS Olivier PIS -EXT Sent: Tuesday, October 23, 2012 6:39 PM To: dev-platform@lists.mozilla.org Subject: deadlock while flash plugin calls posturlnotify OS: Linux 2.6.24-24 (32 bits) Flash: 11.2 xulrunner 15.0.1 The funny thing is that the software is behaving correctly on a VM but freezes on the real hardware. It makes my debuging experience misarable as the real hardware has only 512MB ram and 512 MB of disk space. I have no luck to move a 600MB libxul.so containing debug symbols! As I have seen "glitches" with epoll API on old kernels, I will try to recompile libxul with an external libevent lib without epoll. Anyone familiar with the ipc/glue code that wish to assist me to debug my problem, few pointers would be of great help as I have some trouble to understand this code. Links between the browser and the plugin-containers are a pair of pipes, right? Is the RPCChannel code writing RPC msgs does check write() call return value? (It is not clear where this would be done. transport_posix? from the I/O thread?) My AS2 script is periodically calling a webservice (about 2 sec interval), after about a minute everything freezes and I see this: #0 0xb7faf410 in __kernel_vsyscall () #1 0xb7f9a915 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #2 0xb5aa4b5f in PR_WaitCondVar () from /usr/lib/firefox-16.0.1/libnspr4.so #3 0xb5ec108f in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x0040408F (mozilla::CondVar::Wait) #4 0xb6800bf6 in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x00D43BF6 (mozilla::Monitor::Wait) #5 0xb706e54f in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x015B154F (mozilla::ipc::SyncChannel::WaitForNotify) #6 0xb706b1b0 in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x015AE1B0 (mozilla::ipc::RPCChannel::Call) #7 0xb7162dfd in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x016A5DFD (mozilla::plugins::PPluginInstanceChild::CallPStreamNotifyConstructor) #8 0xb7049c31 in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x0158CC31 (mozilla::plugins::child::_posturlnotify) #9 0xb2dcdefd in ?? () from /usr/lib/adobe-flashplugin/libflashplayer.so #10 0xb2dcc3d3 in ?? () from /usr/lib/adobe-flashplugin/libflashplayer.so #11 0xb2c5b72c in ?? () from /usr/lib/adobe-flashplugin/libflashplayer.so #12 0xb2c18ad9 in ?? () from /usr/lib/adobe-flashplugin/libflashplayer.so #13 0xb2c25e19 in ?? () from /usr/lib/adobe-flashplugin/libflashplayer.so #14 0xb2c26341 in ?? () from /usr/lib/adobe-flashplugin/libflashplayer.so #15 0xb2c269e7 in ?? () from /usr/lib/adobe-flashplugin/libflashplayer.so #16 0xb2c2e06b in ?? () from /usr/lib/adobe-flashplugin/libflashplayer.so #17 0xb29ce775 in ?? () from /usr/lib/adobe-flashplugin/libflashplayer.so #18 0xb2bfffe1 in ?? () from /usr/lib/adobe-flashplugin/libflashplayer.so #19 0xb2c278f8 in ?? () from /usr/lib/adobe-flashplugin/libflashplayer.so #20 0xb2c28338 in ?? () from /usr/lib/adobe-flashplugin/libflashplayer.so #21 0xb2c28bb6 in ?? () from /usr/lib/adobe-flashplugin/libflashplayer.so #22 0xb2e2bb93 in ?? () from /usr/lib/adobe-flashplugin/libflashplayer.so #23 0xb2dc97fb in ?? () from /usr/lib/adobe-flashplugin/libflashplayer.so #24 0xb541516c in ?? () from /usr/lib/libglib-2.0.so.0 #25 0xb5414a29 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #26 0xb5416cc1 in ?? () from /usr/lib/libglib-2.0.so.0 #27 0xb5416ebe in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #28 0xb734a03d in ?? () from /usr/lib/firefox-16.0.1/libxul.so #29 0xb7348955 in ?? () from /usr/lib/firefox-16.0.1/libxul.so #30 0xb72e19b0 in ?? () from /usr/lib/firefox-16.0.1/libxul.so #31 0xb72e19c7 in ?? () from /usr/lib/firefox-16.0.1/libxul.so #32 0xb72e1a2a in ?? () from /usr/lib/firefox-16.0.1/libxul.so #33 0xb5e5cb00 in XRE_InitChildProcess () from /usr/lib/firefox-16.0.1/libxul.so #34 0x08048e75 in main (argc=5, argv=0xbfe0aa14) at /root/mozilla-release/ipc/app/MozillaRuntimeMain.cpp:50 [Switching to thread 5 (Thread 0xb4388b90 (LWP 5108))]#0 0xb7faf410 in __kernel_vsyscall () (gdb) where #0 0xb7faf410 in __kernel_vsyscall () #1 0xb58e0917 in syscall () from /lib/libc.so.6 #2 0xb72d02ef in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x018132EF (epoll_wait) #3 0xb72cfdaa in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x01812DAA (epoll_dispatch) #4 0xb72c6905 in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x01809905 (event_base_loop) #5 0xb73305d8 in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x018735D8 (base::MessagePumpLibevent::Run) #6 0xb72e19b0 in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x018249B0 (MessageLoop::RunInternal) #7 0xb72e19c7 in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x018249C7 (MessageLoop::RunHandler) #8 0xb72e1a2a in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x01824A2A (MessageLoop::Run) #9 0xb7303af0 in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x01846AF0 (base::Thread::ThreadMain) #10 0xb733130a in ?? () from /usr/lib/firefox-16.0.1/libxul.so 0x0187430A (ThreadFunc) #11 0xb7f964c7 in start_thread () from /lib/libpthread.so.0 #12 0xb58e3d3e in clone () from /lib/libc.so.6 ________________________________ CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium. _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform ________________________________ CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium. _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform