Re: Bash process remains after I close rxvt in certain ways
The problem I've been having for quite a while now may or may not be related to this but it's indeed similar. I start XWin from a batch file that also starts a gnome-terminal. I always have to kill the gnome-pty-helper.exe process in order to be able to open more terminals. The point where it hangs varies from just creating the second terminal to up to maybe the 7th. I've never seen it go beyond that before needing to kill the helper process. This issue made me start a Sysinternals's Process Explorer window as a pre-requisite to starting XWin and the gnome-terminals. I now start XWin and then look in the process explorer window for the gnome-pty-helper process, kill it and then watch the rest of the terminals come up. If I look at the threads in the gnome-pty-helper.exe process, I find two threads, one doing about 92 context switches per second with a start address at 'gnome-pty-helper.exe+0x1000' and the other one is at cygwin1.dll!toascii+0x15d0. This second one is a pretty common address I see when I get cygwin runaway processes using 100% CPU but that's a different story I think (or maybe not?) I've killed that thread only to see if it would help but it looks like something is waiting for the process to finish because things only keep rolling after I kill the process not just the thread. Mind you, sometimes it doesn't happen right away, that is, the second terminal starts find even though the gnome-pty-helper.exe is still there. The other relatead issue is that when I exit the last bash shell in the gnome-terminals, the gnome-terminal.exe process doesn't go away either and I have to kill that one too. Well, actually, Process Explorer says the the gnome-terminal.exe process is a child of a bash.exe process as expected I guess but there are other bash shells, those in each gnome terminal window or tab, which where started by gnome-terminal. They show up as siblings and not as children though. When I kill the gnome-terminal.exe process, the bash.exe parent process goes away by itself. It all seems related to gnome-terminal and the related supporting gnome packages and not to bash itself, which is basically why I haven't posted anything about this here but this time it seems at least somebody might tell me that indeed it's not and point in a more hopeful direction. Thanks -- Luis P Caamano Atlanta, GA USA On 13 Nov 2006 15:08:48 -, [EMAIL PROTECTED] Igor Peshansky wrote: > According to Eric Lilja on 11/12/2006 12:52 PM: > > I recently upgraded to a dual core machine which made me use the windows > > task manager alot. That's when I noticed that if I close the rxvt window > > by pressing 'x' in the top right corner (or doing alt-f4, I never do > > this, just tried it now to see what happened) the rxvt process is > > terminated and the window disappears but the "underlying" bash process > > is still running (without a visible window), consuming ~3.5 MB of memory > > and 0 cpu time according to the task manager. > > So far, no one has found a good way for a cygwin process killed by Alt-F4 > (or the X button) to treat that as a SIGHUP and pass that information on > to all of its children processes. So, by killing rxvt abruptly, you are > indeed stranding bash as a zombie process. > > > If I exit rxvt by typing > > exit, the bash process is terminated too. > > Actually, typing exit will exit bash, not rxvt; but when rxvt realizes > that all of its children processes have exited, it exits as well. > > > Can I do something so the bash > > process is always terminated properly no matter how I close the rxvt > > window? > > Submit a patch to make cygwin processes recognize Alt-F4 as a SIGHUP that > needs to be passed to their children? Or possibly even a patch such that > when a controlling pty terminal is closed, all children (such as bash) > reading from that pty get an end-of-input (possibly a SIGPIPE) when trying > to read from the disappearing terminal? Actually, it's not the Cygwin processes that need that feature, but the W11 library. When rxvt is closed via the 'X' button or Alt-F4, Windows sends it the WM_QUIT message, which ought to be handled properly in the library as application exit (and thus send SIGHUP to all immediate children). This is done by the Cygwin console already, so it may simply be a matter of copying/pasting some code... > > Is there misconfiguration on my end or should I simply get in > > the habit of always using exit to close rxvt? > > For now, that is the best course of action. -- 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: Cygwin/X does not start after updating Cygwin1.dll to 1.5.20-1
Just FYI. I'm running 1.5.20-1, X starts fine and I'm gladly running several gnome-terminals with no problems. I also run sshd and httpd2. -- Luis P Caamano Atlanta, GA USA -- 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: Updated: cygwin-1.5.20-1
Nice, many thanks! Just FYI, the gnome-terminal now doesn't complain about updwtmpx on first start but every now and then the gnome-pty-helper seems to hang gnome-terminal.exe when creating a new tab. It's not that bad though as it only seems to happen when opening several terminals at the same time and opening a tab on them quickly. On 7/2/06, Christopher Faylor <[EMAIL PROTECTED]> wrote: I've made a new version of the Cygwin DLL and associated utilities available for download. As usual, a list of what has changed is below. [ snip ] Changes since 1.5.19-4: [ snip ] corinna: Implement updwtmpx. [ snip ] cgf: Rework pty master handling to avoid handle leak (thanks to Dave Korn for initial implementation). -- Luis P Caamano Atlanta, GA USA -- 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: gvim fontconfig issue from clean install
What do you mean "from scratch?" Compiled from source? or newly installed from setup? I think you just need to follow the instructions given. Not all X apps use fontconfig. -- lpc On 6/13/06, simon godden <[EMAIL PROTECTED]> wrote: I installed cygwin from scratch and selected gvim. When I try to run it, I get the message: No fonts found; this probably means that the fontconfig library is not correctly configured. You may need to edit the fonts.conf configuration file. More information about fontconfig can be found in the fontconfig(3) manual page and on http://fontconfig.org Other basic x applications are working fine, as is emacs. Any ideas? -- Simon Godden -- 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/ -- 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: cygwin gnome-terminal pty error
I haven't had a chance to get back to it and I'm still stuck using a boat load of xterms all over the place instead of the nice tabs I could have had gnome-terminal work as expected. That's the thing about cygwin ... you get really weird errors that not many people have seen before. Oh wait. Now that I read your email again (and carefully) I see you haven't seen my newer email. After the last update, I'm now getting a different behavior. I'm not getting the pty errors, which is what made me install cygserver btw, (which somehow got rid of my fork problems, that's another story though) but the gnome terminal doesn't do anything. That is, before, at least the menus did work (what gnome-terminal really is) but the canvas was blank. Now not even the menus work. I'll get back to it eventually ... unless you find a solution before me. One thing seems certain though: nobody is using gnome-terminal. On 4/19/06, Peter <[EMAIL PROTECTED]> wrote: > Luis P Caamano gmail.com> writes: > > > > > Hello, > > > > I've installed gnome-terminal from the sunsite.dk/projects/cygwinports > > site with no errors. Unfortunately, when I run gnome-terminal from an > > xterm I get the error below: > > > > - > > > $ gnome-terminal > > > > ** (gnome-terminal:3608): WARNING **: Error setting PTY size: Invalid > argument. > > > > ** (gnome-terminal:3608): WARNING **: Error reading PTY size, using > > defaults: Invalid argument. > > > > ** (gnome-terminal:3608): WARNING **: Error reading PTY size, using > > defaults: Invalid argument. > > > > ** (gnome-terminal:3608): WARNING **: Error setting PTY size: Invalid > argument. > > > > ** (gnome-terminal:3608): WARNING **: Error reading PTY size, using > > defaults: Invalid argument. > > - > --- > > > > > > Even I am having the same problem. My Terminal session just hangs there > without returning the command prompt. Have you been able to fix this? Or did > someone else have a solution to this problem? I am guessing it is some env > setting in cygwin but cannot figure out what. > > Thanks, > > Peter > [EMAIL PROTECTED] > > > > -- > 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/ > > -- Luis P Caamano Atlanta, GA USA -- 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: cygwin gnome-terminal pty error
Thanks for you reply René. I think I going to have to switch from digest to getting every email. I see you replied right away but I just got the digest today. On 19 Mar 2006 05:00:56 -, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > cygwin-xfree Digest 19 Mar 2006 05:00:56 - Issue 1971 > > > -- Forwarded message -- > From: René Berber <[EMAIL PROTECTED]> > To: cygwin-xfree@cygwin.com > Date: Fri, 17 Mar 2006 22:27:36 -0600 > Subject: Re: cygwin gnome-terminal pty error > Luis P Caamano wrote: > > > How is gnome-terminal hanging? You see the process but no window? or as > before, > a window with no shell prompt? > -- > René Berber > Before I'd see a fully functional gnome-terminal, the shell, but no prompt. The menus and everything else would work as expected. Now I see just a window but the menu doesn't even show up. Worse, once I run gnome-terminal, I cannot kill it and XWin hangs trying to fork new xterm from the XWin menu. I have to use the Windows task manager to kill all the XWin stuff and then restart XWin again. IOW, after gnome-terminal is up and hung, if I right click the X to start more xterms, they don't show up and ps -ef in cygwin shows one XWin process for every time I try to start a new local xterm. At this point in time, I'd just like to find somebody that is using a gnome-terminal in cygwin so I can tell if it's my environment or if the problem is the package itself. I sent an email to Yaakov but I guess he didn't see in the sea of emails he probably gets every day. -- Luis P Caamano Atlanta, GA USA -- 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: cygwin gnome-terminal pty error
I updated cygwin with the latest vte package and now instead of the pty error, gnome-terminal just hangs with no error. I'm installing packages from kernel.org and from sunsite.dk. Is it possible that the mix of packages is the problem? The only gnome package I selected was the gnome-terminal package, which then selected its pre-requisites. Could it be that I missing something? I'm running with CYGWIN="server ntsec". Could it be that cygserver is not configured properly? Finally, is anybody running gnome-terminal on cygwin? I'd appreciate any hint or clue about this. Anything ... Thanks On 2/22/06, Luis P Caamano <[EMAIL PROTECTED]> wrote: > Hello, > > I've installed gnome-terminal from the sunsite.dk/projects/cygwinports > site with no errors. Unfortunately, when I run gnome-terminal from an > xterm I get the error below: > > - > $ gnome-terminal > > ** (gnome-terminal:3608): WARNING **: Error setting PTY size: Invalid > argument. > > ** (gnome-terminal:3608): WARNING **: Error reading PTY size, using > defaults: Invalid argument. > > ** (gnome-terminal:3608): WARNING **: Error reading PTY size, using > defaults: Invalid argument. > > ** (gnome-terminal:3608): WARNING **: Error setting PTY size: Invalid > argument. > > ** (gnome-terminal:3608): WARNING **: Error reading PTY size, using > defaults: Invalid argument. > > > I do get a gnome-terminal window with no shell prompt (white > background). The menu seems to work fine as I can bring the "edit > current profile" dialog. > > Anybody using gnome-terminal in cygwin or seen this error? > > Perhaps I have a package incompatibility? I initially installed from > mirrors.kernel.org and then added the sunsite.dk, selected > gnome-terminal only, and it automatically selected a bunch of > dependencies. > > So far google haven't revealed any clues. Can anybody provide me with > some hints or clues that would help solve this problem? > > Any help is appreciated, thanks. > > -- > Luis P Caamano > Atlanta, GA USA > -- Luis P Caamano Atlanta, GA USA -- 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/
cygwin gnome-terminal pty error
Hello, I've installed gnome-terminal from the sunsite.dk/projects/cygwinports site with no errors. Unfortunately, when I run gnome-terminal from an xterm I get the error below: - $ gnome-terminal ** (gnome-terminal:3608): WARNING **: Error setting PTY size: Invalid argument. ** (gnome-terminal:3608): WARNING **: Error reading PTY size, using defaults: Invalid argument. ** (gnome-terminal:3608): WARNING **: Error reading PTY size, using defaults: Invalid argument. ** (gnome-terminal:3608): WARNING **: Error setting PTY size: Invalid argument. ** (gnome-terminal:3608): WARNING **: Error reading PTY size, using defaults: Invalid argument. I do get a gnome-terminal window with no shell prompt (white background). The menu seems to work fine as I can bring the "edit current profile" dialog. Anybody using gnome-terminal in cygwin or seen this error? Perhaps I have a package incompatibility? I initially installed from mirrors.kernel.org and then added the sunsite.dk, selected gnome-terminal only, and it automatically selected a bunch of dependencies. So far google haven't revealed any clues. Can anybody provide me with some hints or clues that would help solve this problem? Any help is appreciated, thanks. -- Luis P Caamano Atlanta, GA USA -- 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/