Re: XWin.exe causes Windows apps. to freeze

2011-11-21 Thread Ryan Johnson
On 21/11/2011 12:57 PM, Jim Reisert AD1C wrote: On Mon, Nov 21, 2011 at 10:39 AM, Ryan Johnson ryan.john...@cs.utoronto.ca wrote: If you think it's clipboard related, try running with -noclipboard and see if that fixes it. Downside is, you lose all clipboard functionality... Duh, I should

Re: XWin.exe causes Windows apps. to freeze

2011-11-21 Thread Ryan Johnson
On 21/11/2011 4:25 PM, Jim Reisert AD1C wrote: On Mon, Nov 21, 2011 at 1:20 PM, Ryan Johnson wrote: Eh? Mouse copy/paste in mintty is identical to xterm AFAIK... select = copy, middle button = paste. If you're in a mouse-using terminal app you have to hold down [shift] but that's the same

Re: XWin.exe causes Windows apps. to freeze

2011-11-21 Thread Ryan Johnson
On 22/11/2011 12:27 AM, Andy Koppe wrote: On 21 November 2011 23:45, Ryan Johnson wrote: On 21/11/2011 4:25 PM, Jim Reisert AD1C wrote: On Mon, Nov 21, 2011 at 1:20 PM, Ryan Johnson wrote: Eh? Mouse copy/paste in mintty is identical to xterm AFAIK... select = copy, middle button = paste

Re: help for diagnose unpedictable fork errors, cygheap base msimatch errors

2011-11-16 Thread Ryan Johnson
On 17/11/2011 12:36 AM, Heiko Elger wrote: marco atzerimarco.atzeri writes: Heiko, you wrote a lot of mail , but I do not remember a single Problem reports: http://cygwin.com/problems.html As cygwin is working on win7/64, something is wrong on your machine, but until you provide clear

Re: [SOLVED] Re: What updates done after October 3 may affect gfortran built binaries?

