From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Help with new Windows 98 crash Date: Tue, 06 Dec 2022 09:29:04 +0800 Message-ID: <87k035nwv3.fsf@yahoo.com> References: <87o7sindcl.fsf.ref@yahoo.com> <87o7sindcl.fsf@yahoo.com> <83ilip9a37.fsf@gnu.org> <838rjl9477.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="38963"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 06 02:30:27 2022 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 1p2Mmx-0009yG-1l for ged-emacs-devel@m.gmane-mx.org; Tue, 06 Dec 2022 02:30:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2Mlv-0002s2-Pq; Mon, 05 Dec 2022 20:29:23 -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 1p2Mlt-0002ro-UZ for emacs-devel@gnu.org; Mon, 05 Dec 2022 20:29:21 -0500 Original-Received: from sonic308-10.consmr.mail.ne1.yahoo.com ([66.163.187.33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p2Mlo-0000ZR-Kw for emacs-devel@gnu.org; Mon, 05 Dec 2022 20:29:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1670290152; bh=SJZhKv90PKZnhOLskoDYbegrG/Oymbv+NyIfTZCt+Vw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=iMuJ/nLoWBE+t9juwPIMbR2xMS9nuJZAt46aAzO1jDA4UTNVFW9aQ8Y1cWWvXYyOWv/bdbpNBQiyC2gkspzGVqe72CDmonis7yTEPYJsZRh06eLZ9UljDr5Y25QqYww3BNGvV1z2cZkctHkSOfdvIBaO3V8lkHqIH04Ir/DLsbjr9quynYNIKdidZ30IMg9JDqnmaQkJxNdVSn+98fN7kuqk4VxQYK+/LlEsPvbjZ2PKFQ1v2u7KPGxenXM+bfYgTP3GqcKg/thjGhn0an9mrermE6Q4MspyffZjhSJyQ5+oJ9FGv+MkQPqUBs7DoDllIjOZhqdYF/U2Vh5O7rnjdQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1670290152; bh=DfKmaPzUR+Tz1vJGJG/ldlTaDxvWK54wfe325mOPHyY=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=BIOSeoG7YOE3SbvfM6kcaGT3mLRNWgBH59XEQXPJwNQP7z/UoKOgT/CicUBiQJ7t2xBIQE892B8Je0eNLsS0oPyJSCe//dCorntwIySCU8xX4Ab4esoDUfiI2JDIQuzoLopHurrprWFpKum3Ko+9ZGpHXlYsQx2mjpptbj5Psefjq9C9y+JeJCk7h7cMBegbXqNgrN4PRDspyI5QKDHdkCg6vkSQgmxbcTmTtF4o7A8y84h7Dywe8zNUdQOARHsM1adEsM7c9xYCsqa/V3/pRsj3exq/kgtL1cE2ipEfVElyzhpAXJjW7uHsSDMytTr8ZAudFHmUKrZSstY9XBCrFA== X-YMail-OSG: yq4kRBAVM1kOE1HP__y3xM_yu5DDXyJyUkmeQa1MNIzFn4p1k7fsEA9Z8LgJwkv etvCIx499s3E4Co0oQo6qouxJv0hU58Vo_Sl3owtzcE2UffBWiqkJ1jZPAxeW2awtOEVRiJik8J1 H_.y_NqqLaoLpHjLVK2GG.hpucU2M.eafZMT678nlFOnpz7RSnM05kab7XIzoSvm1TicV0Yazy1M yNV15GgPm7esw9bZ87kZY.VLrJUpcL3_Ut0ikEoDZoVhSI.0G5v7YuxdRq0p.tKXgZTq0OF66EJG LWE0T1O0TSlbudOfxBihnnKyLjXrjdTwnLEXb70KRNee88MAxvDFaMS.yoDP9rEOBHalaV8vWrHs PYbN30CIUXPOJWWdeu72f8kb9nAu4ciG8h1ZgLm_BtvQ_1Je6FvFMNxcop3wHekw5han9RvL1QAn 9YpM8fU6qHxSfT7DHtNNtqBElPqD.jE48Ui7zbUhVEh3RASquztM213ayN56wzVlCfkkrRrqiS2j .A5qw8C3lDM4nVBktqStRFAESP9IRqk9qZHR68DyvcCOPY1K.CFakMymJhGe34e6y5HlKXvPPt0f ng43eUu0yos8pXMxTDSsVDJeHVx77gvZWhPGnbtzS4_hGCrn6gcJgGRDdrEk4D_pBNxKX.sI6iC3 0K8E.z1JA_I2ubUzmwdWjYCw9ygYFC1JBMYA_lg4OqtljFWXkBQ8nA5kRhkPxI2mB6znUu2vBXX_ rX0JYuGZNZ4zr4jRBXFPyLThYIneKdSZufmoR7ZapvQcw64oXYX6BM4YwFzC0JkQx13C8YHjKijf zSfAsbVjf2tlSPrB_WiDyFUXyYNb1hkM22kkINmo4. X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ne1.yahoo.com with HTTP; Tue, 6 Dec 2022 01:29:12 +0000 Original-Received: by hermes--production-sg3-b666c6484-75xgb (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 6d0331b4cb4e465d3c3cc5fb00cb369e; Tue, 06 Dec 2022 01:29:09 +0000 (UTC) In-Reply-To: <838rjl9477.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 05 Dec 2022 18:59:40 +0200") X-Mailer: WebService/1.1.20926 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.187.33; envelope-from=luangruo@yahoo.com; helo=sonic308-10.consmr.mail.ne1.yahoo.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 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:300950 Archived-At: Eli Zaretskii writes: >> Date: Mon, 05 Dec 2022 16:52:28 +0200 >> From: Eli Zaretskii >> Cc: emacs-devel@gnu.org >> >> > From: Po Lu >> > Date: Mon, 05 Dec 2022 22:18:18 +0800 >> > >> > Emacs 30 (with unexec) is crashing on Windows 98 again, this time during >> > GC. >> >> I tried to build it on X, but the build fails: >> >> xfns.c:46:10: fatal error: xcb/xcb_aux.h: No such file or directory >> #include >> ^~~~~~~~~~~~~~~ >> compilation terminated. >> >> can you please fix that? > > Never mind, I already fixed this. > >> Then I could see if the problem is not only Windows specific. > > Seems to be: the build on GNU/Linux doesn't crash. Unless there's something > special that I need to do to crash it. I think I have figured it out. init_bignum must be called before make_initial_frame, because that allocates a bignum in temacs (as set_window_buffer calls bset_display_time and Fcurrent_time, which go through the time arithmetic stuff), before our own allocator has been set up, which ends up in the dumped Emacs, leading to a free of a pointer from the wrong heap once the bignum is garbage collected. I have installed the change on the Emacs 30 branch because I am not sure it is safe for Emacs 29. Can you think of a safer fix?