Re: 3.3.0: Possible regression in cygwin DLL (Win10); fixed in snapshot

2021-11-05 Thread Brian via Cygwin
On Fri, Nov 5, 2021 at 2:41 PM Takashi Yano 
wrote:

>
> It seems that the cause is the overhaul for the pipe implementation.
> I also found the workaround for this issue. Please try:
> export CYGWIN=pipe_byte
>
> Indeed, that does solve the problem.  Thanks for looking into this!

  --Brian

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: 3.3.0: Possible regression in cygwin DLL (Win10); fixed in snapshot

2021-11-05 Thread Ken Brown via Cygwin

Hi Takashi,

On 11/5/2021 3:41 PM, Takashi Yano via Cygwin wrote:

Thanks much for the detailed steps. I could reproduce the problem.

It seems that the cause is the overhaul for the pipe implementation.
I also found the workaround for this issue. Please try:
export CYGWIN=pipe_byte

Corinna, Ken,
What about setting pipe mode to byte by default?


I have a vague recollection that this caused some other problem, but I'll have 
to review the email discussions from a few months ago.  I'm traveling at the 
moment and won't get to this for a few days.


In the meantime, could you explain (probably on cygwin-developers) why message 
mode causes the reported issue?  Also, does the problem occur only when there 
are non-Cygwin apps involved?


Thanks.

Ken

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: 3.3.0: Possible regression in cygwin DLL (Win10); fixed in snapshot

2021-11-05 Thread Takashi Yano via Cygwin
On Fri, 5 Nov 2021 08:42:03 -0500
Brian wrote:
> Starting  point: Cygwin 3.3.0s(0.341/5/3), Windows Version 10.0.17763 Build
> 17763, no git managers/clients initially installed.
> 
> 1.  Install git version 2.33.0 via the Cygwin installer (only the CLI).
> 2.  Download the GCM-Core 2.0.567 release zip file (
> https://github.com/microsoft/Git-Credential-Manager-Core/releases/) and
> extract somewhere.
> 3.  Copy all *.exe and *.dll files to your Cygwin /usr/libexec/git-core/
> directory.
> 4.  Set up the credential helper: 'git config --global credential.helper
> manager-core'
> 5.  Clone a repo.
> 6.  Attempt a 'git push' using the git repo's https URL.  GCM will pop up a
> browser-based UI for initial authentication.  After entering username and
> PAT credentials, and receiving the 'Everything is up-to-date' message,
> confirm that your git credentials appear in the Windows Credential Manager.
> 7.  Attempt another 'git push'.
> EXPECTED BEHAVIOR:
> 'Everything is up-to-date' (there should be no CLI or UI authentication
> prompts).
> OBSERVED BEHAVIOR:
> The user is again presented with an authentication prompts from git.
> 8.  Replace cygwin1.dll with the 0913 snapshot.
> 9.  Attempt a 'git push'.  If your credentials were cached in WCM per step
> 6, you should immediately see the 'Everything is up-to-date' reply.  If
> your credentials weren't stored for some reason, you will be prompted for
> authentication.  A subsequent 'git push' should then use your cached
> credentials.

Thanks much for the detailed steps. I could reproduce the problem.

It seems that the cause is the overhaul for the pipe implementation.
I also found the workaround for this issue. Please try:
export CYGWIN=pipe_byte

Corinna, Ken,
What about setting pipe mode to byte by default?

-- 
Takashi Yano 

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Running cygwinX

2021-11-05 Thread Dennis Putnam
I've just installed X11 and I think all the necessary pieces to run a 
remote X11 terminal. When I run 'xlaunch' I ask to run a remote program 
on my Linux host, specifically xterm. When the xterm window opens there 
is no command line prompt just the blank xterm screen. What am I 
missing? TIA.


--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: 3.3.0: Possible regression in cygwin DLL (Win10); fixed in snapshot

2021-11-05 Thread Brian via Cygwin
Starting  point: Cygwin 3.3.0s(0.341/5/3), Windows Version 10.0.17763 Build
17763, no git managers/clients initially installed.

1.  Install git version 2.33.0 via the Cygwin installer (only the CLI).
2.  Download the GCM-Core 2.0.567 release zip file (
https://github.com/microsoft/Git-Credential-Manager-Core/releases/) and
extract somewhere.
3.  Copy all *.exe and *.dll files to your Cygwin /usr/libexec/git-core/
directory.
4.  Set up the credential helper: 'git config --global credential.helper
manager-core'
5.  Clone a repo.
6.  Attempt a 'git push' using the git repo's https URL.  GCM will pop up a
browser-based UI for initial authentication.  After entering username and
PAT credentials, and receiving the 'Everything is up-to-date' message,
confirm that your git credentials appear in the Windows Credential Manager.
7.  Attempt another 'git push'.
EXPECTED BEHAVIOR:
'Everything is up-to-date' (there should be no CLI or UI authentication
prompts).
OBSERVED BEHAVIOR:
The user is again presented with an authentication prompts from git.
8.  Replace cygwin1.dll with the 0913 snapshot.
9.  Attempt a 'git push'.  If your credentials were cached in WCM per step
6, you should immediately see the 'Everything is up-to-date' reply.  If
your credentials weren't stored for some reason, you will be prompted for
authentication.  A subsequent 'git push' should then use your cached
credentials.

Please let me know if there are any other steps you think might be missing.

  --Brian

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


[ANNOUNCEMENT] stunnel 5.60-1

2021-11-05 Thread Andrew Schulman via Cygwin-announce via Cygwin
stunnel 5.60-1 is now available in Cygwin. This release has bug fixes and
minor improvements. Please see the upstream changelog[1] for the full list.
stunnel is a program that allows you to encrypt arbitrary TCP connections
inside TLS (Transport Layer Security, the successor to Secure Sockets Layer
(SSL)).  stunnel can allow you to secure non-TLS-aware daemons and
protocols (like POP, IMAP, LDAP, etc) by having stunnel provide the
encryption, requiring no changes to the daemon's code.

Andrew E. Schulman

[1]https://www.stunnel.org/NEWS.html


***


To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

cygwin-announce-unsubscribe-you=yourdomain.com_at_cygwin.com

If you need more information on unsubscribing, start reading here:

http://cygwin.com/lists.html#subscribe-unsubscribe

Please read *all* of the information on unsubscribing that is available
starting at this URL.

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


stunnel 5.60-1

2021-11-05 Thread Andrew Schulman via Cygwin-announce
stunnel 5.60-1 is now available in Cygwin. This release has bug fixes and
minor improvements. Please see the upstream changelog[1] for the full list.
stunnel is a program that allows you to encrypt arbitrary TCP connections
inside TLS (Transport Layer Security, the successor to Secure Sockets Layer
(SSL)).  stunnel can allow you to secure non-TLS-aware daemons and
protocols (like POP, IMAP, LDAP, etc) by having stunnel provide the
encryption, requiring no changes to the daemon's code.

Andrew E. Schulman

[1]https://www.stunnel.org/NEWS.html


***


To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

cygwin-announce-unsubscribe-you=yourdomain.com_at_cygwin.com

If you need more information on unsubscribing, start reading here:

http://cygwin.com/lists.html#subscribe-unsubscribe

Please read *all* of the information on unsubscribing that is available
starting at this URL.


Re: [ANNOUNCEMENT] Updated: cygutils 1.4.16-8 (Test)

2021-11-05 Thread Mark Geisert

Hi Takashi,

Takashi Yano via Cygwin wrote:
[...]

I guess you just forgot to expand struct timespec in 32bit to
64bit layout in the following code.

-  if (cygNewFormat)
+  if (cygNewFormat == 2)
  {
cygcb_t *clipbufX = (cygcb_t *) clipbuf;
+  clipbufX->cb_size = convlen;
+  clock_gettime (CLOCK_REALTIME, >ts);
+  memcpy ([1], convbuf, convlen);
+}
+  else if (cygNewFormat == 1)
+{
+  cygcb_old_t *clipbufX = (cygcb_old_t *) clipbuf;


I appreciate the assist.  I had just completed the needed builds when your message 
came in :-).  You are correct on the root cause.


I have tested and committed a fix to the cygutils git repository if you or anybody 
else needs the fix before -9 is released in a couple weeks:

https://cygwin.com/git?p=cygwin-apps/cygutils.git;a=commitdiff;h=ecb76449ca233873d01feacd3dfd22cbf7e95e34

Thanks & Regards,

..mark

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: [ANNOUNCEMENT] Updated: cygutils 1.4.16-8 (Test)

2021-11-05 Thread Takashi Yano via Cygwin
On Thu, 4 Nov 2021 22:40:40 -0700
Mark Geisert wrote:
> Takashi Yano via Cygwin wrote:
> > On Wed, 3 Nov 2021 22:04:05 +0900
> > Takashi Yano wrote:
> >> On Wed,  3 Nov 2021 02:59:38 -0700
> >> Mark Geisert wrote:
> >>> The following packages have been uploaded to the Cygwin distribution:
> >>>
> >>> * cygutils-1.4.16-8
> >>> * cygutils-extra-1.4.16-8
> >>> * cygutils-x11-1.4.16-8
> [...]
> >>> This update also provides a new feature: robust copy/paste between
> >>> 32-bit and 64-bit Cygwin environments, provided both are running
> >>> 3.3.0 (Test) or higher.
> >>
> >> I have tested the 1.4.16-8 (Test) and confirmed the following cases
> >> work as expected.
> >>
> >> 1) Charset conversion under locale other than UTF-8.
> >> 2) putclip error.
> >> 3) 32-bit and 64-bit inter-operability.
> > 
> > One small thing I noticed is that time stamp of /dev/clipboard
> > is broken with the following scenario.
> > 1) Run 'echo A | putclip' in 32bit cygwin
> > 2) Run 'ls -l /dev/clipboard' in 64bit cygwin
> 
> Yes indeed :-()
> I'll debug this.  Thanks for the report.

