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: Forwording symbols Date: Tue, 18 Jun 2024 20:23:37 +0200 Message-ID: References: <87jziod6yc.fsf@gmail.com> <874j9rcuf6.fsf@gmail.com> <87y173bda9.fsf@gmail.com> <87plsfbcd5.fsf@gmail.com> <86cyoeqvfc.fsf@gnu.org> <87frta9pgf.fsf@gmail.com> <86v826p346.fsf@gnu.org> <86r0cup24x.fsf@gnu.org> <86o77yp0yw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28708"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: eller.helmut@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jun 18 20:24:05 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 1sJdUy-00078N-7m for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Jun 2024 20:24:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJdUh-0004XG-5i; Tue, 18 Jun 2024 14:23:47 -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 1sJdUe-0004Ws-Ht for emacs-devel@gnu.org; Tue, 18 Jun 2024 14:23:44 -0400 Original-Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sJdUb-00064G-Sr; Tue, 18 Jun 2024 14:23:44 -0400 Original-Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-421cd1e5f93so41149895e9.0; Tue, 18 Jun 2024 11:23:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718735019; x=1719339819; darn=gnu.org; h=content-transfer-encoding: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=ikl2Cmni2dwbJY3HEW+01kk15Edc5NubYSXr7nzMQQo=; b=DV+zqRlwSK1/C8RYsImB3yIRplfMH8heb9v01/sfFCUunUVkOEx90SaPZBD5H6CSkC 2qtthVGxwJ6mjKH8hF9YzKchq/jhwklbDJ488uATVN/zibafQ3ZolKgbXzQcSK5tTG/2 PK0j3BA1oDwtXbpYxyFzyyyGFWh8s2IphqBwcMsxm2sUfqlkaGrqanh/OVbpYcIcqW7n M5ONo3RyPJS8Nk9itv4FVhcUdav7BrYDUOp05f5RL0nAEY9uPdYPjxNzpqcOs9iwGX/8 Ud1xfvgbsYOL5rggSCANDshCPv+gO74nT3rmbnhG7NPWrxVcBAiJ0SAR8A9u+bJ4jiy5 kErQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718735019; x=1719339819; h=content-transfer-encoding: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=ikl2Cmni2dwbJY3HEW+01kk15Edc5NubYSXr7nzMQQo=; b=C/kyQicZy5rIfVJjEfcrMLHdil/AsyPKGuJFJIkUDpxbdZvjhK0FiQsG4Qz/e1LXqY r25PuXDKYVFJwzxWchAQhCrwZutUuTD0ibERUpkyHPGgULudDn+NrHNOjEWvmrmtQgyb RpeCONcausbUiuBIV00rvtVywEqrmiXxORqPlmiRaENiZlg6HS2t/ncDFkEwyf8ZMTsO vIjou6GOhT5NPVpiZaXxFVY9Am+ePfHyEHe5J4V6lwrwHAyJeblvcvCUTFLTgWbXCo9k AXbK2fQVi8/sCMSQyjYVqOuLYCWsOzJZ5cjegUfPAWXLpwYACl1K0JMcrByTAJHWdqwf dV3w== X-Forwarded-Encrypted: i=1; AJvYcCWifYrzrdMN44Fyp2fb3+lMLhirbx52eOOVGnZZqQABhOIHn/qaEm+Llow3LcPaWeSs8PVe+7yyGRg/J4ooNSN11bHg X-Gm-Message-State: AOJu0Yzd2Q49WMb0hheynzBRcnM29wbN3Q5JX0dmaAgAXKve4embBSAj fohJlbeG1ccfZOpdtdkDmSXZjM28/3b5U2UMns3mA+wJUZPpqFHwZ/INtA== X-Google-Smtp-Source: AGHT+IGp+HDgmgwUMBANeJ6c0K2KFBSdOzOWmfC65IDKisOn82zm15cUv4HTCCm1fDdj247QmAkuTw== X-Received: by 2002:a05:600c:17c5:b0:422:7eca:db41 with SMTP id 5b1f17b1804b1-4247516fea2mr2227325e9.2.1718735018521; Tue, 18 Jun 2024 11:23:38 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36c2f.dip0.t-ipconnect.de. [217.227.108.47]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-423072c21dbsm155026275e9.4.2024.06.18.11.23.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jun 2024 11:23:38 -0700 (PDT) In-Reply-To: <86o77yp0yw.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 18 Jun 2024 21:20:07 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=gerd.moellmann@gmail.com; helo=mail-wm1-x32a.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:320259 Archived-At: Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Cc: eller.helmut@gmail.com, emacs-devel@gnu.org >> Date: Tue, 18 Jun 2024 20:11:16 +0200 >>=20 >> Eli Zaretskii writes: >>=20 >> >> IOW, the call to igc_postmortem itself hits assertion violation. >> > >> > Btw, the "unreachable" code in this case is this: >> > >> > void ProtSet(Addr base, Addr limit, AccessSet mode) >> > { >> > DWORD newProtect; >> > DWORD oldProtect; >> > >> > AVER(base < limit); >> > AVER(base !=3D 0); >> > AVERT(AccessSet, mode); >> > >> > newProtect =3D PAGE_EXECUTE_READWRITE; >> > if((mode & AccessWRITE) !=3D 0) >> > newProtect =3D PAGE_EXECUTE_READ; >> > if((mode & AccessREAD) !=3D 0) >> > newProtect =3D PAGE_NOACCESS; >> > >> > if(VirtualProtect((LPVOID)base, (SIZE_T)AddrOffset(base, limit), >> > newProtect, &oldProtect) =3D=3D 0) >> > NOTREACHED; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< >> > } >> > >> > It means that VirtualProtect failed. Since 'mode' is zero, it means >> > the function was called to remove protection from the mmemory block, >> > and it failed, probably because the specified memory region was out of >> > the program's address space? >>=20 >> FWIW, I don't think one can usefully continue execution after calling >> igc_postmorten, one can only look around in memory and such. Here's what >> the docs say: > > Maybe I'm misunderstanding something, but the above is not an attempt > to continue execution, it is part of the call to igc_postmortem > itself. That call is the one which crashes, not the code that runs > after that call returns. Sorry, then I interpreted this wrong: > (gdb) call igc_postmortem() >=20 > Thread 5 received signal SIGTRAP, Trace/breakpoint trap. > [Switching to Thread 60368.0xb908] > 0x77c79031 in ntdll!DbgBreakPoint () from C:\WINDOWS\SysWOW64\ntdll.dll > The program received a signal in another thread while > making a function call from GDB. > Evaluation of the expression containing the function > (igc_postmortem) will be abandoned. > When the function is done executing, GDB will silently stop. > (gdb) c > Continuing. Too long no GDB for me :-)