Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Ralf Habacker" To: "cygwin" Subject: cygwin application hangs in ntdll while loading a dll Date: Sat, 22 Mar 2003 00:42:32 +0100 Message-ID: <009301c2f003$8ae07850$27a607d5@BRAMSCHE> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Hi all, while porting arts 1.2.0 (=Advanced Realtime synth for kde) I've encountered a dll loading problem loading (unter W2k verified with cygwin 1.3.21-1 and recent snapshot). The background: The arts daemon tries to load an additional library with lt_dlopen (see the backtrace below) and hangs in ntdll!RtlGetUserInfoHeap. Using another library (I have tried cygz.dll) gives the same result. Additional I've tried to rebase the loaded dll and hae gotten the same result. The dll's are loadable with cygcheck and does not have any broken relolations. (verified with kde-cygwin's rebase) An strace shows me that artsd got a signal 14 and hangs while sending the signal (see below backtrace) with the repeated message: 316467154 [win] artsd 648 sig_send: wait for sig_complete event failed, signal -2, rc 258, Win32 error 0 Does anyone have an idea, what's going wrong ? Regards Ralf -------------------------------------------------------------------------------- ----------------------------- #0 0x77f9509f in ntdll!RtlGetUserInfoHeap () from /c/WINNT/System32/NTDLL.DLL #1 0x77f9527f in ntdll!LdrUnloadDll () from /c/WINNT/System32/NTDLL.DLL #2 0x77f8c553 in ntdll!CsrIdentifyAlertableThread () from /c/WINNT/System32/NTDLL.DLL #3 0x77f889c0 in ntdll!LdrUnloadAlternateResourceModule () from /c/WINNT/System32/NTDLL.DLL #4 0x77e77270 in LoadLibraryExA () from /c/WINNT/system32/KERNEL32.DLL #5 0x610095eb in dlopen () from /usr/bin/cygwin1.dll #6 0x1004c919 in sys_dl_open () from /home/habacker/src/anoncvs.kde.org/arts/mcop/.libs/cygmcop-1.dll #7 0x1004d063 in tryall_dlopen () from /home/habacker/src/anoncvs.kde.org/arts/mcop/.libs/cygmcop-1.dll #8 0x1004d1e2 in find_module () from /home/habacker/src/anoncvs.kde.org/arts/mcop/.libs/cygmcop-1.dll #9 0x1004e0af in lt_dlopen () from /home/habacker/src/anoncvs.kde.org/arts/mcop/.libs/cygmcop-1.dll #10 0x10041219 in Arts::ExtensionLoader::ExtensionLoader () from /home/habacker/src/anoncvs.kde.org/arts/mcop/.libs/cygmcop-1.dll #11 0x100348c3 in once.45 () from /home/habacker/src/anoncvs.kde.org/arts/mcop/.libs/cygmcop-1.dll #12 0x1002f111 in Arts::Object_base::_create () from /home/habacker/src/anoncvs.kde.org/arts/mcop/.libs/cygmcop-1.dll #13 0x0040c6cd in _fu10___Q24Arts16TraderQuery_base$_IID () #14 0x0042c017 in Arts::SoundServer_impl::SoundServer_impl () #15 0x004017a8 in Arts::SoundServerV2_impl::SoundServerV2_impl () #16 0x0042f8d5 in SoundServerV2_impl_Factory::createInstance () #17 0x10035f85 in once.45 () from /home/habacker/src/anoncvs.kde.org/arts/mcop/.libs/cygmcop-1.dll #18 0x006c21e9 in Arts::SoundServerV2_base::_create () from /home/habacker/src/anoncvs.kde.org/arts/soundserver/.libs/cygsoundserver_idl-1.d ll #19 0x006c6b71 in Arts::SoundServerV2::_Creator () from /home/habacker/src/anoncvs.kde.org/arts/soundserver/.libs/cygsoundserver_idl-1.d ll #20 0x100363e0 in Arts::ObjectManager::addGlobalReference () from /home/habacker/src/anoncvs.kde.org/arts/mcop/.libs/cygmcop-1.dll #21 0x00410721 in publishReferences () #22 0x004127c7 in _fu67___Q24Arts18SoundServerV2_base$_IID () #23 0x61007428 in cygwin1!__assert () from /usr/bin/cygwin1.dll #24 0x6100770d in dll_crt0 AT 0 () from /usr/bin/cygwin1.dll #25 0x004138b2 in cygwin_crt0 () #26 0x0040103c in mainCRTStartup () #27 0x77e892a6 in KERNEL32!GetCommandLineW () from /c/WINNT/system32/KERNEL32.DLL -------------------------------------------------------------------------------- ------------------------------------------ strace ... 539 26701014 [main] artsd 1236 symlink_info::check: not a symlink 229 26701243 [main] artsd 1236 symlink_info::check: 0 = symlink.check (c:\programme\cygwin\opt\kde3\lib\cygartsmidi-0.dll, 0x22E408) (0xA) 194 26701437 [main] artsd 1236 path_conv::check: root_dir(c:\), this->path(c:\programme\cygwin\opt\kde3\lib\cygartsmidi-0.dll), set_has_acls(8) 44111 26745548 [win] artsd 1236 wndproc 275 WM_TIMER 1 0 346 26745894 [win] artsd 1236 kill: kill (1236, 14) 173 26746067 [win] artsd 1236 sig_send: pid 1236, signal 14, its_me 1 221 26746288 [sig] artsd 1236 wait_sig: awake 148 26746436 [sig] artsd 1236 wait_sig: processing signal 14 160 26746596 [sig] artsd 1236 wait_sig: Got signal 14 152 26746748 [sig] artsd 1236 sig_handle: signal 14 148 26746896 [sig] artsd 1236 sig_handle: signal 14, about to call 0x412B40 153 26747049 [sig] artsd 1236 setup_handler: suspending mainthread 181 26747230 [win] artsd 1236 sig_send: Waiting for thiscomplete 0xCC -------------------------------------------------------------------------------- ------------------------------------------ info threads 0x77f82152 in ntdll!ZwWaitForSingleObject 6 thread 2436.0x274 () from /c/WINNT/System32/NTDLL.DLL 0x77f820f0 in ntdll!ZwWaitForMultipleObjects 5 thread 2436.0x700 () from /c/WINNT/System32/NTDLL.DLL 0x77f820f0 in ntdll!ZwWaitForMultipleObjects 4 thread 2436.0x624 () from /c/WINNT/System32/NTDLL.DLL 3 thread 2436.0x944 0x77f82152 in ntdll!ZwWaitForSingleObject () from /c/WINNT/System32/NTDLL.DLL 0x77f82152 in ntdll!ZwWaitForSingleObject 2 thread 2436.0x288 () from /c/WINNT/System32/NTDLL.DLL 0x77f9509f in ntdll!RtlGetUserInfoHeap* 1 thread 2436.0x880 () from /c/WINNT/System32/NTDLL.DLL -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/