R: Segfault with call to pthread_mutexattr_init under GDB

2009-10-07 Thread Marco Atzeri
Da: Nicholas Sherlock Oggetto: Segfault with call to pthread_mutexattr_init under GDB A: cygwin cygwin.com Data: Mercoledì 7 ottobre 2009, 08:53 Hi everyone, I'm experiencing a crash while using GDB to debug a C program that calls pthread_mutexattr_init. I recently updated Cygwin 1.7

Re: R: Segfault with call to pthread_mutexattr_init under GDB

2009-10-07 Thread Nicholas Sherlock
Marco Atzeri wrote: Da: Nicholas Sherlock This GDB was configured as i686-pc-mingw32... Have you tried the cygwin gbd ? $ gcc-4 -o prova prova.c $ gdb prova.exe GNU gdb 6.8.0.20080328-cvs (cygwin-special) Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or

Re: Can't rm file, but no error message

2009-10-07 Thread Ronald
Marc Girod marc.girod at gmail.com writes: /usr/lib/csih/getVolInfo Thank you, really useful! Filesystemname : NTFS Flags : 700ff FILE_CASE_SENSITIVE_SEARCH : TRUE FILE_CASE_PRESERVED_NAMES : TRUE FILE_UNICODE_ON_DISK: TRUE FILE_PERSISTENT_ACLS: TRUE

Re: Can't rm file, but no error message

2009-10-07 Thread Ronald
Larry Hall (Cygwin reply-to-list-only-lh at cygwin.com writes: Get 'handle.exe' or 'procexp.exe' from sysinternals.com to find out who has handles still. Thanks a lot for pointing this out! Actually I had procexp installed, but was not aware that I can search for a file. I tried it out, and

Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-62

2009-10-07 Thread Thomas Wolff
Corinna Vinschen wrote: On Oct 6 17:02, Andy Koppe wrote: 2009/10/6 Ken Brown: I've tried to view the attached file (extracted from the output of fc-list) in various ways, and here's what I've found (running XP in the U.S., with no language-related customization): - Using emacs

Cygwin setup.exe flagged by AVG as high level security threat because of Win32.AirCrack.c

2009-10-07 Thread Martin N Brampton
I cannot find any reference to AirCrack anywhere in documentation directly related to Cygwin. What information I can find through Google doesn't give me any idea why Cygwin would contain code for cracking passwords in wireless networks. It doesn't seem wise to install something that an

wise way to install cygwin packages

2009-10-07 Thread Steven Woody
Hi, I did not think this is a problem since in the past when I need to install cygwin, I always select all the packages in the installer (click the tree icon, make it switch from 'default' to 'install'). But now I plan not to install some packages when I do a fresh installation. So, I again,

Re: Cygwin setup.exe flagged by AVG as high level security threat because of Win32.AirCrack.c

2009-10-07 Thread Mark J. Reed
On Wed, Oct 7, 2009 at 8:30 AM, Martin N Brampton wrote: I cannot find any reference to AirCrack anywhere in documentation directly related to Cygwin. Unless you got a bad copy of cygwin from a disreputable site, that someone has inserted a virus into, it doesn't contain aircrack or any other

Additional carriage return added by cygwin commands to DOS text files

2009-10-07 Thread ttjqryfbndgdx
I know it's a common issue, but I didn't find a solution to my problem in the archive. I have a dos file (lines ends with carriage return+line feed : 0d0a in Hex) : bash-3.2$ xxd test1 000: 6161 610d 0a62 6262 0d0a aaa..bbb.. If I apply a cygwin command to this file, I get an

Re: Additional carriage return added by cygwin commands to DOS text files

2009-10-07 Thread Vincent Rivière
ttjqryfbndgdx wrote: I know it's a common issue, but I didn't find a solution to my problem in the archive. I have a dos file (lines ends with carriage return+line feed : 0d0a in Hex) : bash-3.2$ xxd test1 000: 6161 610d 0a62 6262 0d0a aaa..bbb.. If I apply a cygwin command

Re: Additional carriage return added by cygwin commands to DOS text files

2009-10-07 Thread Vincent Rivière
I experienced the same issue with the cat command, and unfortunately I didn't find any transparent solution :-( However a non-transparent hack is to use first a text filter then pipe its output to the original command. The filter opens the file in textmode so it gets rid of the CR. Then, as

Re: Additional carriage return added by cygwin commands to DOS text files

2009-10-07 Thread ttjqryfbndgdx
Vincent Rivière vincent.riviere at freesbee.fr writes: I experienced the same issue with the cat command, and unfortunately I didn't find any transparent solution However a non-transparent hack is to use first a text filter then pipe its output to the original command. The filter

Re: Additional carriage return added by cygwin commands to DOS text files

2009-10-07 Thread Vincent Rivière
ttjqryfbndgdx wrote: Note that I don't have the issue with cat. bash-3.2$ cat test1 test2 bash-3.2$ xxd test2 000: 6161 610d 0a62 6262 0d0a aaa..bbb.. cat consider input and output as binary. So the syntax cat a b is always equivalent as cp a b. Now if you think that cat

Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-62

2009-10-07 Thread Charles Wilson
Thomas Wolff wrote: It should be possible (and should be done then) to pre-configure at least the Cygwin desktop link to use Lucida Console. It does not appear that the extended panels in the cmd.exe shortcut properties are available programmatically [*] The best I found was some utility code

does xinetd link against tcp wrapper

2009-10-07 Thread nwpu053...@gmail.com
-- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-62

2009-10-07 Thread Andy Koppe
2009/10/7 Charles Wilson: (On Vista, you can use SetConsoleScreenBufferEx -- which is supposedly documented but I couldn't find any). There's a 'SetConsoleScreenBufferInfoEx'. But another one looks more interesting: 'SetCurrentConsoleFontEx' (also ≥Vista). Andy -- Problem reports:

BUG REPORT: Cygwin 1.7 installer

2009-10-07 Thread Derek Kalweit
If you add a \ to the end of the download path with the 1.7 installer, packages fail to download properly and the installer terminates with an error. I finally realized it was just an amateur mistake in the installer code and tried it without the \, and it worked fine. Adding a \ works in the

Re: BUG REPORT: Cygwin 1.7 installer

2009-10-07 Thread Dave Korn
Derek Kalweit wrote: If you add a \ to the end of the download path with the 1.7 installer, packages fail to download properly and the installer terminates with an error. I finally realized it was just an amateur mistake in the installer code and tried it without the \, and it worked fine.

Re: BUG REPORT: Cygwin 1.7 installer

2009-10-07 Thread Dave Korn
Dave Korn wrote: Derek Kalweit wrote: If you add a \ to the end of the download path with the 1.7 installer, packages fail to download properly and the installer terminates with an error. I finally realized it was just an amateur mistake in the installer code and tried it without the \, and

Rsync hanging

2009-10-07 Thread Derek Kalweit
Hi. I just updated to 1.7 to see if it solved problems that I've been struggling with for a while with rsync hanging randomly on different files. I use rsync excessively, and on some systems it just works and never hangs-- but on some it hangs all the time. I'm transferring files via ssh;

Please, Help me!

2009-10-07 Thread Luis Junior
Hello, (Excuse me for my bad English) I am from Brazil and I am asking for a small help. I could invent histories, but I think the truth works better! I am without work and I lost the hopes, this is last resource asking for donation through internet. I never thought that I would ask

gdb, insight, and tcltk

2009-10-07 Thread Charles Wilson
Chris -- Since gdb-7.0 was just released, I figure you'll probably be doing a cygwin package fairly soon. However, I know you long to drop insight -- at least to separate it out from gdb proper. So, I've got a proposal for you: I'll do an insight-only build (sans gdb.exe, gdb-tui.exe) which

Re: gdb, insight, and tcltk

2009-10-07 Thread Christopher Faylor
On Wed, Oct 07, 2009 at 05:46:56PM -0400, Charles Wilson wrote: Chris -- Since gdb-7.0 was just released, I figure you'll probably be doing a cygwin package fairly soon. However, I know you long to drop insight -- at least to separate it out from gdb proper. So, I've got a proposal for you:

-municode support

2009-10-07 Thread Hirofumi Katayama
I think Cygwin should support -municode option. The following patches I made might be incorrect and/or incomplete. diff -u -N -r cygwin-1.7.0-62-old/winsup/mingw/conuni.c cygwin-1.7.0-62/winsup/mingw/conuni.c --- cygwin-1.7.0-62-old/winsup/mingw/conuni.c Thu Jan 1 00:00:00 1970 +++

fd leak in utimensat

2009-10-07 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I haven't spent time trying to locate where the leak is happening, but process explorer confirms that this STC leaves a handle open to the file, preventing further re-creation of a new file by the same name. #include errno.h #include fcntl.h #include

SIGINT default behavior

2009-10-07 Thread Pedro Izecksohn
r...@turion ~/programming/c/sigint $ cat test.c #include stdio.h #include stdlib.h int main () { printf (Press Control c\n); char buffer [3]; char *fgets_returned = fgets (buffer, sizeof buffer, stdin); if (!fgets_returned) { if (ferror (stdin)) { perror (ferror (stdin));

Re: SIGINT default behavior

2009-10-07 Thread Larry Hall (Cygwin)
On 10/07/2009 11:10 PM, Pedro Izecksohn wrote: The default behavior is not always the same. I also got: ferror (stdin): and ferror (stdin): Interrupted system call and the expected behavior of just the exit code 130. Try Cygwin 1.7 http://cygwin.com/#beta-test. -- Larry Hall

Re: SIGINT default behavior

2009-10-07 Thread Pedro Izecksohn
Larry Hall wrote: I, Pedro Izecksohn, wrote:   The default behavior is not always the same. I also got: ferror (stdin):   and ferror (stdin): Interrupted system call   and the expected behavior of just the exit code 130. Try Cygwin 1.7 http://cygwin.com/#beta-test. $ cat /proc/version

Re: wise way to install cygwin packages

2009-10-07 Thread Ken Jackson
On Wed, 7 Oct 2009 20:41:53 +0800 Steven Woody wrote: 3. So, after I do some other clicks to really deselect the PB, I have to go back to deselect PA again! ... This make the operation very very hard to perform. I agree. And even for simple operations I find it a bother to have to start up a

Re: wise way to install cygwin packages

2009-10-07 Thread Larry Hall (Cygwin)
On 10/08/2009 12:25 AM, Ken Jackson wrote: On Wed, 7 Oct 2009 20:41:53 +0800 Steven Woody wrote: 3. So, after I do some other clicks to really deselect the PB, I have to go back to deselect PA again! ... This make the operation very very hard to perform. I agree. And even for simple

Re: wise way to install cygwin packages

2009-10-07 Thread Robert Pendell
On Thu, Oct 8, 2009 at 12:49 AM, Larry Hall (Cygwin) wrote: On 10/08/2009 12:25 AM, Ken Jackson wrote: On Wed, 7 Oct 2009 20:41:53 +0800 Steven Woody wrote: 3. So, after I do some other clicks to really deselect the PB, I have to go back to deselect PA again! ... This make the operation

ncurses: ncurses-config

2009-10-07 Thread Yaakov (Cygwin/X)
Chuck, A few issues with ncurses-config: 1) The fact that there have been several (Cygwin-specific) ABI bumps to libncurses during the 5.x cycle (now at 9) doesn't change the fact that the API is still version 5, and other packages look for the script to be named ncurses5-config. 2)

Re: Cygwin/X server -query fails with recent versions of Gnome GDM

2009-10-07 Thread Jon TURNEY
On 30/09/2009 10:34, Richard Evans wrote: Cygwin 1.7beta, cygcheck output attached. I am trying to start a remote session using: XWin -query host where the host is running GDM from Gnome 2.28. The connect fails. A wireshark network snoop (attached) shows that GDM is sending Thanks for

Please, Help me!

2009-10-07 Thread Luis Junior
Hello, (Excuse me for my bad English) I am from Brazil and I am asking for a small help. I could invent histories, but I think the truth works better! I am without work and I lost the hopes, this is last resource asking for donation through internet. I never thought that I would ask

src/winsup/cygwin ChangeLog fhandler.h fhandle ...

2009-10-07 Thread corinna
CVSROOT:/cvs/src Module name:src Changes by: cori...@sourceware.org 2009-10-07 07:52:31 Modified files: winsup/cygwin : ChangeLog fhandler.h fhandler_termios.cc Log message: * fhandler.h (fhandler_pty_master::tcgetpgrp): Declare. * fhandler_termios.cc

src/winsup/cygwin ChangeLog ntdll.h pinfo.cc s ...

2009-10-07 Thread cwilson
CVSROOT:/cvs/src Module name:src Changes by: cwil...@sourceware.org 2009-10-07 15:47:38 Modified files: winsup/cygwin : ChangeLog ntdll.h pinfo.cc sigproc.cc winsup/cygwin/lib: pseudo-reloc.c Log message: Support pseudo-reloc version 2 Patches:

Re: Merge pseudo-reloc-v2 support from mingw/pseudo-reloc.c

2009-10-07 Thread Corinna Vinschen
On Oct 6 23:03, Christopher Faylor wrote: On Tue, Oct 06, 2009 at 08:14:59PM -0400, Charles Wilson wrote: I just figured it made sense to split up the ChangeLog, because I didn't want to take credit for Kai's changes, but I did want to document what I did, beyond the mingw/ version (which

Re: [Patch] Allow to disable root privileges with CYGWIN=noroot

2009-10-07 Thread Corinna Vinschen
On Oct 6 22:15, Christian Franke wrote: Corinna Vinschen wrote: ...and maybe it's time to create a cygwin_internal call which replaces cygwin_set_impersonation_token and deprecate cygwin_set_impersonation_token in the long run. So, instead of the above we could have this call taking a

Re: Merge pseudo-reloc-v2 support from mingw/pseudo-reloc.c

2009-10-07 Thread Charles Wilson
Corinna Vinschen wrote: Make the checkin and the ChangeLog one lump. The ChangeLog entry is about the work done to put this stuff into Cygwin, which was your work. Don't repeat the mingw entry, rather just say that you imported from there and credit Kai with that entry. Something like

Re: Merge pseudo-reloc-v2 support from mingw/pseudo-reloc.c

2009-10-07 Thread Christopher Faylor
On Wed, Oct 07, 2009 at 09:32:10AM -0400, Charles Wilson wrote: Corinna Vinschen wrote: Make the checkin and the ChangeLog one lump. The ChangeLog entry is about the work done to put this stuff into Cygwin, which was your work. Don't repeat the mingw entry, rather just say that you imported

Re: Merge pseudo-reloc-v2 support from mingw/pseudo-reloc.c

2009-10-07 Thread Charles Wilson
Christopher Faylor wrote: OK. But now...do we need any additional discussion of the patch itself, or did we cover that sufficiently on cygwin-developers? If you've, as you say tested this, Yep, and no scare-quotes needed g. I think we should get this in ASAP. OK. Committed as posted (in

Re: Merge pseudo-reloc-v2 support from mingw/pseudo-reloc.c

2009-10-07 Thread Christopher Faylor
On Wed, Oct 07, 2009 at 11:49:49AM -0400, Charles Wilson wrote: Christopher Faylor wrote: OK. But now...do we need any additional discussion of the patch itself, or did we cover that sufficiently on cygwin-developers? If you've, as you say tested this, Yep, and no scare-quotes needed g. I

Re: Add wrappers for ExitProcess, TerminateProcess

2009-10-07 Thread Dave Korn
Charles Wilson wrote: It is already marked noreturn, in the declaration at the top of the file. I got an error when I marked the definition that way -- apparently gcc4 doesn't like that: /usr/src/devel/kernel/src/winsup/cygwin/external.cc:181: error: attributes are not allowed on a

Re: [PATCH] Define _TIMEVAL_DEFINED consistently whenever defining timeval.

2009-10-07 Thread Charles Wilson
Ping? -- Chuck

Re: fd leak in utimensat

2009-10-07 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Eric Blake on 10/7/2009 9:04 PM: I haven't spent time trying to locate where the leak is happening, but process explorer confirms that this STC leaves a handle open to the file, preventing further re-creation of a new file by the same