DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4BM21WYT2256544 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4BM21WYT2256544 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=nIjDaJAy X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E44A93858427 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1734832888; bh=zh3VndEuc65F31TRTMVkJZYOA/4672mPcQY2qovWUMU=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=nIjDaJAy/z11ukaSEsH02kIzR6gnh6JVTfMSGm+B+8vkIEU1m3yL5nKE0i/4s2fdE fPHGNwY0vBvHX7Oy4PR7qq7WWERML2sN8w39hP9UuhjKnOByomehOAYlWU8Sfalhuv QYggCfKPS2h0PL7qFkWbnwDSYf9s+Txo48KRHEhY= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 198E43858D3C ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 198E43858D3C ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734832788; cv=none; b=FCisoWTvnGbACLKqR6Nm1Oqr7nPM2de5VVYw6unEAr3fiIsXHTeLhVikdPOegVPB6MUvbkiVxH1kjD3Bk3ayEjYd0boUHBJkqdKc5eCS/RZjarcDbSpZUsrrdHY/i4nPp54XmSa+QGfHdlWKZu07qCSfEvzyVs2G29tTut1YZDQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734832788; c=relaxed/simple; bh=vy4f/seW0frMMVBttfcRdV4UzCntg8necTf0tRub6LE=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=syS6Qjdu0ZnPUy9kll5KwFn1VDja3VNN426XnKMeoKBiLYJbk8ZKBCyNqAdz+eHsjIsOZMdFYgQE5kto36tytmhty8Uw7ZrwHdNB+Q+lD9qOh3P+02Cr2c1NDT6n24zMmYpHLtqwmCQRzED4eKZLRsU+GwChdsRHM1/K46c8RoM= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 198E43858D3C X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734832787; x=1735437587; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6NhDWvJ5zmdAhTUzwEwv+07ViYk/C7csB39qpquXZFk=; b=oS9RonvSFuUAspRsUq1z4nWEk6p7qRdIBgZbR4TKYKnS52INx6WbGZDPgJst038W31 icaihAIn2Dt9kmsJ8HWDyjvJa1bJ+fo+wK7qV424n2eBcljjbU4sl4NQYvoMNIUxWXCo wgoxzy/QuZo81sW6yWp5xGvN4/ieeECx1cUAwq+pwoVYn6x3NElFCXcJH8plSoPOAjH0 4Au24l8cWHfy72B+e3gFhJnYD0qg2RhNsnz6+dAKLhSA6VYMDy7obPfeh+3KcNw2+RZW uyuu3WqcHzYZrZ1G5nPf2Lzh/yAsAbnWZvUheOLyft3XKZ6dMBb6eCxEFx5AbfqpItrr M3bA== X-Gm-Message-State: AOJu0YxpaYl66v6uq4D1QJM3gwng0Q9eBOMSRzgbcPjQ0gMAC0BJJFny elssZu4CBm3EtuC69i6BvMWvWX77WU/EScZS3XjUUqzohyTs3mH25EJvqUC8NTBpuRfy17pXkbG xWry5nuaO0L8dfY7ulxX27i4NSVaNhHTd X-Gm-Gg: ASbGncsls6zwzM8IJ5E8GQ/VfCfPly1xUEX/edTtlv6YA9tyg1QP9w8ic4/ZG9YD+8Y qZPIneSjHhOnsjqB9gi5n+HM1+mQBA4uShXq9gA== X-Google-Smtp-Source: AGHT+IEWlrZ1yyGToPpYybUni36AVA7n1doDeYmptTG69pUNcH9K+oEAc/lnb78BGEG9bVCYp0tnuumeIX1GW05B/rg= X-Received: by 2002:a05:6870:9f13:b0:29e:4111:fef4 with SMTP id 586e51a60fabf-2a7fb0dcabemr1535895fac.6.1734832787085; Sat, 21 Dec 2024 17:59:47 -0800 (PST) MIME-Version: 1.0 References: <20241221194059 DOT ce84fac7b597eb86d3e87869 AT nifty DOT ne DOT jp> <20241221194701 DOT cd7bf8d69fe99301acbf07a8 AT nifty DOT ne DOT jp> In-Reply-To: <20241221194701.cd7bf8d69fe99301acbf07a8@nifty.ne.jp> Date: Sun, 22 Dec 2024 10:59:11 +0900 Message-ID: Subject: Re: zsh (oh-my-zsh) hangs on cygwin-3.5.5-1 To: cygwin AT cygwin DOT com X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Daisuke Fujimura via Cygwin Reply-To: Daisuke Fujimura Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 4BM21WYT2256544 > Could you please test if additional SIGCHLD can release hanging? Start mintty and check the process from another bash. $ ps PID PPID PGID WINPID TTY UID STIME COMMAND 1713 1662 1713 6800 cons0 197609 04:26:01 /usr/bin/ps 1671 1 1671 6072 ? 197609 04:25:47 /usr/bin/mintty I 1672 1671 1672 2096 pty0 197609 04:25:48 /usr/bin/zsh 1662 1 1662 4696 cons0 197609 04:24:21 /usr/bin/bash After typing enter into zsh several times, the prompt is not returned. $ ps PID PPID PGID WINPID TTY UID STIME COMMAND 1728 1727 1672 3948 pty0 197609 04:26:10 /usr/bin/zsh 1731 1662 1731 7644 cons0 197609 04:26:14 /usr/bin/ps 1727 1672 1672 4076 pty0 197609 04:26:10 /usr/bin/zsh 1671 1 1671 6072 ? 197609 04:25:47 /usr/bin/mintty 1672 1671 1672 2096 pty0 197609 04:25:48 /usr/bin/zsh 1662 1 1662 4696 cons0 197609 04:24:21 /usr/bin/bash SIGCHLD is sent to zsh with mintty as parent, but nothing seems to change. $ kill -CHLD 1672 $ ps PID PPID PGID WINPID TTY UID STIME COMMAND 1728 1727 1672 3948 pty0 197609 04:26:10 /usr/bin/zsh 1727 1672 1672 4076 pty0 197609 04:26:10 /usr/bin/zsh 1671 1 1671 6072 ? 197609 04:25:47 /usr/bin/mintty 1672 1671 1672 2096 pty0 197609 04:25:48 /usr/bin/zsh 1733 1662 1733 5388 cons0 197609 04:33:39 /usr/bin/ps 1662 1 1662 4696 cons0 197609 04:24:21 /usr/bin/bash If SIGKILL is accepted, zsh will exit with mintty, but zsh's descendant processes will remain. > Are any additional settings necessary? - zsh is specified by the environment variable SHELL. - HOME is a symbolic link. (`/home/myname` -> `/cygdrive/c/Users/myname`) - My cygwin environment is arm64 (M1 MacBook Pro). Windows is installed on UTM. ( https://mac.getutm.app/ ) - Since I have several packages that I built myself, they may be causing the problem. On Sat, Dec 21, 2024 at 7:47 PM Takashi Yano via Cygwin wrote: > > On Sat, 21 Dec 2024 19:40:59 +0900 > Takashi Yano wrote: > > On Sat, 21 Dec 2024 12:30:02 +0900 > > Daisuke Fujimura wrote: > > > Sometimes the prompt does not return. > > > > > > $ ps > > > PID PPID PGID WINPID TTY UID STIME COMMAND > > > 378 294 378 5544 pty0 197609 11:26:16 /usr/bin/ps > > > 351 1 294 6552 pty0 197609 10:13:07 /usr/bin/zsh > > > 293 1 293 4984 ? 197609 10:13:03 /usr/bin/mintty > > > 294 293 294 2840 pty0 197609 10:13:04 /usr/bin/zsh > > > $ > > > # Pressing enter only without typing anything may not return a prompt. > > > (Send SIGINT by Ctrl-C) > > > $ ps > > > PID PPID PGID WINPID TTY UID STIME COMMAND > > > 351 1 294 6552 pty0 197609 10:13:07 /usr/bin/zsh > > > 407 294 407 1976 pty0 197609 11:26:24 /usr/bin/ps > > > 293 1 293 4984 ? 197609 10:13:03 /usr/bin/mintty > > > 404 1 294 9660 pty0 197609 11:26:19 /usr/bin/zsh > > > 294 293 294 2840 pty0 197609 10:13:04 /usr/bin/zsh > > > > > > > > > $ zsh --version > > > zsh 5.8 (x86_64-pc-cygwin) > > > > > > $ uname -srvmpio > > > CYGWIN_NT-10.0-22000 3.5.5-1.x86_64 2024-12-20 16:19 UTC x86_64 > > > unknown unknown Cygwin > > > > > > $ cd /path/to/oh-my-zsh > > > $ git log --oneline -1 > > > b9e73b4 (HEAD -> master, origin/master) docs(per-directory-history): > > > add variable docs (#12844) > > > > > > Removing `source /path/to/oh-my-zsh/oh-my-zsh.sh` from `~/.zshrc` will > > > not cause such problems. > > > > > > Cygwin-3.5.4-1 does not have this problem. > > > > Could you please test if additional SIGCHLD can release hanging? > > kill -SIGCHLD > > Oops! > s/SIGCHLD/CHLD/ > > -- > 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 -- 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