winsup/cygwin ChangeLog DevNotes cygtls.cc mis ...

2012-12-21 Thread cgf
CVSROOT:/cvs/uberbaum Module name:winsup Changes by: c...@sourceware.org 2012-12-21 18:52:00 Modified files: cygwin : ChangeLog DevNotes cygtls.cc miscfuncs.cc pinfo.cc sigproc.cc sigproc.h sync.cc sync.h

winsup/cygwin ChangeLog DevNotes cygtls.cc ini ...

2012-12-21 Thread cgf
CVSROOT:/cvs/uberbaum Module name:winsup Changes by: c...@sourceware.org 2012-12-21 19:32:43 Modified files: cygwin : ChangeLog DevNotes cygtls.cc init.cc miscfuncs.cc sigproc.cc sigproc.h sync.cc sync.h

winsup/cygwin ChangeLog cygerrno.h cygserver_i ...

2012-12-21 Thread cgf
CVSROOT:/cvs/uberbaum Module name:winsup Changes by: c...@sourceware.org 2012-12-21 21:30:56 Modified files: cygwin : ChangeLog cygerrno.h cygserver_ipc.h init.cc miscfuncs.cc miscfuncs.h path.h security.h

winsup/cygwin ChangeLog sigproc.cc sync.h

2012-12-21 Thread cgf
CVSROOT:/cvs/uberbaum Module name:winsup Changes by: c...@sourceware.org 2012-12-22 03:14:37 Modified files: cygwin : ChangeLog sigproc.cc sync.h Log message: * sigproc.cc (exit_thread): undef ExitThread or suffer recursion. Attempt to lock

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 works

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

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

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

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 share

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 the gui

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 like

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 doesn't

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: 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 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:15

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/output error Please don't

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

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: cannot

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 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 The command completed

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 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 :)

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:

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. Chris?

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

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

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, but just

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

2012-12-21 Thread marco atzeri
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 it freezes on start on W7

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

2012-12-21 Thread Tom Honermann
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't had to a chance

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

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

2012-12-21 Thread Christopher Faylor
I think the Xserver doesn't like it. on 20121221 it freezes on start on W7/64 no issue on 20121218 I acdtually tried Xserver before submitting my change so it certainly isn't a consistent problem. cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http

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

2012-12-21 Thread Christopher Faylor
. 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 it freezes on start on W7/64 no issue on 20121218 I was worried about this possibility

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

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

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