I guess you just forgot to expand struct timespec in 32bit to
64bit layout in the following code.

-  if (cygNewFormat)
+  if (cygNewFormat == 2)
 {
   cygcb_t *clipbufX = (cygcb_t *) clipbuf;
+  clipbufX->cb_size = convlen;
+  clock_gettime (CLOCK_REALTIME, >ts);
+  memcpy ([1], convbuf, convlen);
+}
+  else if (cygNewFormat == 1)
+{
+  cygcb_old_t *clipbufX = (cygcb_old_t *) clipbuf;

-- 
Takashi Yano 

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: 3.3.0: Possible regression in cygwin DLL (Win10); fixed in snapshot

2021-11-05 Thread Takashi Yano via Cygwin
On Thu, 4 Nov 2021 23:29:39 -0500
Brian wrote:
> I posted the steps needed to reproduce the problem in the following link:
> https://github.com/microsoft/Git-Credential-Manager-Core/issues/509. This
> includes the version of GCM-Core that was installed as well as how to
> reproduce the issue.
> 
> I also included detailed logs.
> 
> Was there something additional that you needed?

Yes.

I am not familiar with GCM core at all, so need more detailed steps.

Should I download gcmcore-win-x86-2.0.567.18224.exe and install it?
Or other than that?

How do you run it in cygwin?

Do you assume to associate cygwin git with GCM core?
Or do you use git in "Git for Windows" inside cygwin?

How should I setup git repository to use GCM core?

-- 
Takashi Yano 

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple