Extending /proc/*/maps

2011-05-10 Thread Ryan Johnson
haven't needed it yet. Thoughts? Ryan # HG changeset patch # Parent 1420f18fd5c5647e475df8339486020b456fb9d8 diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2011-05-10 Ryan Johnson ryan.john...@cs.utoronto.ca + + * fhandler_process.cc

strace swallows stderr?

2011-05-09 Thread Ryan Johnson
Hi all, It seems that when strace is running an app, that app's stderr output disappears. Is this normal/expected? The problem doesn't seem to arise if strace opens the app in a different window or sends its own output to a log file, but both of those have their disadvantages. Thanks, Ryan

Emacs backgrounds itself

2011-05-05 Thread Ryan Johnson
Hi all, Strange one here... I just updated emacs and a bunch of other packages, and for some reason 'emacs -nw' now backgrounds itself immediately after starting, and again each time I try to foreground it afterward. If I run emacs-X11 directly (again, in -nw mode) it segfaults during

Re: Emacs backgrounds itself

2011-05-05 Thread Ryan Johnson
s/gcc/gdb/g *sigh* On 05/05/2011 10:34 AM, Ryan Johnson wrote: Hi all, Strange one here... I just updated emacs and a bunch of other packages, and for some reason 'emacs -nw' now backgrounds itself immediately after starting, and again each time I try to foreground it afterward. If I run

Re: Emacs backgrounds itself (solved)

2011-05-05 Thread Ryan Johnson
On 05/05/2011 10:34 AM, Ryan Johnson wrote: Hi all, Strange one here... I just updated emacs and a bunch of other packages, and for some reason 'emacs -nw' now backgrounds itself immediately after starting, and again each time I try to foreground it afterward. If I run emacs-X11 directly

Re: Re: Spurious warnings about MS-DOS paths

2011-04-15 Thread Ryan Johnson
On 2:59 PM, Eric Blake wrote: On 04/13/2011 09:10 PM, Ryan Johnson wrote: Hi all, A recent cygwin update has started spewing warnings such as the following when I do tab completion on a path containing spaces: $ cd ~/Home/Documents/Pcygwin warning: MS-DOS style path detected: ~/Home

Re: bash died waiting for longjmp before initialization

2011-04-14 Thread Ryan Johnson
I haven't had bash crash on me, but I do get other fork-related errors on my win7-x64 system. You might try running the attached testcase (make ./fork) a few times to see if it reproduces the problem. For me it usually complains about access violations during the fork and sometimes dies

Re: Debugging help for fork failure: resource temporarily unavailable

2011-04-14 Thread Ryan Johnson
On 2:59 PM, Ryan Johnson wrote: I wrote a very simple program whose main() prints out the contents of /proc/self/maps, forks, calls foo() and bar(), and finally (if the parent) calls wait(). The trick is, foo() and bar() reside in cygfoo.dll and cygbar.dll respectively, which I compiled

Re: Re: Debugging help for fork failure: resource temporarily unavailable

2011-04-13 Thread Ryan Johnson
On 2:59 PM, Jon TURNEY wrote: On 15/03/2011 13:53, Ryan Johnson wrote: All of this assumes Windows is consistent in choosing locations when conflicts It's assumed that CreateProcess() produces the same layout, yes. This assumption is due to what? - Documented Windows feature? - An observation

Re: Re: Re: Debugging help for fork failure: resource temporarily unavailable

2011-04-13 Thread Ryan Johnson
On 2:59 PM, Ryan Johnson wrote: On 2:59 PM, Jon TURNEY wrote: I look forward to reading your patches :-) I think it's still rather premature to be cooking up a patch, unfortunately -- I'm not convinced I know yet where the real problem lies. Without some data to back up my speculation (which

Spurious warnings about MS-DOS paths

2011-04-13 Thread Ryan Johnson
Hi all, A recent cygwin update has started spewing warnings such as the following when I do tab completion on a path containing spaces: $ cd ~/Home/Documents/Pcygwin warning: MS-DOS style path detected: ~/Home/Documents/PC\ reviews\ 2011 Preferred POSIX equivalent is: ~/Home/Documents/PC/

Re: BLODA detection (was Re: Debugging help for fork failure: resource temporarily unavailable)

2011-03-16 Thread Ryan Johnson
On 2:59 PM, Henry S. Thompson wrote: Ryan Johnson writes: BTW, I found a good way to identify, if not fix, BLODA: given an app which loads no libraries at runtime -- such as 'ls' -- any dlls mentioned in /proc/$$/maps which cygcheck does not mention are probably dodgy. In my case, Windows Live

Re: Re: Debugging help for fork failure: resource temporarily unavailable

2011-03-15 Thread Ryan Johnson
On 2:59 PM, Jon TURNEY wrote: On 09/03/2011 17:04, Ryan Johnson wrote BTW, while looking at the code I noticed a potential source of remap problems: if B depends on A, and we remap A first, then only A's location will be checked carefully; B will be pulled in wherever it happens to end up when

Re: Re: Debugging help for fork failure: resource temporarily unavailable

2011-03-09 Thread Ryan Johnson
On 2:59 PM, Corinna Vinschen wrote: On Mar 5 17:15, Ryan Johnson wrote: Might it be possible to do an LD_PRELOAD of some sort which hooks into fork() at the critical moment and prints the differences between /proc/$parent/maps and /proc/$child/maps? The code doesn't even need to be efficient

Re: Debugging help for fork failure: resource temporarily unavailable

2011-03-07 Thread Ryan Johnson
On 2:59 PM, Ryan Johnson wrote: I'm hitting the oh-so-delightful fork failures when trying to compile a cross-compiler toolchain, which is a pain because one fork failure makes crosstool-ng start over. I've rebased, I've been over the BLODA (Windows Defender slipped in even after I rejected

Debugging help for fork failure: resource temporarily unavailable

2011-03-05 Thread Ryan Johnson
Hi all, I'm hitting the oh-so-delightful fork failures when trying to compile a cross-compiler toolchain, which is a pain because one fork failure makes crosstool-ng start over. I've rebased, I've been over the BLODA (Windows Defender slipped in even after I rejected the download), and while

Changing mirrors in setup doesn't propagate forward

2010-11-25 Thread Ryan Johnson
Hi all, I just ran into a minor annoyance while trying to run setup.exe (downloaded from cygwin.com just a few minutes ago): I accidentally selected a mirror on the wrong side of the ocean, so I hit 'back' and chose a different, much closer one. The package list was pulled from the local

libglade2.0.sh exit code 2

2010-10-04 Thread Ryan Johnson
Hi all, I just installed libglade as an automatically-detected dependency of pygtk, and it complained of an exit code 2 in the post-install. Looking at /var/log/install.log.full didn't show anything out of the ordinary (no error messages at all) Other than this, it seems to work fine. Is

Re: gitk kills bash shell

2010-09-29 Thread Ryan Johnson
On 9/28/2010 9:40 PM, Jeremy Ramer wrote: On Tue, Sep 28, 2010 at 1:01 PM, Ryan Johnsonryanj...@ece.cmu.edu wrote: This sounds suspiciously similar to a problem that hit me a while back: http://www.cygwin.com/ml/cygwin/2010-09/msg00225.html The short version is, running certain apps in the

mintty window won't open

2010-09-28 Thread Ryan Johnson
Hi all, I switched from rxvt to mintty yesterday, and it worked great all day. However, today when I try to open a new mintty window from within an existing one, nothing happens. The process starts, but no window appears. This happens when attempting to open both 0.8.3 and 0.9b2 windows

Re: mintty window won't open

2010-09-28 Thread Ryan Johnson
Apologies if the below didn't actually arrive before... sent from the wrong email account. In any case, I found the problem: the terminal was running an ssh session to localhost. I have vague memories that ssh and native windows apps don't mix? Regards, Ryan On 9/28/2010 12:23 PM, Ryan

Re: [ANNOUNCEMENT] Testing: mintty-0.9b2-1

2010-09-28 Thread Ryan Johnson
On 9/28/2010 2:05 PM, Andy Koppe wrote: On 27 September 2010 17:02, Ryan Johnson wrote: FYI, it looks like you can enable extended mouse mode manually (echo -ne '\e[?1005h'), and it persists across normal mouse mode sessions. Does xterm do that differently? In that case I should change it. I

Re: gitk kills bash shell

2010-09-28 Thread Ryan Johnson
Jeremy Ramer said: I have a very repeatable issue, but I'm not sure how to go about debugging it. I follow this process. 1) Start an rxvt bash shell 2) Go to a git repo folder 3) Start gitk gitk --all 4) Go back to bash and press any key except enter and bash closes I also get a similar

Re: [ANNOUNCEMENT] Testing: mintty-0.9b2-1

2010-09-27 Thread Ryan Johnson
On 8:59 PM, Andy Koppe wrote: mintty 0.9b2-1 is on its way to the Cygwin mirrors. This is a test release. a .zip can be downloaded from http://mintty.googlecode.com. FWIW, I've been using a home-built mintty-0.9b2 from googlecode all day with no problems (loving extended mouse mode!). I swear

Re: openssh port forwarding administratively prohibited

2010-09-23 Thread Ryan Johnson
On 8:59 PM, Maring, Steven wrote: From a 50K foot perspective, what I'm trying to do is punch a hole through my corporate http proxy to get to github. By itself, cygwin, along with openssh and corkscrew, does not have a problem (i.e. remote git commands work). However, I would also like

TCL exec kills its owning tty (was: Unable to initialize fd 0 for /dev/tty1)

2010-09-07 Thread Ryan Johnson
On 9/6/2010 11:34 PM, Ryan Johnson wrote: The last couple days I've gotten some really strange errors. Sometimes I'll alt-tab to an xterm window and start typing, only to have it disappear at the first keystroke. Sometimes `emacs -nw' will get hit instead, leaving both emacs and the xterm

Re: SIGSEGV in xorg-1.8.2.0 during -resize operation

2010-09-06 Thread Ryan Johnson
On 8/31/2010 7:00 PM, Jon TURNEY wrote: Okay, I think I have worked out the correct thing to do do to handle bpp changes in the RANDR code, and I've uploaded a test build at [1]. Perhaps you could try it and see if it works for you? Note that you will need to use -resize with this build to

Re: SIGSEGV in xorg-1.8.2.0 during -resize operation

2010-09-06 Thread Ryan Johnson
On 9/6/2010 11:01 PM, Ryan Johnson wrote: On 8/31/2010 7:00 PM, Jon TURNEY wrote: Okay, I think I have worked out the correct thing to do do to handle bpp changes in the RANDR code, and I've uploaded a test build at [1]. Perhaps you could try it and see if it works for you? Note that you

Re: Unable to initialize fd 0 for /dev/tty1

2010-09-06 Thread Ryan Johnson
On 9/6/2010 11:45 PM, Eric Berge wrote: Ryan Johnson wrote: The last couple days I've gotten some really strange errors. Sometimes I'll alt-tab to an xterm window and start typing, only to have it disappear at the first keystroke. Sometimes `emacs -nw' will get hit instead, leaving both

Re: SIGSEGV in xorg-1.8.2.0 during -resize operation

2010-09-03 Thread Ryan Johnson
On 8/31/2010 7:00 PM, Jon TURNEY wrote: Okay, I think I have worked out the correct thing to do do to handle bpp changes in the RANDR code, and I've uploaded a test build at [1]. Perhaps you could try it and see if it works for you? Note that you will need to use -resize with this build to

Re: SIGSEGV in xorg-1.8.2.0 during -resize operation

2010-09-01 Thread Ryan Johnson
On 8/31/2010 7:00 PM, Jon TURNEY wrote: Okay, I think I have worked out the correct thing to do do to handle bpp changes in the RANDR code, and I've uploaded a test build at [1]. Perhaps you could try it and see if it works for you? Note that you will need to use -resize with this build to

Re: xwin -multiwindow puts glass pane over windows taskbar

2010-08-31 Thread Ryan Johnson
On 8/31/2010 7:06 PM, Jon TURNEY wrote: On 16/08/2010 11:57, Ryan Johnson wrote: The latest versions of the X server put a glass pane over the windows taskbar -- you have to click on it and then wait several seconds before it responds and gets out of the way. This seems related

Re: Re: X-forwarding very very slow

2010-08-24 Thread Ryan Johnson
On 8:59 PM, Jeremy Bopp wrote: On 8/18/2010 11:55 AM, Csaba Raduly wrote: On Wed, Aug 18, 2010 at 5:43 PM, Alberto Canestrelli wrote: Hi, I have a problem with Cygwin. I am connecting from USA by ssh to the Hector supermachine in Edinburgh ( I write startx in Cygwin and then I use ssh -Y

Re: Re: Missing dependency for Athena libraries

2010-08-16 Thread Ryan Johnson
On 8:59 PM, Andy Koppe wrote: On 14 August 2010 12:57, Ryan Johnson wrote: I just tried to pull down the Athena widget libraries (xaw and xaw3d) and got an unmet dependency message for libXpm-devel. It's not a big deal, since it offered to add it to my list, but a bit odd (I just clicked

xwin -multiwindow puts glass pane over windows taskbar

2010-08-16 Thread Ryan Johnson
Hi all, The latest versions of the X server put a glass pane over the windows taskbar -- you have to click on it and then wait several seconds before it responds and gets out of the way. This seems related to the previous problem of generally slow response to key presses... Has anyone

Missing dependency for Athena libraries

2010-08-14 Thread Ryan Johnson
Hi all, I just tried to pull down the Athena widget libraries (xaw and xaw3d) and got an unmet dependency message for libXpm-devel. It's not a big deal, since it offered to add it to my list, but a bit odd (I just clicked on each once... none of the cycling though

libncurses-devel-5.7-18 doesn't create /usr/include/curses.h

2010-08-14 Thread Ryan Johnson
Hi all, Getting compile errors about curses.h not found, and sure enough, it's not in /usr/include. After reinstalling libncurses-devel (I already had it), the problem didn't go away so I looked in the postinstall script. The comment at the top says: # This script will create symbolic

Re: Re: xterm and 7-bit control codes

2010-08-13 Thread Ryan Johnson
On 8:59 PM, Thomas Dickey wrote: As far as I know, xterm's never sent more than one byte for either x/y in a button event. Ditto for rxvt. It sounds like a useful idea, except that it would of course be incompatible with the existing applications. So it would have to be enabled by a new

Change to gnuplot's handling of ^Z and ^C

2010-08-13 Thread Ryan Johnson
Hi all, Recenty I noticed that gnuplot no longer responds instantly to control characters. You have to hit an additional key before they take effect. So, for example, if I type ^Zdfg\n I get the following: gnuplot ^Z [1]+ Stopped(SIGTSTP)gnuplot [r...@scovich] ~/experiments $ fg

xterm and 7-bit control codes

2010-08-12 Thread Ryan Johnson
Hi all, I'm running into a strange one... At some point in the past (on linux because I didn't know about cygwin yet), xterm used to send the following control sequence for a mouse click at row 1, col 250 ESC [ M SPC \303\206 ! ESC [ M # \303\206 ! From what I could piece together, the

Re: SIGSEGV in xorg-1.8.2.0 during -resize operation

2010-08-12 Thread Ryan Johnson
On 8/12/2010 5:46 PM, Jon TURNEY wrote: On 10/08/2010 06:48, Ryan Johnson wrote: On 8/10/2010 12:02 AM, Jon TURNEY wrote: On 09/08/2010 22:14, Ryan Johnson wrote: When I detached the monitor to leave the office, X disappeared with signal 11 (log attached). Oddly, the log file didn't mention

Re: Re: Missing charsets in String to FontSet conversion

2010-08-09 Thread Ryan Johnson
On 8:59 PM, Jon TURNEY wrote: On 03/08/2010 16:21, Ryan Johnson wrote: As I mentioned before, I'd seen references to those fonts but wasn't sure it would actually help me. I just installed them and, sure enough, there's still some (fewer?) missing charsets. The delay dropped to only 2-3

Re: SIGSEGV in xorg-1.8.2.0 during -resize operation

2010-08-09 Thread Ryan Johnson
On 8/10/2010 12:02 AM, Jon TURNEY wrote: On 09/08/2010 22:14, Ryan Johnson wrote: I was overjoyed to see that the release notes for the new X server release mention support for resizing the X desktop with the windows desktop. Unfortunately, it didn't work :( I modified the xwin windows

Re: Missing charsets in String to FontSet conversion

2010-08-03 Thread Ryan Johnson
On 8/3/2010 3:35 PM, Jon TURNEY wrote: On 03/08/2010 10:00, Thomas Dickey wrote: On Tue, 3 Aug 2010, Ryan Johnson wrote: At some point an annoyance appeared with my xterm windows: The first time I use [ctrl]+mouse click in any window, that xterm becomes unresponsive for about 5 seconds

Re: Re: Slow response to keypresses in xorg-server-1.8.0-1

2010-08-03 Thread Ryan Johnson
On 8:59 PM, Jon TURNEY wrote: I've cooked up a small additional change which should prevent this blocking behaviour and uploaded a build [2]. It seems to resolve the problem in this specific case. Perhaps you could try it out and see if it helps? [1]

Re: RE: startxwin/XWin won't start properly

2010-06-30 Thread Ryan Johnson
What Mike and I want is actually pretty reasonable. We want to be able to preserve the work we do in picking the wheat from the chaff (from our point of view) to avoid having our coworkers or ourselves duplicate that work, whether they understand Unix or not (I'm sorry I brought it up! It is

Re: startx doesn't run proprely

2010-06-25 Thread Ryan Johnson
On 8:59 PM, hakob...@ualberta.ca wrote: Dear Cygwin helper, After the startx command it doesn't open X terminal. In fact, it sometimes open Xterm sometimes not, givin the following error message: snip _XSERVTransMakeAlloCOTSServerListeners: server already running snip Please, tell me

Re: Can't alt-tab to Xterm window

2010-06-18 Thread Ryan Johnson
On 8:59 PM, Craig Moore wrote: If I switch away from my xterm window (alt-tab), and then try to switch back, nothing happens. I have to right-click on the title of the window in the taskbar, which usually activates the window and brings it to the font. It happens pretty consistently so I was

Re: Re: Slow response to keypresses in xorg-server-1.8.0-1

2010-05-18 Thread Ryan Johnson
On 8:59 PM, Ken Brown wrote: On 5/1/2010 9:49 AM, Ken Brown wrote: I'm often seeing a very slow response to keypresses under xorg-server-1.8.0-1. The problem is intermittent, but it always happens within a few minutes after starting the server (via the start menu shortcut or a slight variant).

Tee broken under process substitution?

2010-02-08 Thread Ryan Johnson
Hi all, It appears that 'tee' can't handle process substitution as its target file. It works fine on my Solaris machine at work, and the coreutils info pages explicitly say it should work: solaris$ echo hi | tee (cat) hi hi cygwin$ echo hi | tee (cat) hi tee: /dev/fd/63: Bad file descriptor

X11 + remote desktop + clipboard = hang

2010-01-22 Thread Ryan Johnson
Hi all, I noticed today that trying to cut and paste between an xterm and a remote desktop session causes the remote desktop to hang with a CPU pegged. I have vague memories of this sort of thing happening before (but with a VNC client causing the problem instead of rdtsc.exe). The fix then

Re: Re: 1.5.25-15: pthread_join deadlocks

2009-11-20 Thread Ryan Johnson
Corinna Vinschen wrote: On Nov 19 12:29, Ryan Johnson wrote: Hi all, I'm hitting a deadlock with cygwin pthreads when joining on a short-lived thread -- for me the second such thread creation will almost never return. It looks *exactly* like a problem that others noticed as far back

1.5.25-15: pthread_join deadlocks

2009-11-19 Thread Ryan Johnson
Hi all, I'm hitting a deadlock with cygwin pthreads when joining on a short-lived thread -- for me the second such thread creation will almost never return. It looks *exactly* like a problem that others noticed as far back as early 2005 [0], and from the output of strace on the test case

Unexpected unmet dependencies with installer

2009-02-06 Thread Ryan Johnson
Hi all, I just tried to download the 'screen' package through Cygwin's setup.exe, and set the mode to 'Keep' to avoid pulling down the umpteen updated packages it found. Then I selected 'screen' from the list. However, when I tried to complete the install I got warnings about jasper,

Cygwin/X + Solaris = no function keys

2007-02-05 Thread Ryan Johnson
error like all the x-apps do. Has anyone else seen this issue? It seems similar to a couple of messages about eclipse from April 2005, but those had no resolution. Thanks, Ryan Johnson -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com

<    1   2   3   4   5