From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#57309: 29.0.50; Build error "trying to dump non fixed-up eln file" Date: Sat, 20 Aug 2022 17:08:53 +0200 Message-ID: References: <87zgfznjvz.fsf@gnus.org> <87tu67njdq.fsf@gnus.org> <87pmgvniyh.fsf@gnus.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="40421"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cc: 57309@debbugs.gnu.org, Andrea Corallo To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 20 17:13:31 2022 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 1oPQAE-000ALK-Pj for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Aug 2022 17:13:30 +0200 Original-Received: from localhost ([::1]:39286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oPQAC-0005Wa-HF for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Aug 2022 11:13:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPQ6s-00043k-RP for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2022 11:10:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43624) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oPQ6s-0001g2-CH for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2022 11:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oPQ6r-0002UX-V5 for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2022 11:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Aug 2022 15:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57309 X-GNU-PR-Package: emacs Original-Received: via spool by 57309-submit@debbugs.gnu.org id=B57309.16610081479512 (code B ref 57309); Sat, 20 Aug 2022 15:10:01 +0000 Original-Received: (at 57309) by debbugs.gnu.org; 20 Aug 2022 15:09:07 +0000 Original-Received: from localhost ([127.0.0.1]:33373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPQ5z-0002TL-9W for submit@debbugs.gnu.org; Sat, 20 Aug 2022 11:09:07 -0400 Original-Received: from mail-ed1-f48.google.com ([209.85.208.48]:43752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPQ5t-0002Sm-DP for 57309@debbugs.gnu.org; Sat, 20 Aug 2022 11:09:05 -0400 Original-Received: by mail-ed1-f48.google.com with SMTP id o22so8809198edc.10 for <57309@debbugs.gnu.org>; Sat, 20 Aug 2022 08:09:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc; bh=3scl0sPhyCFKpuRhxyyulDKB+YN/PIWu203ru0X0BIE=; b=NfVXfod/0jAchamCL6U11z5Q7vJ8DaXZLZmLg77QKBIMRDm5RoPDMYkbMV+kJcyW4g wlM7Xdd6Hj+sVKKB5jETwpJXxm5HsvNlzXgfMoU5W/G6OfTU1TyWivyCygJOHFD5QkYc gHWRvrrvN3z2LqRH+HhsxMQuRl2O3gKbs/BJNpdxSeQToBIMVBNi4M5Q4C7XD3kBUmhe qbKxLnnCCoDUJPVHAEsB+It9PkjOXO6ySn1Euyf0TKfvRSD7DRi0HAFt3Ri4WsK4EM7T I7EiqF6B/Gb7zmX1zJwtusEoqhRf5GJdy+n2NF4OSz/G38qSx3pZa/We7Lujh05NLv12 rrBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=3scl0sPhyCFKpuRhxyyulDKB+YN/PIWu203ru0X0BIE=; b=vn9r0FsAyh4AcIv2WHm155Rc+8IYxzgOXIvD8Lsci9GhJ5YWrJOXrlM0TESv5uzoH+ ryLsyJ8EJOYKRSHcjFSw7WwFRvGo3bknQjv4eKLx4NQEOI32h79CZvLB82iPUXcyq4LR 2eN368Z+R6XU0/qh10Rf+GkNhmsMsaGctFMPVoL+T21EvKeXsZ9wQs1TVR2Q3uZxfbjd MWKS/qoND19iZdCCTnrkSw0/5p1wzd7Hm50exh/DvQcAwAVCrm4POBLfAZCP9P1r82eU aMkqdBQM5yVEMk0XLyV+YteyXvLRVdJd0CabK3gXBIUpkUw5kpSUENX5sRe7ado1mM/Y J5Qw== X-Gm-Message-State: ACgBeo3tvkyDG/8rmg6xi1K6Mj3wnLXZSxh2mz2nquElic4kbo3MttVv szJl/lzIKLlfkpcUv7Npvcs= X-Google-Smtp-Source: AA6agR7AtbZDDTAyS23qqKzG68JxmDUWamPQxVqs3vy/q1r+Bb82xqXzyNvCbZ6ZTbbWeaQDhwM6Gw== X-Received: by 2002:a05:6402:84e:b0:440:4bac:be5a with SMTP id b14-20020a056402084e00b004404bacbe5amr9931965edz.103.1661008135471; Sat, 20 Aug 2022 08:08:55 -0700 (PDT) Original-Received: from Mini.fritz.box (p4fe3aab1.dip0.t-ipconnect.de. [79.227.170.177]) by smtp.gmail.com with ESMTPSA id 17-20020a170906309100b0073ce4abf093sm2461689ejv.214.2022.08.20.08.08.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Aug 2022 08:08:54 -0700 (PDT) In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Sat, 20 Aug 2022 16:32:33 +0200") 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" Xref: news.gmane.io gmane.emacs.bugs:240254 Archived-At: Gerd M=C3=B6llmann writes: > > (lldb) p globals.f_Vcomp_loaded_comp_units_h=20 > (Lisp_Object) $176 =3D 0x00000001040382b5 (struct Lisp_Hash_Table *) $181= =3D 0x00000001040382b0 > (lldb) p *$181 > (struct Lisp_Hash_Table) $182 =3D { > header =3D (size =3D 4611686018662313988) > weak =3D 0x000000000000fdb0 (struct Lisp_Symbol *) $185 =3D 0x000000010= 07d2b90 > hash =3D 0x00000001042d10b5 (struct Lisp_Vector *) $189 =3D 0x000000010= 42d10b0 > next =3D 0x00000001042d078d (struct Lisp_Vector *) $193 =3D 0x000000010= 42d0788 > index =3D 0x00000001042d1605 (struct Lisp_Vector *) $197 =3D 0x00000001= 042d1600 > count =3D 90 > next_free =3D 90 > purecopy =3D false > mutable =3D true > rehash_threshold =3D 0.8125 > rehash_size =3D 0.5 > key_and_value =3D 0x00000001042d0a9d (struct Lisp_Vector *) $201 =3D 0x= 00000001042d0a98 > test =3D { > name =3D 0x00000000000060c0 (struct Lisp_Symbol *) $204 =3D 0x0000000= 1007c8ea0 > user_hash_function =3D NULL > user_cmp_function =3D NULL > cmpfn =3D 0x000000010017ed70 (temacs`cmpfn_equal at fns.c:4235) > hashfn =3D 0x000000010017ed9c (temacs`hashfn_equal at fns.c:4266) > } > next_weak =3D NULL > } > (lldb) xdebug_print $176 > ...lots of output... > "/Users/gerd/emacs/master/native-lisp/29_0_50-2dce7c3a/preloaded/window-= 0d1b8b93-274db3e2.eln" # > ... > > I'm not 100% sure, but I interpret that as meaning that the window.eln > in question has already been loaded before, and the second attempt then > fails. Unless I misread the code of course, which is always possible. > > But how that might happen escapes me ATM. And a little bit more... The error "trying to..." comes from dump_native_comp_unit, which is called from dump_vectorlike, which is called from dump_object. Dumped objects are recorded in a hashtable dump_context::objects_dumped. Now (lldb) p ctx->objects_dumped (Lisp_Object) $294 =3D 0x000000010407373d (struct Lisp_Hash_Table *) $299 = =3D 0x0000000104073738 (lldb) expr -- hash_lookup ($299, lv, 0) (ptrdiff_t) $300 =3D 2010 (lldb) p lv (Lisp_Object) $301 =3D 0x00000001040d0a6d (struct Lisp_Native_Comp_Unit *) = $306 =3D 0x00000001040d0a68 lv is the compilation unit in question which gives the error, and the dumpcontext says it is already dumped. So what now? I'd say one can encounter the same Lisp_Object more than once in a dump, in general. Shouldn't there be some check somewhere in the CU code? Where is it? Or is this supposed not to happen? If so, how is it ensured? Questions over questions...