From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: MPS: a random backtrace while toying with gdb Date: Sun, 30 Jun 2024 07:33:54 +0200 Message-ID: References: <87bk3jh8bt.fsf@localhost> <867ce7hvvz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3204"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: pipcet@protonmail.com, yantar92@posteo.net, emacs-devel@gnu.org, eller.helmut@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 30 07:34:21 2024 Return-path: Envelope-to: ged-emacs-devel@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 1sNnCe-0000e5-KY for ged-emacs-devel@m.gmane-mx.org; Sun, 30 Jun 2024 07:34:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNnCL-0006cV-6y; Sun, 30 Jun 2024 01:34:01 -0400 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 1sNnCJ-0006c5-79 for emacs-devel@gnu.org; Sun, 30 Jun 2024 01:33:59 -0400 Original-Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sNnCH-0005yY-Kc; Sun, 30 Jun 2024 01:33:58 -0400 Original-Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-57d07f07a27so2157705a12.3; Sat, 29 Jun 2024 22:33:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719725635; x=1720330435; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=nEQCqXbLXyp8ojD/u66er59IhmJRJDIV3PmyAmzsAKU=; b=YOuKN4ANrWprcr/BE75OLWeiDO+xTFCntVqwwfkvjkoz3yp/FphqBTVNMcbI3hy/Pi yxYvGduUIzskW2tGGci95X9SYUxbZB7gjxV4EbHEQ68E+WABuSEbmoP8MA4kjKLCNtwi X/b/3bqYAtdwGhsw8bFx3SlpmZYpOF5BFDThNuGEdbYZv88mtSULBtO1qlLMoYIUnPOo jd1goM7x3kq3n94hydtX52XSAL9TSyveZY3/bb5P33ce9mLpL1p/y+vzYckBiSZo11+h xkmjJ2L45FC3Mjsw7506HWPw+nqa54Vr+YBVF49LHyKNvrHeyRqxNxQqEO/EVR7Qlmbu N/dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719725635; x=1720330435; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=nEQCqXbLXyp8ojD/u66er59IhmJRJDIV3PmyAmzsAKU=; b=cE9ggkDziS5yL9ZCUy90YeY26VwFk22O/VDcaU5i8pQMEbCjbK+pGVY8/zAcvmxvOR j0iV+JD9QsACJu8rb3yT8JIqSv0yZevipsLLo12kTUbTJXk/tl3Tjs5p3eDaQTYbABgL zGiN2nmiXVFmAAV0CWf9kAEBPm+9Bqg34m6AogwWOCPjNgll7BvElLb+YOdHca+ungLq 6CoHB5FrgvOzqGeQVR340Tgi2MhxMSgn9GQ2O6S/w+iOSr+adL3oxI6DOptY++OTTegq ThEi5XHd2Vv/d2FDqwyMeZZgqTp3qChxFbhcC2mEv3ZFqjBt5RQIWa3p3ZKrjCqEOEUK /fTg== X-Forwarded-Encrypted: i=1; AJvYcCWxHYyW5hfOM6rsTUXHiORC6dMwsKgfhXIb74kD1PRt+1pTqdukaBdMtOoGrhvnc2aKFkbpDPM+LYgTWv/tmg3XCeGs X-Gm-Message-State: AOJu0YyeHX3Ub9Ad2EEUrMdyUnbmnIBcEk0QjZzyc8cyLt/xi/laQmuP ORiTMmGz/hVeNbe0i/sogkztrL6gyeYkZqNf5Z320NdVmm3JAlWMxZgC4g== X-Google-Smtp-Source: AGHT+IElsTc3bNfGE/FKHI4j1S/th8+pzNt1v6XGI3+lYl4KRHwacGO5JweOTYMNUmXKRd2MRD1lpg== X-Received: by 2002:a05:6402:34d1:b0:57d:2c9:6494 with SMTP id 4fb4d7f45d1cf-5879eed938amr1475871a12.10.1719725635323; Sat, 29 Jun 2024 22:33:55 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36a45.dip0.t-ipconnect.de. [217.227.106.69]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58612c835b9sm2999464a12.3.2024.06.29.22.33.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jun 2024 22:33:54 -0700 (PDT) In-Reply-To: <867ce7hvvz.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 30 Jun 2024 07:55:44 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::532; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x532.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320916 Archived-At: Eli Zaretskii writes: >> Indeed >> >> #10 0x0000555555827385 in PSEUDOVECTORP (a=XIL(0x7fffeb90875d), code=9) at /home/yantar92/Git/emacs/src/lisp.h:1105 >> #11 PROCESSP (a=XIL(0x7fffeb90875d)) at /home/yantar92/Git/emacs/src/process.h:212 >> #12 XPROCESS (a=XIL(0x7fffeb90875d)) at /home/yantar92/Git/emacs/src/process.h:224 >> #13 handle_child_signal (sig=sig@entry=17) at process.c:7660 >> >> Someone has an idea what to do with that? > > Call sigblock at the beginning of dflt_scan (and friends) and > sigunblock before it returns? Yuk. > Are there any guidance in the MPS docs for handling such signals in > these situations? If not, can we ask them for guidance? It is > unrealistic to expect any real-life program to do nothing in signal > handlers except setting flags. And even flags could be subject to MPS > moving GC, at least in some cases. So there must be some way of > dealing with that in a safe way. It's Emacs' fault. MPS cannot reasonably be expected to assume that a client program uses MPS managed memory in a signal handler. My 2 cents. > >> And maybe how to reproduce? > > Run for enough time with subprocesses that start and terminate, I > guess? Just remembered that I won't be able to reproduce this anyway an macOS, where barriers don't use signals.