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.devel Subject: Re: MPS: Please check if scratch/igc builds with native compilation Date: Thu, 23 May 2024 03:50:24 -0400 Message-ID: References: <87r0du5rly.fsf@gmail.com> <87le425p8i.fsf@gmail.com> <87ed9u5lbi.fsf@gmail.com> 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="38564"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Helmut Eller , Emacs Devel , Eli Zaretskii To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 23 09:51:16 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 1sA3EJ-0009kN-92 for ged-emacs-devel@m.gmane-mx.org; Thu, 23 May 2024 09:51:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sA3DY-0004ag-O7; Thu, 23 May 2024 03:50:28 -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 1sA3DW-0004Zx-IG for emacs-devel@gnu.org; Thu, 23 May 2024 03:50:26 -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 1sA3DV-0004qM-Ba; Thu, 23 May 2024 03:50:26 -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=3SA5wuL4yJyrO/1RBPtonu3Qo7qeV9CPa4y4W08ogFQ=; b=kyKE97TZD+ghRm5r6UaM HUCJupCp4zTazdd4dDU9s3NQ8yBTYn9O1SOxWeUe0sAz/Vji3uBizclMAK8zYp7uQImyJo60y+5tN Gjvpdm11sDqeNsmFRlhkLTBSLVsnXUw0TtrBD5XEHLTNeh9Tm5zKAHvRwaw4dh0OoXN5JprdGpB1C 2da7iDk8pG5+QEIHPImVtjmoWOnWG6LFHP6kp1A6hIlmTO8Eij+HCsEbOIJyuTvRHiDlpwN0uZR5e 7eTG1kUmoRCU13coD3vakI+6OlEeDNGodztMXWReoS5UnF2tzIwm50d6TNw5m1olR0G5hgIAw/HjR XsgxcReMCvPVsg==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sA3DU-0000T5-Pi; Thu, 23 May 2024 03:50:24 -0400 In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Thu, 23 May 2024 08:12:03 +0200") 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:319505 Archived-At: Gerd M=C3=B6llmann writes: > Gerd M=C3=B6llmann writes: > >> Gerd M=C3=B6llmann writes: >> >>> Or something completely different, I actually have no idea :-). >> >> I came to one conclusion this afternoon nemely that fix_comp_unit is >> 100% wrong: it may not scan d_reloc etc. in the shared object >> because there is no synchronization between threads reading/writing >> these. >> >> Remains the question why making them roots did not work for me. A root >> ensures synchronization by stopping the world while roots are scanned. >> >> I guess I'll have to double check if that was really the same error as >> w/o roots, or if it only looked like it was. > > I've now pushed something. > > This doesn't make the native comp build work, but the errors are > different, and in the cases of IGC_OBJ_FWD assertions I think these > don't have the same cause, at least they don't follow the patterns I've > previously seen in LLDB. > > In summary, I think this is an improvement. > > Could anyone (of the currently n =3D 3 people reporting back > (not disappointing because expected) try this? Hi Gerd, on I 2bd8ee79d93 I get: igc.c:2189: Emacs fatal error: assertion failed: n > 0 Backtrace: ../src/emacs(+0x226e87)[0x5e2f8ba24e87] ../src/emacs(+0x6047d)[0x5e2f8b85e47d] ../src/emacs(+0x34a2ac)[0x5e2f8bb482ac] ../src/emacs(+0x34bd88)[0x5e2f8bb49d88] ../src/emacs(+0x34d968)[0x5e2f8bb4b968] ../src/emacs(+0x3128c6)[0x5e2f8bb108c6] ../src/emacs(+0x312fd1)[0x5e2f8bb10fd1] ../src/emacs(+0x2a9bec)[0x5e2f8baa7bec] /home/andcor03/emacs4/native-lisp/30.0.50-74ae6c6c/comp-7672a6ed-f5e09f0c.e= ln(F636f6d702d2d6e61746976652d636f6d70696c65_comp__native_compile_0+0xb39)[= 0x7e83c178fcd9] ../src/emacs(+0x2a9bec)[0x5e2f8baa7bec] /home/andcor03/emacs4/native-lisp/30.0.50-74ae6c6c/comp-7672a6ed-f5e09f0c.e= ln(F636f6d702d7472616d706f6c696e652d636f6d70696c65_comp_trampoline_compile_= 0+0x232)[0x7e83c178e522] ../src/emacs(+0x2a9bec)[0x5e2f8baa7bec] /home/andcor03/emacs4/native-lisp/30.0.50-74ae6c6c/comp-run-a15747ee-f15895= e9.eln(F636f6d702d737562722d7472616d706f6c696e652d696e7374616c6c_comp_subr_= trampoline_install_0+0x1e7)[0x7e83c17160d7] ../src/emacs(+0x2a9bec)[0x5e2f8baa7bec] ../src/emacs(+0x28d7c5)[0x5e2f8ba8b7c5] ../src/emacs(+0x3060ef)[0x5e2f8bb040ef] ../src/emacs(+0x2a9bec)[0x5e2f8baa7bec] /home/andcor03/emacs4/src/../native-lisp/30.0.50-74ae6c6c/preloaded/nadvice= -64630aaa-9efa993d.eln(F6164766963652d2d6164642d66756e6374696f6e_advice__ad= d_function_0+0x217)[0x7e83c1a331e7] ../src/emacs(+0x2a9bec)[0x5e2f8baa7bec] /home/andcor03/emacs4/src/../native-lisp/30.0.50-74ae6c6c/preloaded/nadvice= -64630aaa-9efa993d.eln(F6164766963652d616464_advice_add_0+0x19e)[0x7e83c1a3= 462e] ../src/emacs(+0x2ae310)[0x5e2f8baac310] ../src/emacs(+0x2ae6b4)[0x5e2f8baac6b4] [...] Andrea