Re: Semaphore handle leaks in WindowMaker with latest Xorg distribution
Yaakov writes: Dr. Volker Zell wrote: After switching to the latest Xorg packages (still under cygwin-1.5), WindowMaker-0.90.0-2 stops working after more or less 36 hours continues uptime of my laptop. When this happens I see the following in a bash window from where I started my X environment via startx: Can you confirm that libX11_6-1.1.5-2 fixes this? Yes it's fixed. By the way could you promote your latest ports WindowMaker to the distro ? Yaakov Cygwin/X Ciao Volker -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Semaphore handle leaks in WindowMaker with latest Xorg distribution
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dr. Volker Zell wrote: Yes it's fixed. Great; thanks for the detailed bug report. By the way could you promote your latest ports WindowMaker to the distro ? I'll add it to the queue. :-) Yaakov Cygwin/X -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkmJxxwACgkQpiWmPGlmQSNxtwCeKFAWaMUApgIizyjqqPMRGcwL mSQAnAzh/TQV2+kbUjV0RScXT5sneIXO =Siap -END PGP SIGNATURE- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Semaphore handle leaks in WindowMaker with latest Xorg distribution
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dr. Volker Zell wrote: After switching to the latest Xorg packages (still under cygwin-1.5), WindowMaker-0.90.0-2 stops working after more or less 36 hours continues uptime of my laptop. When this happens I see the following in a bash window from where I started my X environment via startx: Can you confirm that libX11_6-1.1.5-2 fixes this? Yaakov Cygwin/X -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkmIqSgACgkQpiWmPGlmQSMqxgCfVbHgJACHjeTAOznMlJbbFrkc eJ4AnjZhZRGxhh8/3jjFb9o22fexA0ZM =WZau -END PGP SIGNATURE- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Semaphore handle leaks in WindowMaker with latest Xorg distribution
Yaakov (Cygwin/X) wrote: Jon TURNEY wrote: So I guess suspicion first falls that this leak is somewhere in one of the updated X DLLs... The question is then, how can we track this down? This actually turned out to be easier to track down than I thought. Using process explorer on 'wmaker --for-real --no-polling --static' shows that the only thing of interest it's doing is calling XSync(). A simple test-case (attached) which just calls XSync() shows exactly the same behaviour, leaking 3 semaphores per call. The call stack looks like pthread_cond_init xcondition_init at Xthreads.h insert_pending_request at xcb_io.c:343 _XReply at xcb_io.c:368 XSync at Sync.c:48 main at test_xsync.c:19 After some staring at the code, I think the attached patch is perhaps the correct place to add a matching xcondition_clear. Entered into bugzilla http://sourceware.org/bugzilla/show_bug.cgi?id=9795 #include X11/X.h #include X11/Xlib.h #include time.h #include assert.h // // gcc -g test_xsync.c -lX11 -o test_xsync // int main() { // Open the display Display *dpy = XOpenDisplay(NULL); assert(dpy); // loop for ever while (1) { sleep(0); XSync(dpy, 0); } } diff --git a/src/xcb_io.c b/src/xcb_io.c index 913e04e..f58316a 100644 --- a/src/xcb_io.c +++ b/src/xcb_io.c @@ -167,6 +167,7 @@ static void process_responses(Display *dpy, int wait_for_first_event, xcb_generi dpy-xcb-pending_requests = req-next; if(!dpy-xcb-pending_requests) dpy-xcb-pending_requests_tail = dpy-xcb-pending_requests; + xcondition_clear((req-condition)); free(req); reply = error; } -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Semaphore handle leaks in WindowMaker with latest Xorg distribution
Yaakov writes: Dr. Volker Zell wrote: An old cygwin installation where I haven't updated Xorg yet doesn't show this behavior. So it really looks like some X lib is the culprit. I've got a hunch. On 1.7, could you try replacing your libxcb1 with the following: ftp://ftp.cygwinports.org/pub/cygwinports/release-2/X.Org/libxcb/libxcb1/libxcb1-1.1-3.tar.bz2 Does that help? No, problem persists. Ciao Volker -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Semaphore handle leaks in WindowMaker with latest Xorg distribution
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dr. Volker Zell wrote: An old cygwin installation where I haven't updated Xorg yet doesn't show this behavior. So it really looks like some X lib is the culprit. I've got a hunch. On 1.7, could you try replacing your libxcb1 with the following: ftp://ftp.cygwinports.org/pub/cygwinports/release-2/X.Org/libxcb/libxcb1/libxcb1-1.1-3.tar.bz2 Does that help? Yaakov Cygwin/X -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAklzveIACgkQpiWmPGlmQSNyiQCfVPbED4n68z+zfAfChGLT80Oi BhEAoN0FUBCu3hvAB9WhizrVkrm3j4Gh =Llrt -END PGP SIGNATURE- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Semaphore handle leaks in WindowMaker with latest Xorg distribution
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jon TURNEY wrote: So I guess suspicion first falls that this leak is somewhere in one of the updated X DLLs... The question is then, how can we track this down? Yaakov Cygwin/X -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAklv+q0ACgkQpiWmPGlmQSOvAwCfQdYkRvxGA11yNvEJscV8Pi6Z uUYAnRylEwKRfc9o+N0sanm4QrUaiK/5 =Vbn9 -END PGP SIGNATURE- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Semaphore handle leaks in WindowMaker with latest Xorg distribution
Volker Zell writes: Yaakov writes: Dr. Volker Zell wrote: After switching to the latest Xorg packages (still under cygwin-1.5), WindowMaker-0.90.0-2 stops working after more or less 36 hours continues uptime of my laptop. When this happens I see the following in a bash window from where I started my X environment via startx: Could you test if this happen with 0.92.0 as well from Ports: ftp://ftp.cygwinports.org/pub/cygwinports/release/X11/WindowMaker/WindowMaker-0.92.0-2.tar.bz2 ftp://ftp.cygwinports.org/pub/cygwinports/release/X11/WindowMaker/libwraster3/libwraster3-0.92.0-2.tar.bz2 All the other deps are in the distro already. If this fixes the problem, then I'll ITA this right away. Sorry but your version has the same problem, both wmaker and Wprefs leak semaphore handles. I'm running it now since 6 hours under cygwin-1.7: wmaker - 225 Handles Wprefs - 75000 Handles I have just finished running a couple of other X programs without touching the keyboard and all of them are leaking handles, although not as extreme as wmaker: | Program | 17:30 | 21:59 | 07:17 | 18:26 | |---+---+---+---+| | xemacs| 62553 | 63176 | 66218 | 125519 | | fvwm | 27075 | 30741 | 39327 | 55344 | | FvwmPager | 6279 | 6972 | 8544 | 12009 | | rxvt | 2216 | 2882 | 5510 | 9044 | | mrxvt | 1664 | 2219 | 2246 | 2738 | An old cygwin installation where I haven't updated Xorg yet doesn't show this behavior. So it really looks like some X lib is the culprit. Ciao Volker -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Semaphore handle leaks in WindowMaker with latest Xorg distribution
Dr. Volker Zell wrote: Hi After switching to the latest Xorg packages (still under cygwin-1.5), WindowMaker-0.90.0-2 stops working after more or less 36 hours continues uptime of my laptop. When this happens I see the following in a bash window from where I started my X environment via startx: winShadowUpdateDDNL - IDirectDrawSurface4_Blt () failed: 887601c2 winShadowUpdateDDNL - IDirectDrawSurface4_Blt () failed: 887601c2 winShadowUpdateDDNL - IDirectDrawSurface4_Blt () failed: 887601c2 winShadowUpdateDDNL - IDirectDrawSurface4_Blt () failed: 887601c2 winShadowUpdateDDNL - IDirectDrawSurface4_Blt () failed: 887601c2 winShadowUpdateDDNL - IDirectDrawSurface4_Blt () failed: 887601c2 winShadowUpdateDDNL - IDirectDrawSurface4_Blt () failed: 887601c2 winShadowUpdateDDNL - IDirectDrawSurface4_Blt () failed: 887601c2 winShadowUpdateDDNL - IDirectDrawSurface4_Blt () failed: 887601c2 winShadowUpdateDDNL - IDirectDrawSurface4_Blt () failed: 887601c2 winShadowUpdateDDNL - IDirectDrawSurface4_Blt failure message maximum (10) reached. No more failure messages will be printed. winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary surface was lost, trying to restore, retry: 1 winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary surface was lost, trying to restore, retry: 1 winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary surface was lost, trying to restore, retry: 1 winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary surface was lost, trying to restore, retry: 1 XIO: fatal IO error 105 (No buffer space available) on X server 127.0.0.1:0.0 after 264481 requests (264320 known processed) with 0 events remaining. 7 [main] wmaker 2548 sig_send: wait for sig_complete event failed, signal -34, rc -1, Win32 error 6 200 [main] wmaker 2548 sig_send: wait for sig_complete event failed, signal -34, rc -1, Win32 error 6 7 [main] wmaker 2548 sig_send: wait for sig_complete event failed, signal -34, rc -1, Win32 error 6 200 [main] wmaker 2548 sig_send: wait for sig_complete event failed, signal -34, rc -1, Win32 error 6 XIO: fatal IO error 104 (Connection reset by peer) on X server :0.0 after 113314 requests (113269 known processed) with 0 events remaining. xinit: connection to X server lost. When using Task Manager I see that one of the two wmaker processes (the one started with wmaker --for-real) leaks handles with a rate of 30/sec right after stating up. When using process explorer from sysinternals I have to switch on Show unnamed handles and mappings under View to identify these handles as Semaphore types. Recompiling the latest version of WindowMaker-0.92.0 against the latest Xorg distribution has the same effect. I also checked running original WindowMaker-0.90.0-2 against cygwin-1.7 with all the latest packages installed and also recompiled WindowMaker-0.92.0 under cygwin-1.7 with the same effects. Can anybody confirm (at least the handle leaks in Task Manager) ? Yes, I can see the same handle leak in task manager with windowmaker. WindowManager-0.90.0-2 runs absolutely stable with no leaks under cygwin 1.5 before upgrading to latest Xorg. So I guess suspicion first falls that this leak is somewhere in one of the updated X DLLs... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Semaphore handle leaks in WindowMaker with latest Xorg distribution
Yaakov writes: Dr. Volker Zell wrote: After switching to the latest Xorg packages (still under cygwin-1.5), WindowMaker-0.90.0-2 stops working after more or less 36 hours continues uptime of my laptop. When this happens I see the following in a bash window from where I started my X environment via startx: Could you test if this happen with 0.92.0 as well from Ports: ftp://ftp.cygwinports.org/pub/cygwinports/release/X11/WindowMaker/WindowMaker-0.92.0-2.tar.bz2 ftp://ftp.cygwinports.org/pub/cygwinports/release/X11/WindowMaker/libwraster3/libwraster3-0.92.0-2.tar.bz2 All the other deps are in the distro already. If this fixes the problem, then I'll ITA this right away. Sorry but your version has the same problem, both wmaker and Wprefs leak semaphore handles. I'm running it now since 6 hours under cygwin-1.7: wmaker - 225 Handles Wprefs - 75000 Handles Ciao Volker -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Semaphore handle leaks in WindowMaker with latest Xorg distribution
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dr. Volker Zell wrote: After switching to the latest Xorg packages (still under cygwin-1.5), WindowMaker-0.90.0-2 stops working after more or less 36 hours continues uptime of my laptop. When this happens I see the following in a bash window from where I started my X environment via startx: Could you test if this happen with 0.92.0 as well from Ports: ftp://ftp.cygwinports.org/pub/cygwinports/release/X11/WindowMaker/WindowMaker-0.92.0-2.tar.bz2 ftp://ftp.cygwinports.org/pub/cygwinports/release/X11/WindowMaker/libwraster3/libwraster3-0.92.0-2.tar.bz2 All the other deps are in the distro already. If this fixes the problem, then I'll ITA this right away. Yaakov Cygwin/X -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAklqOTIACgkQpiWmPGlmQSMKfgCdEDO7jgQ97wYDL+oHllefNIVQ QNMAn0SyDBwlZEpB8Qyxpupflf8TyZCr =oE/K -END PGP SIGNATURE- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/