DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 52954RYc1800208 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 52954RYc1800208 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=hntdU9xx X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1DD2B3858C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1741496666; bh=kfBwkK0gqMr+AK6guehIRxk1GkN6Lj2avTLEytTEH+U=; h=Date:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=hntdU9xxeWai5IWo0ZbDwJDtM0kJz0pr4WvhgLLPP8wWeoiioal93eASf37/obZL7 xFi++fWc4FCVHkxPS70Wqo5pseMr1cFlAJk597aHK+QuvEy26dsbTqYDoYS4recwQP XRk94HSv+FwueO88Hlp1QJVxvm6o17XUAJ1WiWQk= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1BE9A3858D1E ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1BE9A3858D1E ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1741496642; cv=none; b=TjB9/Quwxh7yGsTqjhegF6GVUTvuQ8mb7jD2yDdXFIMzDd6xHjjbl6LyAyvclwbvKUyJqfNjb9hjC8L0TghNSwMCpPoQYcI6y3UKAEQZFLL9DpaCDFQwANKjVxn5nX0hS9GNFH5k1lXlsOeRGgknfxFka+V9+UsLU2XbqCIngy4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1741496642; c=relaxed/simple; bh=h8XEW5WGT1dzbuM+pOe3Zq6sKldg+JxH+kdvRy8XzCA=; h=DKIM-Signature:Date:Message-Id:To:Subject:From:Mime-Version; b=p46wapIu5pkcKpVVuJIJZY+jK3htpcYHNCuMEsQUIXmKbTNV0fUePIgyapQmObyA7vkNqlw9aoDXJS/d1SHCU8+uiEG8HHFMAHDzk9C27LDd+Mc1ICWNjyIJZvw0Q9iZWe3ntwhIUjC5mzAcMDHfioQIEKRXpNk67oGCPXcBjgM= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1BE9A3858D1E Date: Sun, 09 Mar 2025 14:03:47 +0900 (JST) Message-Id: <20250309.140347.367223761080450987.trueroad@trueroad.jp> To: cygwin AT cygwin DOT com Cc: trueroad AT trueroad DOT jp Subject: python 3.12.9 hangs on Flask X-Mailer: Mew version 6.9 on Emacs 29.4 Mime-Version: 1.0 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: Masamichi Hosoda via Cygwin Reply-To: Masamichi Hosoda Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" Hi. I've found python 3.12.9 hangs on Flask. After starting the Flask HTTP server, the first HTTP access works fine but hangs immediately afterward. Once hung, CTRL+C and sending any signals have no effect. Here's a reproduction procedure. ``` $ uname -srvmo CYGWIN_NT-10.0-19045 3.5.7-1.x86_64 2025-01-29 19:46 UTC x86_64 Cygwin $ python3.12 -m venv --system-site-packages --without-pip .venv $ source .venv/bin/activate (.venv) $ python -V Python 3.12.9 (.venv) $ python -m pip install Flask [...snip...] Requirement already satisfied: Jinja2>=3.1.2 in /usr/lib/python3.12/site-packages (from Flask) (3.1.5) [...snip...] Requirement already satisfied: MarkupSafe>=2.0 in /usr/lib/python3.12/site-packages (from Jinja2>=3.1.2->Flask) (3.0.2) [...snip...] Installing collected packages: Werkzeug, itsdangerous, click, blinker, Flask Successfully installed Flask-3.1.0 Werkzeug-3.1.3 blinker-1.9.0 click-8.1.8 itsdangerous-2.2.0 (.venv) $ cat app.py from flask import Flask app = Flask(__name__) @app.route("/") def hello_world() -> str: return "

Hello, World!

" (.venv) $ flask run * Debug mode: off WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Running on http://127.0.0.1:5000 Press CTRL+C to quit 127.0.0.1 - - [09/Mar/2025 13:37:32] "GET / HTTP/1.1" 200 - ``` Thanks. -- 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