From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 94679 invoked by alias); 27 May 2015 10:05:32 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 94665 invoked by uid 89); 27 May 2015 10:05:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.5 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oi0-f51.google.com Received: from mail-oi0-f51.google.com (HELO mail-oi0-f51.google.com) (209.85.218.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 27 May 2015 10:05:30 +0000 Received: by oihd6 with SMTP id d6so3492220oih.2 for ; Wed, 27 May 2015 03:05:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-type:content-transfer-encoding; bh=ZRLpKpe/YA7F5tgunAj1Q7efW7WKvHFg/RgfmPkrY8E=; b=IFHjmdVnpboJiykCdPvvK7SRCpu68WY7LhE/KZjhtIUZGq7jSHMQmO7OfZ1EZ4HQQE 9WnU32zbdKWzLnYNef4b64EwRdcCtcqkz4uvvJ2MNxZxUlLIpX5NrCG+7qmkWyz2q8QP LhQ/iLNi8M2JFsLtS7wo0Dx+6Sfd7yBcMafyu4ZZ4hsjkCiHqi+IchSgtb7PlYK37SAf 1YGCLrOSzZ75ZedJjLJZk/XK7InMAZYtOZzZTMtLY+L5cMAsTRUFyRa3J8dyUoROU4IA z6wVtMf/oKiHEIAhToUiFE3V8Y9un+ubvjDF6biBMb60uSkwbxfhomUIkYQDxTkaewwb MuNw== X-Gm-Message-State: ALoCoQnyEsxbDYphHnnzO69dGLFpWrmbq7xECiV7fKWlTLoXc/7Fha0LzIZynt2dYTTXg7jvtN3t X-Received: by 10.182.119.136 with SMTP id ku8mr25214759obb.37.1432721128334; Wed, 27 May 2015 03:05:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.50.133 with HTTP; Wed, 27 May 2015 03:04:58 -0700 (PDT) In-Reply-To: <55649249.6010602@gmail.com> References: <55649249.6010602@gmail.com> From: Robert Pendell Date: Wed, 27 May 2015 10:57:00 -0000 Message-ID: Subject: Re: Non-Cygwin slaves inside tmux To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-05/txt/msg00338.txt.bz2 On Tue, May 26, 2015 at 11:33 AM, David Macek <...> wrote: > Hi. > > My testcase: run mintty-bash, run tmux inside and run netsh inside. Try t= o type. > > Result: horrible lags > > Expected result: it's possible to type normally > > I tried multiple Cygwin snapshots from the last 5 months, hoping that it = could be a regression (therefore easily fixable), but all of them exhibit t= he same issue. > > A quick Google search didn't show any similar errors, so I'm reporting he= re in hope someone will be able to say "yeah, that's easy, let me fix that"= . :) > > Assuming I understand correctly the roles here -- bash does fork+exec(net= sh) and Cygwin emulates that by creating a bash subprocess which creates a = netsh subprocess; the bash process that is spawned to execute the native ex= ecutable is creating threads and named pipes like crazy. Every few seconds = a new pipe and thread pop up. All the old threads seem to be stuck in: > > #0 0x00007ffad7f3120a in ntdll!ZwWaitForSingleObject () from /cygdrive/c= /Windows/SYSTEM32/ntdll.dll > #1 0x00007ffad53b1118 in WaitForSingleObjectEx () from /cygdrive/c/Windo= ws/system32/KERNELBASE.dll > #2 0x0000000180134cfb in muto::acquire (this=3D0x639363438, ms=3Dms@entr= y=3D4294967295) at /usr/src/debug/cygwin-2.0.2-1/winsup/cygwin/sync.cc:87 > #3 0x00000001800f9ed9 in lock_process (exiting=3Dfalse, this=3D) at /usr= /src/debug/cygwin-2.0.2-1/winsup/cygwin/sync.h:53 > #4 commune_process (arg=3D0x6e7cb90) at /usr/src/debug/cygwin-2.0.2-1/wi= nsup/cygwin/pinfo.cc:542 > ... several other frames which are related to Cygwin threads, I assume ... > > strace shows tmux getting these: > > seterrno_from_win_error: /usr/src/ports/cygwin/cygwin-2.0.2-1.x86_64/src/= newlib-cygwin/winsup/cygwin/pinfo.cc:737 windows error 995 > > -- > David Macek > Hmm... Error 995 is ERROR_OPERATION_ABORTED. This could mean something is blocking/killing it. I don't use tmux locally on a personal basis so while we wait for someone that does to see if the issue is reproducible for them can you please *attach* a cygcheck.out for your system and also check your system for BLODA just in case? Robert Pendell A perfect world is one of chaos. Keybase: http://keybase.io/shinji257 -- 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