Re: Intermittent failures retrieving process exit codes - snapshot test requested

2012-12-21 Thread Christopher Faylor
On Fri, Dec 21, 2012 at 09:49:43PM -0500, Christopher Faylor wrote: >I actually tried Xserver before submitting my change so it certainly isn't >a consistent problem. Sorry, I take that back. I tried Xserver before backing out parts of the other change and never retried it. Marco is right. It's

Re: Intermittent failures retrieving process exit codes

2012-12-21 Thread Nick Lowe
The documentation in MSDN is incorrect/incomplete with regards to TerminateThread/TerminateProcess, both are definitely asynchronous. I am not clear/confident on the behaviour of ExitProcess and ExitThread, but will investigate with IDA and a test case later. I suspect any locking/serialisation wi

Re: Intermittent failures retrieving process exit codes - snapshot test requested

2012-12-21 Thread Tom Honermann
On 12/21/2012 09:52 PM, Christopher Faylor wrote: You're looking at the wrong changes. I wasn't at the time that I wrote that :) I noticed that you had reverted those changes. I haven't looked at the new changes yet. Tom. -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: Intermittent failures retrieving process exit codes - snapshot test requested

2012-12-21 Thread Christopher Faylor
things like X work on other platforms too. >>> >>> If you test a snapshot, note that I'm still tracking down Ken Brown's >>> reporte emacs regression in recent snapshots so that will still be >>> broken. >>> >>> cgf >>> >> &

Re: Intermittent failures retrieving process exit codes - snapshot test requested

2012-12-21 Thread Christopher Faylor
;> >> I tested this lightly on Windows 7 and 32-bit XP but it would be nice to >> hear if multi-threaded things like X work on other platforms too. >> >> If you test a snapshot, note that I'm still tracking down Ken Brown's >> reporte emacs regression in rece

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread Andrew DeFaria
On 12/21/2012 10:51 AM, bartels wrote: On 12/21/2012 07:30 PM, Andrew DeFaria wrote: On 12/21/2012 10:11 AM, bartels wrote: So where can I find strace? Where did you look? $ type strace strace is /bin/strace strace is one of my favourite toys on linux. Somehow, I never located it on cygwin.

Re: Intermittent failures retrieving process exit codes - snapshot test requested

2012-12-21 Thread Tom Honermann
n Ken Brown's reporte emacs regression in recent snapshots so that will still be broken. cgf I think the Xserver doesn't like it. on 20121221 it freezes on start on W7/64 no issue on 20121218 I was worried about this possibility after looking at the code changes. But, I haven'

Re: Intermittent failures retrieving process exit codes - snapshot test requested

2012-12-21 Thread marco atzeri
t would be nice to hear if multi-threaded things like X work on other platforms too. If you test a snapshot, note that I'm still tracking down Ken Brown's reporte emacs regression in recent snapshots so that will still be broken. cgf I think the Xserver doesn't like it. on 20121221

Re: Intermittent failures retrieving process exit codes - snapshot test requested

2012-12-21 Thread Daniel Colascione
On 12/21/2012 11:36 AM, Christopher Faylor wrote: > On Fri, Dec 21, 2012 at 06:02:19PM +0100, Corinna Vinschen wrote: >> On Dec 21 11:10, Christopher Faylor wrote: >>> On Fri, Dec 21, 2012 at 11:32:41AM +0100, Corinna Vinschen wrote: Maybe the signal thread should really not exit by itself, bu

Re: Intermittent failures retrieving process exit codes

2012-12-21 Thread Tom Honermann
On 12/21/2012 01:30 AM, Tom Honermann wrote: I don't know which Windows releases are affected by this. I've only reproduced the problem (outside of Cygwin) with Wow64 processes running on 64-bit Windows 7. I haven't yet tried elsewhere. I was able to reproduce the issue with a 64-bit executab

Re: Intermittent failures retrieving process exit codes

2012-12-21 Thread Tom Honermann
On 12/21/2012 07:15 AM, Nick Lowe wrote: Briefly casting my eye at the test case, as a general point, remember that these termination APIs all complete asynchronously and I do not believe it has ever been safe or correct to call another while one is still pending - you are in undefined, edge case

Re: Intermittent failures retrieving process exit codes - snapshot test requested

2012-12-21 Thread Christopher Faylor
On Fri, Dec 21, 2012 at 06:02:19PM +0100, Corinna Vinschen wrote: >On Dec 21 11:10, Christopher Faylor wrote: >> On Fri, Dec 21, 2012 at 11:32:41AM +0100, Corinna Vinschen wrote: >> >Maybe the signal thread should really not exit by itself, but just >> >wait until the TerminateThread is called. Ch

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread bartels
On 12/21/2012 07:23 PM, Corinna Vinschen wrote: > So where can I find strace? In /bin. I don't suppose they come any easier :) Thanks. - bartels -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread bartels
On 12/21/2012 07:30 PM, Andrew DeFaria wrote: On 12/21/2012 10:11 AM, bartels wrote: So where can I find strace? Where did you look? $ type strace strace is /bin/strace strace is one of my favourite toys on linux. Somehow, I never located it on cygwin. Never just typed in the magic word :) T

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread Andrew DeFaria
On 12/21/2012 10:11 AM, bartels wrote: So where can I find strace? Where did you look? $ type strace strace is /bin/strace BTW: Why the insistence on mapping it to a drive letter? Everybody always does that and I don't understand why. Drive letters change. Some people hard code 'em in their

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread Corinna Vinschen
On Dec 21 19:11, bartels wrote: > On 12/21/2012 06:19 PM, Corinna Vinschen wrote: > >On Dec 21 18:01, bartels wrote: > >>On 12/21/2012 05:47 PM, Corinna Vinschen wrote: > >>>On Dec 21 17:20, bartels wrote: > $ net use Q: "$(cygpath -w '//macau/X32 Backup-4(WD)')" "bartels" > /user:"bartels

Best practice for running pgsql under cygwin?

2012-12-21 Thread Ryan Johnson
Hi all, I'm trying to set up pgsql for classroom instruction, which means I need to allow students to connect to my machine, preferably with no OS-level privileges and minimal database privileges. Setting up the database roles looks straightforward enough, but I'm having trouble figuring out

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread bartels
On 12/21/2012 06:19 PM, Corinna Vinschen wrote: On Dec 21 18:01, bartels wrote: On 12/21/2012 05:47 PM, Corinna Vinschen wrote: On Dec 21 17:20, bartels wrote: $ net use Q: "$(cygpath -w '//macau/X32 Backup-4(WD)')" "bartels" /user:"bartels" The command completed successfully. $ ls q:/ ls: c

Re: X windows problems

2012-12-21 Thread George Barrick
Re: X windows problems 2012.12.21.17:22:36 UT Hi Ryan, The UAC basically just irritates the snot out of me. When I run a cmd-line line program, I just hate having to go through a three-click process to confirm that I _am_ the authorized user of the computer. I r

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread Corinna Vinschen
On Dec 21 18:01, bartels wrote: > On 12/21/2012 05:47 PM, Corinna Vinschen wrote: > >On Dec 21 17:20, bartels wrote: > >>$ net use Q: "$(cygpath -w '//macau/X32 Backup-4(WD)')" "bartels" > >>/user:"bartels" > >>The command completed successfully. > >> > >>$ ls q:/ > >>ls: cannot access q:/: Input/

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread René Berber
On 12/21/2012 11:15 AM, marco atzeri wrote: [snip] it should be the usual "\" ls "//macau/X32\ Backup-4\(WD\)/" Without the quotes: $ ls //HPMediaVault/Backup X32 Backup-4(WD)/ $ ll //HPMediaVault/Backup/X32\ Backup-4\(WD\)/ total 0 drwxrwxrwx 1 Unix Group\nobody 0 Dec 21 11:

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread marco atzeri
On 12/21/2012 6:11 PM, bartels wrote: Just did that. Same difference: $ ls "//macau/X32 Backup-4(WD)/" ls: cannot access //macau/X32 Backup-4(WD)/: Input/output error Is there a set of escape characters for spaces, parens and whatnot? - bartels it should be the usual "\" ls "//macau/X32\

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread bartels
On 12/21/2012 05:47 PM, René Berber wrote: On 12/21/2012 10:20 AM, bartels wrote: [snip] $ net use Q: "$(cygpath -w '//macau/X32 Backup-4(WD)')" "bartels" /user:"bartels" The command completed successfully. $ ls q:/ ls: cannot access q:/: Input/output error Have you tried the correct way? ls

Re: Intermittent failures retrieving process exit codes

2012-12-21 Thread Corinna Vinschen
On Dec 21 11:10, Christopher Faylor wrote: > On Fri, Dec 21, 2012 at 11:32:41AM +0100, Corinna Vinschen wrote: > >Maybe the signal thread should really not exit by itself, but just > >wait until the TerminateThread is called. Chris? > > If the analysis is correct, that just fixes one symptom does

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread bartels
On 12/21/2012 05:47 PM, Corinna Vinschen wrote: On Dec 21 17:20, bartels wrote: $ net use Q: "$(cygpath -w '//macau/X32 Backup-4(WD)')" "bartels" /user:"bartels" The command completed successfully. $ ls q:/ ls: cannot access q:/: Input/output error Please don't use DOS paths. Use POSIX paths

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread Corinna Vinschen
On Dec 21 17:20, bartels wrote: > Hello Cygwin, > > I am experiencing problems with spaces and/or parentheses in samba share > names. > Changing the share name is not an option, because they are physical drives, > connected to a mac. > > The following works fine from a dos box, and also from th

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread René Berber
On 12/21/2012 10:20 AM, bartels wrote: [snip] $ net use Q: "$(cygpath -w '//macau/X32 Backup-4(WD)')" "bartels" /user:"bartels" The command completed successfully. $ ls q:/ ls: cannot access q:/: Input/output error Have you tried the correct way? ls /cygdrive/q or the alternative Network sha

trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread bartels
Hello Cygwin, I am experiencing problems with spaces and/or parentheses in samba share names. Changing the share name is not an option, because they are physical drives, connected to a mac. The following works fine from a dos box, and also from the gui with 'Map network drive', but fails miser

Re: Intermittent failures retrieving process exit codes

2012-12-21 Thread Christopher Faylor
On Fri, Dec 21, 2012 at 11:32:41AM +0100, Corinna Vinschen wrote: >Maybe the signal thread should really not exit by itself, but just >wait until the TerminateThread is called. Chris? If the analysis is correct, that just fixes one symptom doesn't it? There are potentially many threads running in

Re: Intermittent failures retrieving process exit codes

2012-12-21 Thread Nick Lowe
Briefly casting my eye at the test case, as a general point, remember that these termination APIs all complete asynchronously and I do not believe it has ever been safe or correct to call another while one is still pending - you are in undefined, edge case behaviour territory here. Win32's Termina

Re: Intermittent failures retrieving process exit codes

2012-12-21 Thread Corinna Vinschen
On Dec 21 01:30, Tom Honermann wrote: > I spent most of the week debugging this issue. This appears to be a > defect in Windows. I can reproduce the issue without Cygwin. I > can't rule out other third party kernel mode software possibly > contributing to the issue. A simple change to Cygwin wo