From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ekaitz Zarraga Newsgroups: gmane.lisp.guile.bugs Subject: bug#74269: [PATCH] doc: Document GUILE_JIT_PAUSE_WHEN_STOPPING Date: Fri, 8 Nov 2024 23:41:49 +0100 Message-ID: <20241108224200.32164-1-ekaitz@elenq.tech> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28106"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Ekaitz Zarraga To: 74269@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Fri Nov 08 23:43:32 2024 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t9XhU-0007A8-DS for guile-bugs@m.gmane-mx.org; Fri, 08 Nov 2024 23:43:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9Xh2-0003x3-Lx; Fri, 08 Nov 2024 17:43:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9Xh1-0003wv-SW for bug-guile@gnu.org; Fri, 08 Nov 2024 17:43:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t9Xh1-0003i8-KM for bug-guile@gnu.org; Fri, 08 Nov 2024 17:43:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=fTocVBFw/qqBpg32q6Frfb1Q9w0FBstE4XgLnCurmKI=; b=ujVooWsZlBh9yNIGdDS9MPJP2+ULGCHyBMqZHobUfsCOUhToSNy+KPBERyuVlGxVqjekY0d+R+pWuJBZNpOOmpyUIAuQvaeuqrhBny7jwePIMF8AHfR6g3adOT6VMZTTk5mEiKgZghKH6S4Wl9fvlpwWjfG25TZdhbgbNTpBrZdrLTgc/8aHkM13NUWSFL42Gzxqd542zhdjByEptSoUmQ+IQtH3m3ZiHkMOGE73AwUvdAandWKZCC4d4GEExY4lRBmlEEy7ofjV6ACx27EwoLmMKSPWD8b5K8u57KdxmnLAhp6GBAuwB+xx5C1FWnN+S1a2zU8kFAeWyM9ok/z0ww==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t9Xh0-0006pr-J2 for bug-guile@gnu.org; Fri, 08 Nov 2024 17:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ekaitz Zarraga Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 08 Nov 2024 22:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74269 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.173110575526236 (code B ref -1); Fri, 08 Nov 2024 22:43:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Nov 2024 22:42:35 +0000 Original-Received: from localhost ([127.0.0.1]:52462 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9XgY-0006p6-No for submit@debbugs.gnu.org; Fri, 08 Nov 2024 17:42:34 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:40810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9XgV-0006ov-8g for submit@debbugs.gnu.org; Fri, 08 Nov 2024 17:42:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9XgS-0003v5-Ko for bug-guile@gnu.org; Fri, 08 Nov 2024 17:42:29 -0500 Original-Received: from dane.soverin.net ([185.233.34.148]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t9XgQ-0003dg-Fo for bug-guile@gnu.org; Fri, 08 Nov 2024 17:42:28 -0500 Original-Received: from smtp.soverin.net (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dane.soverin.net (Postfix) with ESMTPS id 4XlYpt3HYMz2xrc; Fri, 8 Nov 2024 22:42:14 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.99]) by soverin.net (Postfix) with ESMTPSA id 4XlYpt05jtzL7; Fri, 8 Nov 2024 22:42:13 +0000 (UTC) Authentication-Results: smtp.soverin.net; dkim=pass (2048-bit key; unprotected) header.d=elenq.tech header.i=@elenq.tech header.a=rsa-sha256 header.s=soverin1 header.b=dpYoZJcL; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=soverin1; t=1731105734; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=fTocVBFw/qqBpg32q6Frfb1Q9w0FBstE4XgLnCurmKI=; b=dpYoZJcLaZNWwamT+6f9JcB4CRGISK7H92VshL6NVwz5QcPCHiYEwB6oIuUzUePBiDlLaf r7u3PB+Gucr61tcPvENCskUubppWBNLFp8fau1F0OTTH0o8dB6WLRB+b+rzqCXhxbBht9m 2qcNM/sMKmC7FtGlMuHMXBoX3i6Fv72ODEoHD87QQpnXJkq4RaixF7gDsisugG9ePoYjSQ yZbZGb3PgmozIRq0+2Dr2pboctIByIeAojfNYhCnPCyYmTf/7OrF1M8M7EUwaT96ev3jGt HOWI4y+tVQSMY58hJPH7rmOwHQ2YuI2ALeHrIkCvYEKCVn25XdypIeitZkxCEg== X-Spampanel-Class: ham Received-SPF: pass client-ip=185.233.34.148; envelope-from=ekaitz@elenq.tech; helo=dane.soverin.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.bugs:11096 Archived-At: * doc/ref/guile-invoke.texi: Add GUILE_JIT_PAUSE_WHEN_STOPPING --- doc/ref/guile-invoke.texi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/ref/guile-invoke.texi b/doc/ref/guile-invoke.texi index 7ceef0bb5..c837598b8 100644 --- a/doc/ref/guile-invoke.texi +++ b/doc/ref/guile-invoke.texi @@ -453,6 +453,18 @@ integer indicating the maximum number of functions to JIT-compile. By bisecting over the value of @env{GUILE_JIT_STOP_AFTER}, you can pinpoint the precise function that is being miscompiled. +@item GUILE_JIT_PAUSE_WHEN_STOPPING +@vindex GUILE_JIT_PAUSE_WHEN_STOPPING +Debugging the JIT compiler sometimes requires analysing the running +process. Setting @env{GUILE_JIT_PAUSE_WHEN_STOPPING} will pause the +process when the JIT stops to let you connect a debugger to it and will +print something along these lines: +@example +stopping automatic JIT compilation, as requested +sleeping for 30s; to debug: + gdb -p 133646 +@end example + @end table @c Local Variables: -- 2.46.0