2011-11-15 Thread Ryan Johnson
On 15/11/2011 10:53 AM, Dave Korn wrote: On 09/11/2011 12:15, Edvardsen Kåre wrote: This is again related to the failure of execution of a gfortran built binary (cannot execute binary, see thread http://cygwin.com/ml/cygwin/2011-11/msg00034.html ) In short, the main problem is that I can't

Strange freezing in emacs

2011-11-10 Thread Ryan Johnson
Hi all, I just installed a big mess of windows updates and rebooted, and ever since emacs seems to have trouble with subprocesses: when attempting to read mercurial revision info for a file or running make, it sometimes freezes for 5-10 seconds without doing anything at all (no disk, no

Re: Strange freezing in emacs

2011-11-10 Thread Ryan Johnson
On 10/11/2011 5:21 PM, Ken Brown wrote: On 11/10/2011 5:10 PM, Ryan Johnson wrote: Hi all, I just installed a big mess of windows updates and rebooted, and ever since emacs seems to have trouble with subprocesses: when attempting to read mercurial revision info for a file or running make

gdb broken inside emacs (again? still?)

2011-11-09 Thread Ryan Johnson
Hi all, Attempting to run gdb inside emacs with an executable file name argument (with or without --annotate=3) causes it to seg fault (no surprise, known issue). Running just `gdb' from emacs allows it to initialize, but attempts to load a file or indeed perform any command hang until a

setup.exe, dependencies, and 'keep' mode

2011-11-09 Thread Ryan Johnson
Hi all, There's a somewhat annoying behavior in setup.exe when installing packages in 'keep' mode: all dependencies selected by things which would have been installed in 'Curr' mode still try to download. Often I can tell that they're spurious and just choose not to install them, but it

Re: gdb broken inside emacs (again? still?)

2011-11-09 Thread Ryan Johnson
On 09/11/2011 5:32 PM, Ken Brown wrote: On 11/9/2011 4:44 PM, Ryan Johnson wrote: Debugging anything within emacs is thus completely impossible at this time. cgf has already stated that this will be fixed in the next release of gdb; see http://cygwin.com/ml/cygwin/2011-10/msg00564.html

Re: gdb broken inside emacs (again? still?)

2011-11-09 Thread Ryan Johnson
On 09/11/2011 5:32 PM, Ken Brown wrote: On 11/9/2011 4:44 PM, Ryan Johnson wrote: Running just `gdb' from emacs allows it to initialize, but attempts to load a file or indeed perform any command hang until a double-^C cancels the attempt (reporting C-c C-cquit). Ironically, even `quit' hangs

Re: gdb broken inside emacs (again? still?)

2011-11-09 Thread Ryan Johnson
On 09/11/2011 9:37 PM, Ken Brown wrote: On 11/9/2011 6:08 PM, Ryan Johnson wrote: On 09/11/2011 5:32 PM, Ken Brown wrote: In the meantime, can't you use gdb 7.3.50-1? If you also have problems with that release, please send detailed instructions for reproducing the problem (starting with emacs

Re: stderr doesn't work in gdb?

2011-11-05 Thread Ryan Johnson
On 05/11/2011 4:02 PM, Phan, Linh H (3443) wrote: it seems there is a problem with stderr when running a program under gdb in cygwin 1.7.9 with 64 bit Windows 7; This was fixed some time ago. You might try a snapshot. Ryan -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: recompiling gcc, make, and binutils for my cpu architecture?

2011-11-03 Thread Ryan Johnson
On 03/11/2011 8:54 AM, Jorge wrote: Hi all, I hope I am posting in the right location. This has nothing whatsoever to do with cygwin. I would like to setup/optimize gcc, binutils, and make for my CPU architecture, AMD K8, and rebuild. I have installed the cygwin sources. Invoking gcc with

Re: invisible / hidden prompt text after exiting process

2011-11-03 Thread Ryan Johnson
On 03/11/2011 11:54 AM, Eric Vlach wrote: After exiting a process that returns me back to the shell, my prompt text is hidden. (Example - emacs file.txt; or ssh myserver.com; then exit. From then on, prompt text is hidden.) The characters are passed: when I type blindly and hit enter the

Re: X Server shortcut removed from start menu?

2011-10-20 Thread Ryan Johnson
On 20/10/2011 6:47 AM, Jon TURNEY wrote: On 19/10/2011 15:11, Ryan Johnson wrote: On 19/10/2011 9:40 AM, Jon TURNEY wrote: On 19/10/2011 12:55, Ryan Johnson wrote: 2011/10/18 14:57:17 running: c:\cygwin\bin\bash.exe --norc --noprofile /etc/postinstall/xinit.sh 2011/10/18 14:57:17 abnormal

Re: X Server shortcut removed from start menu?

2011-10-19 Thread Ryan Johnson
On 19/10/2011 7:43 AM, Jon TURNEY wrote: On 18/10/2011 19:58, Ryan Johnson wrote: I recently upgraded to the latest cygwin/x and my start menu no longer contains a shortcut to start the x-server -- the thing there is a shortcut for xterm. Is there a packaging change that I wasn't aware

Re: X Server shortcut removed from start menu?

2011-10-19 Thread Ryan Johnson
On 19/10/2011 9:40 AM, Jon TURNEY wrote: On 19/10/2011 12:55, Ryan Johnson wrote: 2011/10/18 14:57:17 running: c:\cygwin\bin\bash.exe --norc --noprofile /etc/postinstall/xinit.sh 2011/10/18 14:57:17 abnormal exit: exit code=3 I guess something different than usual went wrong? What's the best

Re: Problem w/ gdb 7.3.50-2 under emacs

2011-10-13 Thread Ryan Johnson
On 17/09/2011 8:51 AM, Ken Brown wrote: On 9/13/2011 11:48 PM, Bill Priest wrote: All, I updated gdb to 7.3.50-2 and I can no longer run M-x gdb under emacs inside rxvt (gdb core dumps). Reverting back to 7.3.50-1 and it works. The executable being debugged is built with gcc 4.5.3 and

Re: Problem w/ gdb 7.3.50-2 under emacs

2011-10-13 Thread Ryan Johnson
On 13/10/2011 1:33 PM, Ryan Johnson wrote: On 17/09/2011 8:51 AM, Ken Brown wrote: On 9/13/2011 11:48 PM, Bill Priest wrote: All, I updated gdb to 7.3.50-2 and I can no longer run M-x gdb under emacs inside rxvt (gdb core dumps). Reverting back to 7.3.50-1 and it works. The executable

Re: Problem w/ gdb 7.3.50-2 under emacs

2011-10-13 Thread Ryan Johnson
On 13/10/2011 6:36 PM, Ken Brown wrote: On 10/13/2011 2:32 PM, Ryan Johnson wrote: Update: gdb (previous version and home-built) doesn't seg fault, but is unable to run commands under the latest cygwin emacs: nothing happens when you hit [enter], though it usually responds to ^C and comes back

Re: ANSI C header files

2011-10-04 Thread Ryan Johnson
On 04/10/2011 9:05 AM, Kåre Edvardsen wrote: On Tue, Oct 4, 2011 at 12:13 PM, Marco Atzeri wrote: (snip) Kare, in addition to the TOFU advise, running configure of grib_api-1.9.9_libtool.tar.gz on my XP-SP3 gave no problem. Configuration completed. The ANSI C test is a basic one

Re: rebaseall and cygstdc++-6.dll

2011-09-26 Thread Ryan Johnson
On 26/09/2011 2:28 AM, Marco Atzeri wrote: On 9/26/2011 5:15 AM, Yaakov (Cygwin/X) wrote: On Mon, 2011-09-26 at 02:15 +0100, Dave Korn wrote: The problem is in binutils, and the fact that it generates base relocs for entries from EH data that should be just ignored.

Re: tar deletes .exe files on extraction (again)

2011-09-23 Thread Ryan Johnson
On 22/09/2011 9:56 PM, Larry Hall (Cygwin) wrote: On 9/22/2011 4:57 PM, Steve Atkins wrote: In the process of trying to build Qt on Windows in a cygwin shell, I've discovered that neither tar nor unzip will work reliably under Cygwin - untaring an archive will not correctly create the files

Re: Relocation patch for cygwin

2011-09-23 Thread Ryan Johnson
On 23/09/2011 4:10 PM, jojelino wrote: On 2011-01-29 AM 3:04, Charles Wilson wrote: On the cygwin list, Corinna Vinschen, one of the main cygwin developers and project lead, noticed a problem with libiconv's behavior on cygwin 1.7.x (which I'll follow up on the appropriate list, in a few days).

Re: plotting from octave: address space already occupied, fork aborts

2011-09-14 Thread Ryan Johnson
On 14/09/2011 1:43 AM, Marco atzeri wrote: On 9/14/2011 4:52 AM, Paul wrote: I am using the 2011-08-29 snapshot at http://cygwin.com/snapshots because cygwin-1.7.9-1 does not allow me to write to, or create, files on network drives (http://cygwin.com/packages/cygwin/cygwin-1.7.9-1).

Re: login: no shell: /bin/bash: Permission denied

2011-09-14 Thread Ryan Johnson
On 14/09/2011 11:08 AM, Jeremy Bopp wrote: On 9/13/2011 13:38, Larson, Donald (Don) wrote: I understand su does not work – answer use ssh. SSHD cannot start because user sshd cannot login. I run login sshd type in the password and then I get the message. What you're saying is that you want a

Re: [ANNOUNCEMENT] Updated: stable compiler package gcc4-4.5.3-2

2011-09-08 Thread Ryan Johnson
On 08/09/2011 1:32 AM, Frédéric Bron wrote: I have recompiled the code I am working on with i686-pc-cygwin-g++ 4.5.3. I get many of the following messages from the linker: /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: gcc-release/obj/BTest/Test.o: warning: duplicate

Re: [ANNOUNCEMENT] Updated: stable compiler package gcc4-4.5.3-2

2011-09-08 Thread Ryan Johnson
On 08/09/2011 4:17 PM, Frédéric Bron wrote: In my experience, these sorts of errors arise when there really is something wrong with the code, usually involving sizes of integers (e.g. 'long' in struct's definition and 'int' in another, on a 64-bit machine). However, the linker is poorly-equipped

Re: Extend faq.using to discuss fork failures

2011-08-30 Thread Ryan Johnson
question? That would at least cut traffic to the cygwin ML a bit. Ryan On 30/08/2011 2:00 AM, Corinna Vinschen wrote: Hi Ryan, Thanks for the FAQ entry. I had a look now, finally. Two nits: On Aug 25 22:08, Ryan Johnson wrote: Index: winsup/doc/faq-using.xml

Re: [PATCH] profile support

2011-08-30 Thread Ryan Johnson
On 29/08/2011 2:15 PM, jojelino wrote: On 2011-08-30 AM 5:23, Christopher Faylor wrote: Maybe Corinna will disagree but I think there is way too much code change here for me to be comfortable with including it. It looks like it would be an ongoing maintenance issue, requiring constant

Re: v*printf functions not available with g++ -std=c++0x

2011-08-28 Thread Ryan Johnson
On 18/08/2011 10:33 AM, Corinna Vinschen wrote: If I try that with Yaakov's 4.5.3 cross compilers, then __STRICT_ANSI__ is not defined with -std=c__0x, unless I also specify `-ansi' on the command line. However, there's a weird warning: $ i686-pc-cygwin-g++ -std=c++0x -dM -E - /dev/null |

Re: fixing fork failures (was: Re: Best way to repair cygwin?)

2011-08-26 Thread Ryan Johnson
On 26/08/2011 9:22 AM, Ronald Fischer wrote: 9420794 [main] sh 8004 exception::handle: Exception: STATUS_ACCESS_VIOLATION sh: fork: retry: Resource temporarily unavailable I had run setup again yesterday evening I wonder whether there is an easy way to repair Cygwin Quoting Larry's recent

Extend faq.using to discuss fork failures

2011-08-25 Thread Ryan Johnson
Hi all, Based on the feedback on cygwin-dev, I've put together a revised pair of faq.using entries: one listing briefly the symptoms of fork failures and what to do about it, and the other giving some details about why fork fails (sometimes in spite of everything we do to compensate).

Re: Typical Cygwin fork problem

2011-08-19 Thread Ryan Johnson
On 19/08/2011 5:23 AM, big glass wrote: I have ruby installed and am trying this, but run this but lots of errors: $ gem install sproutcore Fetching: rack-1.3.2.gem (100%) Fetching: json_pure-1.4.6.gem (100%) Fetching: extlib-0.9.15.gem (100%) Fetching: erubis-2.7.0.gem (100%) Fetching:

v*printf functions not available with g++ -std=c++0x

2011-08-17 Thread Ryan Johnson
Hi all, I'm using the experimental gcc-4.5 package and hit a strange error: c++0x mode suppresses the definition of the v*printf() family of functions in stdio.h in c++0x mode. The offending code seems to be: #if !defined(__STRICT_ANSI__) || (__STDC_VERSION__ = 199901L) #ifndef _REENT_ONLY

Help debugging signal sources with gdb

2011-08-17 Thread Ryan Johnson
Hi all, Signals seem to really confuse gdb under cygwin (win7-x64), usually leading to stack traces somewhere in kernelbase.dll or ntdll.dll with no hint of the actual code responsible for the error. In particular, SIGABRT and SIGSEGV would be nice to catch a little closer to the source.

Re: teTeX/dvips

2011-08-16 Thread Ryan Johnson
On 16/08/2011 2:26 PM, R P Herrold wrote: On Mon, 15 Aug 2011, Charles Hyder wrote: Turns out, the include path for dvips's map files is /usr/shar/texmf/fonts/map// (!) Here, the // means search all subdirectories, of course. I have to admit ignorance here of this seeming common knowledge.

Re: fork: Resource temporarily unavailable: address space is already occupied

2011-08-10 Thread Ryan Johnson
On 10/08/2011 7:04 AM, Heiko Elger wrote: Christopher Faylor writes: On Wed, Aug 10, 2011 at 04:51:32AM +, Heiko Elger wrote: Hello, I know there are lots of such postings Resource temporarily unavailable. But using lates snapshot (2011-08-03): there are changes by C. Faylor printing

Re: fork: Resource temporarily unavailable: address space is already occupied

2011-08-10 Thread Ryan Johnson
On 10/08/2011 7:16 AM, Heiko Elger wrote: Ryan Johnson writes: Did you reboot? Windows won't notice the changes made by peflagsall until you do so. yes Also, you never mentioned what you are making. Are you, by chance building an app which builds helper binaries and/or lots of shared

Re: emacs and large-address awareness under recent snapshots

2011-08-09 Thread Ryan Johnson
On 09/08/2011 11:21 AM, Corinna Vinschen wrote: On Aug 9 10:23, Ken Brown wrote: On 8/9/2011 10:12 AM, Ken Brown wrote: On 8/9/2011 7:19 AM, Ken Brown wrote: (gdb) thread 1 [Switching to thread 1 (Thread 19828.0x447c)] #0 0x00622ee0 in morecore_nolock (size=1052672) at gmalloc.c:703 703

Re: emacs and large-address awareness under recent snapshots

2011-08-09 Thread Ryan Johnson
On 09/08/2011 10:33 PM, Ken Brown wrote: On 8/9/2011 2:21 PM, Ken Brown wrote: On 8/9/2011 11:21 AM, Corinna Vinschen wrote: However, whatever you do, it will not really work. Keep in mind that the large address awareness only makes sense (and has any effect!) on systems which provide a large

gdb-7.3.50-1 can't read debug info for gcc-4.5.0-1 (exp)?

2011-08-05 Thread Ryan Johnson
Hi all, It seems that the latest release of gdb doesn't quite get debug info right when reading apps compiled with the experimental gcc-4.5 package. It's a lot closer than the old gdb was able to get, but reported line numbers are usually off by 3-5 lines and breakpoints are similarly

Re: GCC version 4.3 on Cygwin ?

2011-08-05 Thread Ryan Johnson
On 01/08/2011 10:31 PM, Jan Chludzinski wrote: Because our gcc maintainer went missing. We hope Dave is ok, as we have had no word from him. However, in the meantime, we've had another person (Yaakov) volunteer to pick up the slack; the recent release of an updated GMP package were requested

Re: gdb-7.3.50-1 can't read debug info for gcc-4.5.0-1 (exp)?

2011-08-05 Thread Ryan Johnson
On 05/08/2011 7:58 AM, Ryan Johnson wrote: It seems that the latest release of gdb doesn't quite get debug info right when reading apps compiled with the experimental gcc-4.5 package. It's a lot closer than the old gdb was able to get, but reported line numbers are usually off by 3-5 lines

Re: Pthread question for GDB?

2011-07-14 Thread Ryan Johnson
On 14/07/2011 5:43 AM, Jan Chludzinski wrote: If I'm stepping through main() in GDB, when I step past pthread_create() should the associated (newly created) thread begin executing independently of main() (i.e., the main thread)? Executing independently in the background? Welcome to the jungle.

Debug info broken for gcc-4.5.0 (experimental)

2011-07-06 Thread Ryan Johnson
Hi all, I've been using gcc-4.5.0 happily for a while, but today I had to break out gdb to chase down a seg fault. Unfortunately, gdb was getting line numbers completely wrong, so I had to revert to gcc-4.3 to work through my bug. Has anybody else seen this? If not, and if it's not trivial

Re: Debug info broken for gcc-4.5.0 (experimental)

2011-07-06 Thread Ryan Johnson
On 06/07/2011 3:09 AM, Corinna Vinschen wrote: On Jul 6 02:06, Ryan Johnson wrote: Hi all, I've been using gcc-4.5.0 happily for a while, but today I had to break out gdb to chase down a seg fault. Unfortunately, gdb was getting line numbers completely wrong, so I had to revert to gcc-4.3

Re: untarring symlinks with ../ fails randomly, silghtly OT

2011-07-05 Thread Ryan Johnson
On 05/07/2011 8:10 AM, Corinna Vinschen wrote: On Jul 4 12:46, Corinna Vinschen wrote: On Jul 4 11:15, Wolf Geldmacher wrote: As an aside: I also used to have some trouble with rm -rf of a directory hierarchy failing more or less reproducibly (like: 80% of the time)

Re: untarring symlinks with ../ fails randomly, silghtly OT

2011-07-04 Thread Ryan Johnson
On 04/07/2011 6:46 AM, Corinna Vinschen wrote: On Jul 4 11:15, Wolf Geldmacher wrote: As an aside: I also used to have some trouble with rm -rf of a directory hierarchy failing more or less reproducibly (like: 80% of the time) because files were presumably still in use.

Re: untarring symlinks with ../ fails randomly, silghtly OT

2011-07-04 Thread Ryan Johnson
On 04/07/2011 7:33 AM, Corinna Vinschen wrote: On Jul 4 06:56, Ryan Johnson wrote: On 04/07/2011 6:46 AM, Corinna Vinschen wrote: On Jul 4 11:15, Wolf Geldmacher wrote: As an aside: I also used to have some trouble with rm -rf of a directory hierarchy failing more or less

Re: untarring symlinks with ../ fails randomly, silghtly OT

2011-07-04 Thread Ryan Johnson
On 04/07/2011 8:21 AM, Ryan Johnson wrote: On 04/07/2011 7:33 AM, Corinna Vinschen wrote: On Jul 4 06:56, Ryan Johnson wrote: On 04/07/2011 6:46 AM, Corinna Vinschen wrote: On Jul 4 11:15, Wolf Geldmacher wrote: As an aside: I also used to have some trouble with rm -rf of a directory

Re: bug in pipe() and pipe2()

2011-06-30 Thread Ryan Johnson
On 30/06/2011 5:38 AM, Corinna Vinschen wrote: On Jun 29 15:30, Eric Blake wrote: I was testing the behavior when pipe() fails, in order to propose an update to POSIX wording: http://austingroupbugs.net/view.php?id=467 However, cygwin's pipe implementation dumps core when it runs out of fds,

Re: Programming Anti-patterns in Shell and Perl Scripts

2011-06-28 Thread Ryan Johnson
On 28/06/2011 2:53 PM, Sravan Bhamidipati wrote: Hello Cygwin. :-) I have been working on static code analysis from a performance perspective, and I recently applied the concept to Shell and Perl scripts. The most basic idea was to look for usages of Unix commands, their combinations with

Re: I have a new acronym for the list

2011-06-21 Thread Ryan Johnson
On 20/06/2011 11:43 PM, Edward McGuire wrote: On Mon, Jun 20, 2011 at 07:56:23AM -0700, david wilson wrote: Y've Got 2 B F*%ing Kidding Me = YG2BFKM On Mon, Jun 20, 2011 at 19:17, Christopher Faylor wrote: Sorry but no. The acronym list is intended to explain acronyms that are used in the

Re: fork: retry: Resource temporarily unavailable

2011-06-15 Thread Ryan Johnson
On 15/06/2011 2:14 PM, Kevin Layer wrote: When running make, which spawns shell scripts from time to time, I see this: ../../version.sh: fork: retry: Resource temporarily unavailable The list archives are full of discussions about this (did you search them?). The short version is that

Re: Cygwin ssh vs NIPS

2011-06-15 Thread Ryan Johnson
On 15/06/2011 4:09 PM, steve wrote: I have been using Cygwin for several years to remotely manage my servers via ssh. In the last month our SiteProtector start killing my ssh connections. It is flagging it as a DOS. The specific NIPS rule is ssh_ChallengeResponse_BO. This signature looks

Re: asterisk appended to filenames when using cygwin sftp

2011-06-14 Thread Ryan Johnson
On 14/06/2011 7:27 PM, Florian, Chad W wrote: I know there has to be some alias hiding in my configs somewhere but I am unable to find it. I have a fresh install with no customization. When I sftp to a host (linux in this case) using cygwin sftp, an ls -l is giving me the -classify type option

Re: Mercurial not returning with 20110601 snapshot

2011-06-02 Thread Ryan Johnson
On 02/06/2011 9:05 AM, Chris Sutcliffe wrote: On 2 June 2011 08:27, Christopher Faylor wrote: Could you provide the actual steps needed to duplicate the problem, assuming that anyone doing testing will not be familiar with mercurial? It seems to be an issue with using mercurial over ssh versus

Re: Mercurial not returning with 20110601 snapshot

2011-06-02 Thread Ryan Johnson
On 02/06/2011 10:24 PM, Christopher Faylor wrote: On Thu, Jun 02, 2011 at 11:47:47AM -0400, Chris Sutcliffe wrote: On 2 June 2011 09:45, marco atzeri wrote: On Thu, Jun 2, 2011 at 3:34 PM, Ryan Johnson ?wrote: Assuming cygwin sshd is running locally, couldn't you just create an empty repo

Re: Bug in cmalloc? Was: Re: Problems with: Improvements to fork handling (2/5)

2011-05-30 Thread Ryan Johnson
On 30/05/2011 2:24 AM, Christopher Faylor wrote: On Sun, May 29, 2011 at 12:27:45PM -0400, Christopher Faylor wrote: On Sun, May 29, 2011 at 01:51:35AM -0400, Ryan Johnson wrote: So, I defined this small function: static void break_cmalloc(int depth, int maxdepth) { void* x = cmalloc

Re: Problem with Cygwin's fdopen and Windows handles

2011-05-30 Thread Ryan Johnson
On 30/05/2011 3:34 AM, Juanjo wrote: Christopher Faylorcgf-use-the-mailinglist-pleaseat cygwin.com writes: Unfortunately, cygwin_attach_handle_to_fd doesn't really work. Cygwin needs to know the type of handle it is attaching in order to set up the correct type of file handler. Since it

Bug in cmalloc? Was: Re: Problems with: Improvements to fork handling (2/5)

2011-05-29 Thread Ryan Johnson
On 29/05/2011 12:37 AM, Daniel Colascione wrote: On 5/28/11 7:35 PM, Ryan Johnson wrote: On 28/05/2011 8:23 PM, Christopher Faylor wrote: On Sat, May 28, 2011 at 06:40:30PM -0400, Ryan Johnson wrote: On 28/05/2011 4:50 PM, Christopher Faylor wrote: On Wed, May 11, 2011 at 02:31:37PM -0400

Re: Problems with: Improvements to fork handling (2/5)

2011-05-28 Thread Ryan Johnson
On 28/05/2011 4:50 PM, Christopher Faylor wrote: On Wed, May 11, 2011 at 02:31:37PM -0400, Ryan Johnson wrote: This patch has the parent sort its dll list topologically by dependencies. Previously, attempts to load a DLL_LOAD dll risked pulling in dependencies automatically, and the latter

Re: Problems with: Improvements to fork handling (2/5)

2011-05-28 Thread Ryan Johnson
On 28/05/2011 8:23 PM, Christopher Faylor wrote: On Sat, May 28, 2011 at 06:40:30PM -0400, Ryan Johnson wrote: On 28/05/2011 4:50 PM, Christopher Faylor wrote: On Wed, May 11, 2011 at 02:31:37PM -0400, Ryan Johnson wrote: This patch has the parent sort its dll list topologically

Re: mintty fonts (was: Re: setup and mintty)

2011-05-26 Thread Ryan Johnson
On 26/05/2011 9:19 AM, Corinna Vinschen wrote: On May 26 08:09, Charles Wilson wrote: On 5/26/2011 2:09 AM, Corinna Vinschen wrote: On May 26 06:08, Andy Koppe wrote: On 25 May 2011 22:00, Ryan Johnson wrote: On 25/05/2011 3:48 PM, Andy Koppe wrote: I guess somebody needs to file a bug

Re: help developing a good problem report

2011-05-26 Thread Ryan Johnson
On 26/05/2011 1:10 PM, Rance Hall wrote: I've been noticing an issue with cygwin that I find annoying and would like to fix. Ive never submitted a cygwin problem report before so this is a first. My issue now is that I dont actually understand the problem well enough to give a good report.

Re: Does Latex/Tex install? Does Latex/Tex work? How do you get it installed? How do you get it to work?

2011-05-26 Thread Ryan Johnson
On 26/05/2011 2:33 PM, Lee Rothstein wrote: I have never been able to get the Tex stuff to work. I've never even been able to install it successfully. I admit it, I'm a dolt. Anybody have the magic beans on this? I've tried installing and reinstalling. Never can get it to work. As it happens,

rsync, network shares, and soft links

2011-05-26 Thread Ryan Johnson
Hi all, I'm using rsync to make backups of my laptop to a windows share, and with the -l option it copies over links, but apparently does so as linux-style rather than cygwin-style. When I do it to a local dir, the link is recognized as such and not re-sent: $ cd test; ln -s ../apps; ll; cd

Re: setup and mintty (was Re: New setup.exe release?)

2011-05-25 Thread Ryan Johnson
On 25/05/2011 11:54 AM, KHMan wrote: On 5/25/2011 11:26 PM, Charles Wilson wrote: On 5/25/2011 1:17 AM, Andy Koppe wrote: On 25 May 2011 05:32, Charles Wilson wrote: Maybe when I get home I'll test out a few... Consolas Andale Mono Courier New Lucida Console Vera Sans Mono (or DejaVu LGC

Re: setup and mintty (was Re: New setup.exe release?)

2011-05-25 Thread Ryan Johnson
On 25/05/2011 12:55 PM, Andy Koppe wrote: On 25 May 2011 17:13, Ryan Johnson wrote: On 25/05/2011 11:54 AM, KHMan wrote: On 5/25/2011 11:26 PM, Charles Wilson wrote: On 5/25/2011 1:17 AM, Andy Koppe wrote: On 25 May 2011 05:32, Charles Wilson wrote: Maybe when I get home I'll test out a few

Re: mintty fonts (was: Re: setup and mintty)

2011-05-25 Thread Ryan Johnson
On 25/05/2011 3:48 PM, Andy Koppe wrote: On 25 May 2011 19:05, Ryan Johnson wrote: How do you get mintty to see Liberation Mono? I downloaded the family from redhat, installed it on my w7-x64 machine, made sure it was set to 'show,' and started a fresh mintty, but it still can't find the font

Re: Improvements to fork handling (2/5)

2011-05-24 Thread Ryan Johnson
On 23/05/2011 3:31 AM, Corinna Vinschen wrote: On May 22 14:42, Ryan Johnson wrote: On 21/05/2011 9:44 PM, Christopher Faylor wrote: On Wed, May 11, 2011 at 02:31:37PM -0400, Ryan Johnson wrote: Hi all, This patch has the parent sort its dll list topologically by dependencies. Previously

Re: Improvements to fork handling (2/5)

2011-05-24 Thread Ryan Johnson
On 24/05/2011 12:14 PM, Corinna Vinschen wrote: On May 22 14:42, Ryan Johnson wrote: On 21/05/2011 9:44 PM, Christopher Faylor wrote: On Wed, May 11, 2011 at 02:31:37PM -0400, Ryan Johnson wrote: Hi all, This patch has the parent sort its dll list topologically by dependencies. Previously

Re: Improvements to fork handling (2/5)

2011-05-24 Thread Ryan Johnson
On 24/05/2011 9:05 AM, Corinna Vinschen wrote: On May 24 07:27, Ryan Johnson wrote: On 23/05/2011 3:31 AM, Corinna Vinschen wrote: On May 22 14:42, Ryan Johnson wrote: In theory, this should completely eliminate the case where us loading one DLL pulls in dependencies automatically

Re: Improvements to fork handling (1/5)

2011-05-24 Thread Ryan Johnson
On 22/05/2011 4:29 PM, Christopher Faylor wrote: On Sun, May 22, 2011 at 09:04:40AM -0400, Ryan Johnson wrote: On 21/05/2011 9:41 PM, Christopher Faylor wrote: On Wed, May 11, 2011 at 02:31:23PM -0400, Ryan Johnson wrote: Hi all, This is the first of a series of patches, sent in separate

Re: Improvements to fork handling (2/5)

2011-05-24 Thread Ryan Johnson
On 23/05/2011 3:31 AM, Corinna Vinschen wrote: On May 22 14:42, Ryan Johnson wrote: On 21/05/2011 9:44 PM, Christopher Faylor wrote: On Wed, May 11, 2011 at 02:31:37PM -0400, Ryan Johnson wrote: Hi all, This patch has the parent sort its dll list topologically by dependencies. Previously

Re: CYGWIN=tty round 2

2011-05-24 Thread Ryan Johnson
On 24/05/2011 2:22 AM, Christopher Faylor wrote: On Mon, May 23, 2011 at 07:21:16PM -0400, Ryan Johnson wrote: On 22/05/2011 10:53 PM, Yaakov (Cygwin/X) wrote: On Sun, 2011-05-22 at 17:19 -0400, Christopher Faylor wrote: I don't think we saw anyone step forward with a valid reason why

Re: CYGWIN=tty round 2

2011-05-23 Thread Ryan Johnson
On 22/05/2011 10:53 PM, Yaakov (Cygwin/X) wrote: On Sun, 2011-05-22 at 17:19 -0400, Christopher Faylor wrote: I don't think we saw anyone step forward with a valid reason why they needed to use CYGWIN=tty over something like mintty. I've summarized the thread where Corinna asked why people

Re: Improvements to fork handling (1/5)

2011-05-22 Thread Ryan Johnson
On 21/05/2011 9:41 PM, Christopher Faylor wrote: On Wed, May 11, 2011 at 02:31:23PM -0400, Ryan Johnson wrote: Hi all, This is the first of a series of patches, sent in separate emails as requested. The first patch allows a child which failed due to address space clobbers to report cleanly

Re: Improvements to fork handling (2/5)

2011-05-22 Thread Ryan Johnson
On 21/05/2011 9:44 PM, Christopher Faylor wrote: On Wed, May 11, 2011 at 02:31:37PM -0400, Ryan Johnson wrote: Hi all, This patch has the parent sort its dll list topologically by dependencies. Previously, attempts to load a DLL_LOAD dll risked pulling in dependencies automatically

Re: Re: High Activity of setprogname

2011-05-19 Thread Ryan Johnson
On 2:59 PM, Sravan Bhamidipati wrote: Terminals like mintty and rxvt are doing an unusual amount of context switching and consuming a lot of CPU cycles even in idle time. Process Explorer suggests that this activity is largely attributable to cygwin1.dll!setprogname. Could this be something that

Re: trying to get the process id for a spawned process to wait for it

2011-05-18 Thread Ryan Johnson
On 2:59 PM, C. Woody Butler wrote: Hi - I'm trying to launch a set number of threads, wait for them to finish, launch another set of threads, wait and repeat until there's no more input. so - I've got this (this is in the middle of a loop reading a file): Jobs=$Jobs + 1 What shell are you

Re: Improvements to fork handling (1/5)

2011-05-17 Thread Ryan Johnson
Any feedback on these patches? On 11/05/2011 2:31 PM, Ryan Johnson wrote: Hi all, This is the first of a series of patches, sent in separate emails as requested. The first patch allows a child which failed due to address space clobbers to report cleanly back to the parent. As a result

Re: Extending /proc/*/maps

2011-05-12 Thread Ryan Johnson
On 12/05/2011 11:09 AM, Corinna Vinschen wrote: On May 12 14:10, Corinna Vinschen wrote: On May 11 21:31, Corinna Vinschen wrote: On May 11 13:46, Ryan Johnson wrote: Given that Heap32* has already been reverse-engineered by others, the main challenge would involve sorting the set of heap

Re: Extending /proc/*/maps

2011-05-12 Thread Ryan Johnson
On 11/05/2011 3:31 PM, Corinna Vinschen wrote: On May 11 13:46, Ryan Johnson wrote: Also, the cygheap isn't a normal windows heap, is it? I thought it was essentially a statically-allocated array (.cygheap) that gets managed as a heap. I guess since it's part of cygwin1.dll we already do sort

Re: Extending /proc/*/maps

2011-05-12 Thread Ryan Johnson
On 12/05/2011 12:55 PM, Corinna Vinschen wrote: struct heap { heap *next; -void *base; +unsigned heap_id; +uintptr_t base; +uintptr_t end; +unsigned long flags; }; We don't actually need the end pointer: we're trying to match an No, we need it. The heaps

Re: Extending /proc/*/maps

2011-05-12 Thread Ryan Johnson
On 12/05/2011 1:11 PM, Corinna Vinschen wrote: On May 12 18:55, Corinna Vinschen wrote: On May 12 12:31, Ryan Johnson wrote: On 12/05/2011 11:09 AM, Corinna Vinschen wrote: -void *base; +unsigned heap_id; +uintptr_t base; +uintptr_t end; +unsigned long flags; }; We

Re: Extending /proc/*/maps

2011-05-12 Thread Ryan Johnson
On 12/05/2011 2:48 PM, Corinna Vinschen wrote: On May 12 13:53, Ryan Johnson wrote: On 12/05/2011 1:11 PM, Corinna Vinschen wrote: On May 12 18:55, Corinna Vinschen wrote: On May 12 12:31, Ryan Johnson wrote: On 12/05/2011 11:09 AM, Corinna Vinschen wrote: -void *base; +unsigned

Re: Extending /proc/*/maps

2011-05-12 Thread Ryan Johnson
On 12/05/2011 2:42 PM, Corinna Vinschen wrote: On May 12 13:53, Ryan Johnson wrote: On 12/05/2011 12:55 PM, Corinna Vinschen wrote: heap *heaps; This is a misnomer now -- it's really a list of heap regions/blocks. I don't think so. The loop stores only the blocks which constitute

Re: Extending /proc/*/maps

2011-05-11 Thread Ryan Johnson
On 11/05/2011 6:31 AM, Corinna Vinschen wrote: Hi Ryan, On May 11 01:27, Ryan Johnson wrote: Hi all, Please find attached three patches which extend the functionality of /proc/*/maps. Thanks! I applied youyr two first patches with a couple of changes: - Formatting: Setting of curly braces

Re: Extending /proc/*/maps

2011-05-11 Thread Ryan Johnson
On 11/05/2011 9:20 AM, Corinna Vinschen wrote: On May 11 08:53, Ryan Johnson wrote: On 11/05/2011 6:31 AM, Corinna Vinschen wrote: - I replaced the call to GetMappedFileNameEx with a call to NtQueryVirtualMemory (MemorySectionName). This avoids to add another dependency to psapi. I

Re: Improvements to fork handling

2011-05-11 Thread Ryan Johnson
On 11/05/2011 10:13 AM, Christopher Faylor wrote: On Wed, May 11, 2011 at 09:59:53AM +0200, Corinna Vinschen wrote: On May 11 02:18, Ryan Johnson wrote: Please find attached five patches [...] Oops, wrong mailing list... Btw., it would be nice if you could create patches with the diff -p

Re: Extending /proc/*/maps

2011-05-11 Thread Ryan Johnson
On 11/05/2011 7:14 AM, Corinna Vinschen wrote: On May 11 01:27, Ryan Johnson wrote: The second (proc-maps-heaps) adds reporting of Windows heaps (or their bases, at least). Unfortunately there doesn't seem to be any efficient way to identify all virtual allocations which a heap owns. There's

Improvements to fork handling (1/5)

2011-05-11 Thread Ryan Johnson
Hi all, This is the first of a series of patches, sent in separate emails as requested. The first patch allows a child which failed due to address space clobbers to report cleanly back to the parent. As a result, DLL_LINK which land wrong, DLL_LOAD whose space gets clobbered, and failure to

Improvements to fork handling (2/5)

2011-05-11 Thread Ryan Johnson
Hi all, This patch has the parent sort its dll list topologically by dependencies. Previously, attempts to load a DLL_LOAD dll risked pulling in dependencies automatically, and the latter would then not benefit from the code which encourages them to land in the right places. The dependency

Improvements to fork handling (3/5)

2011-05-11 Thread Ryan Johnson
Hi all, This patch fixes a bug in the reserve_at function which caused it to sometimes reserve space needed by the dll it was supposed to help land. This happens when the dll tries to land in a free region which overlaps the desired location. The new code exploits the image introspection

Improvements to fork handling (4/5)

2011-05-11 Thread Ryan Johnson
Hi all, This patch rewrites dll_list::load_after fork. The new version eliminates reserve_upto() and release_upto(), which were expensive (the process repeats for each dll) and buggy (release_upto could free allocations reserve_upto did not make). Instead, the effect of reserve_upto is

Improvements to fork handling (5/5)

2011-05-11 Thread Ryan Johnson
Hi all, This last patch adds a small optimization which reserves the lower 4MB of address space early in the process's lifetime (even if it's not a forkee). This was motivated by the observation that Windows tends to move things around a lot in that area, increasing the probability of future

Re: Improvements to fork handling

2011-05-11 Thread Ryan Johnson
On 11/05/2011 12:16 PM, Christopher Faylor wrote: On Wed, May 11, 2011 at 10:21:14AM -0400, Ryan Johnson wrote: On 11/05/2011 10:13 AM, Christopher Faylor wrote: On Wed, May 11, 2011 at 09:59:53AM +0200, Corinna Vinschen wrote: On May 11 02:18, Ryan Johnson wrote: Please find attached five

<    1   2   3   4   5   >