From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#65455: 30.0.50; Disassemble: error with "free-standing" native compiled function Date: Sun, 27 Aug 2023 14:04:57 -0400 Message-ID: References: <83edjro1mm.fsf@gnu.org> <83bkevny24.fsf@gnu.org> <83a5ucjw2a.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="39357"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: gerd.moellmann@gmail.com, 65455@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 27 20:06:05 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qaK9F-000A25-4X for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Aug 2023 20:06:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaK97-0002IJ-6f; Sun, 27 Aug 2023 14:05:57 -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 1qaK96-0002I9-7x for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 14:05:56 -0400 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 1qaK95-0000sI-VR for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 14:05:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qaK9B-0007i4-Qh for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 14:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Aug 2023 18:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65455 X-GNU-PR-Package: emacs Original-Received: via spool by 65455-submit@debbugs.gnu.org id=B65455.169315951329576 (code B ref 65455); Sun, 27 Aug 2023 18:06:01 +0000 Original-Received: (at 65455) by debbugs.gnu.org; 27 Aug 2023 18:05:13 +0000 Original-Received: from localhost ([127.0.0.1]:46222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaK8O-0007gy-Jb for submit@debbugs.gnu.org; Sun, 27 Aug 2023 14:05:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaK8L-0007gZ-0E for 65455@debbugs.gnu.org; Sun, 27 Aug 2023 14:05:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qaK89-0000Tx-Eg; Sun, 27 Aug 2023 14:04:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=rztOHj0xIzTcMGbQfWMyfEDDeuZS3qpowSlmCRL1R+w=; b=NbonbuoHWgNENLswW11b SgREw9xmQAAw76AI33sa9PATFUtHfPWN4SWFVfA858mRqtuWZPPYnuaQG38WxDP/5fUd9ZZviLGgM TZn1SZYJ/XCcYIi2dEOU0ciywLAlf8Rm6Mrng2iftUWay0viLGdYV9D9H1tqIGo2ClMfk1E1KVkCd vPKLH8W39dciv4Yebxx+tXLRIN18EC7saj9mRHhpEATzoCK+nZxWJvd+lDLSGr0So1Tx2KXpJE7s/ y00tfe/kd0ImEV+ZfDdTLubqZM+2DXdcewsRM2ZFsd+2BQ44qAE35IrrCBZ1AI8o06ucOsVBl3Gbh thUULfsaYz2uvA==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qaK89-0005qc-7q; Sun, 27 Aug 2023 14:04:57 -0400 In-Reply-To: <83a5ucjw2a.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 27 Aug 2023 19:21:01 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:268582 Archived-At: Eli Zaretskii writes: >> From: Andrea Corallo >> Cc: gerd.moellmann@gmail.com, 65455@debbugs.gnu.org >> Date: Sun, 27 Aug 2023 10:43:30 -0400 >> >> Eli Zaretskii writes: >> >> [...] >> >> >> > Also, Andrea, why does >> >> > >> >> > (native-compile 'foo SOME-FILE) >> >> > >> >> > signals an error? I thought it should write the results of >> >> > native-compilation to SOME-FILE, no? >> >> >> >> Loos like a bug, if SOME-FILE is absolute it just works. The fix look >> >> trivial, I'll just test it a bit before pushing it. >> > >> > Thanks. >> >> Fix pushed into 29 as e7ac50a1539. > > Thanks, now '(native-compile 'foo SOME-FILE)' succeeds, but > disassemble signals an error: > > (defun foo (a b) > (list a b)) > > (native-compile 'foo "foo.eln") > (disassemble 'foo) > > Debugger entered--Lisp error: (search-failed "^.*:") > re-search-forward("^.*:") > disassemble-internal(foo 0 t) > disassemble(foo) > (progn (disassemble 'foo)) > elisp--eval-last-sexp(t) > eval-last-sexp(t) > eval-print-last-sexp(nil) > funcall-interactively(eval-print-last-sexp nil) > command-execute(eval-print-last-sexp) > > I get a similar error even if I disassemble a function from a > preloaded Lisp package, for example file-relative-name. > > It looks like a Windows-specific issue: the symbols produced by > objdump here have a leading underscore: > > 6b341400 <_F666f6f_foo_0>: > 6b341400: 57 push %edi > 6b341401: 56 push %esi > 6b341402: 53 push %ebx > > So I think the regexp should be "^.*<_?F666f6f_foo_0>:" instead. Yep agree, I think this bug was unrelated, could you please check that ea5fd6c96bc works for you on Windows? Thanks! Andrea