From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: On elisp running native Date: Tue, 04 Feb 2020 18:39:38 +0000 Message-ID: References: <83tv5mp48l.fsf@gnu.org> <83sgl0lchm.fsf@gnu.org> <83imlwl9vm.fsf@gnu.org> <83o8uegykm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="121549"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 04 19:40:26 2020 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 1iz37Y-000VRF-7Y for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Feb 2020 19:40:24 +0100 Original-Received: from localhost ([::1]:35948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iz37X-0001mW-7y for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Feb 2020 13:40:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48699) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iz36v-0001LE-52 for emacs-devel@gnu.org; Tue, 04 Feb 2020 13:39:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iz36u-0000BR-4X for emacs-devel@gnu.org; Tue, 04 Feb 2020 13:39:45 -0500 Original-Received: from mx.sdf.org ([205.166.94.20]:52925) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iz36s-0008OJ-Ck; Tue, 04 Feb 2020 13:39:42 -0500 Original-Received: from sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 014Iddw4012935 (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits) verified NO); Tue, 4 Feb 2020 18:39:39 GMT Original-Received: (from akrl@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 014Idc9k014524; Tue, 4 Feb 2020 18:39:38 GMT In-Reply-To: <83o8uegykm.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 04 Feb 2020 17:30:01 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 205.166.94.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:244842 Archived-At: Eli Zaretskii writes: >> From: Andrea Corallo >> Cc: >> Date: Tue, 04 Feb 2020 11:28:19 +0000 >> >> By the way I've tried to rebase on latest trunk and did some boostraps >> but I get from time to time backtraces always going through libpthread. > > Can you show an example of such a backtrace, with source file, > function name, and line number information? > >> Does this ring any bell to anybody? The branch the native compiler is >> currently based on date beginning of the year. Did something >> fundamental changed around threading? > > Bootstrapping Emacs doesn't use threads, so I'm unsure what changes in > threading could be relevant. > > But to answer your question, we changed slightly how thread is > started, as side effect of fixing the code which assigns a name to a > new thread. Hi Eli, the backtraces I've observed are like this: Fatal error 11: Segmentation fault Backtrace: ../src/bootstrap-emacs[0x5a7462] ../src/bootstrap-emacs[0x55fbe8] ../src/bootstrap-emacs[0x5a6d01] ../src/bootstrap-emacs[0x5a6cd6] ../src/bootstrap-emacs[0x5a6d38] ../src/bootstrap-emacs[0x5a6ed2] /lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f5d482cf890] ../src/bootstrap-emacs[0x512f19] ../src/bootstrap-emacs[0x6dbb91] they are not run into the debugger so there's no line number (even if bootstrap-emacs has debug symbols). Anyway at this point I suspect is not thread related and is likely to be my fault. Tonight I'll run some tests under rr to better understand what's going on thanks. -- akrl@sdf.org