From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: recent master core dumps building on FreeBSD i386 Date: Thu, 18 Oct 2018 10:53:20 -0700 Organization: UCLA Computer Science Department Message-ID: <333a616c-95be-0273-a37b-484e9f274ecf@cs.ucla.edu> References: <86va6151mf.fsf@phe.ftfl.ca> <86o9bt746r.fsf@phe.ftfl.ca> <837eigsgel.fsf@gnu.org> <86sh13fell.fsf@phe.ftfl.ca> <83in1zqm39.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------26F9225C0608A778A7BFA969" X-Trace: blaine.gmane.org 1539885099 31256 195.159.176.226 (18 Oct 2018 17:51:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 Oct 2018 17:51:39 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 Cc: emacs-devel@gnu.org To: Eli Zaretskii , Joseph Mingrone Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 18 19:51:34 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gDCSI-0007w9-Ta for ged-emacs-devel@m.gmane.org; Thu, 18 Oct 2018 19:51:31 +0200 Original-Received: from localhost ([::1]:43638 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDCUM-000286-Ar for ged-emacs-devel@m.gmane.org; Thu, 18 Oct 2018 13:53:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDCUF-00027s-Hj for emacs-devel@gnu.org; Thu, 18 Oct 2018 13:53:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDCUE-0004sg-Ga for emacs-devel@gnu.org; Thu, 18 Oct 2018 13:53:31 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:34824) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gDCU9-0004oD-MC; Thu, 18 Oct 2018 13:53:26 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3F3FC160058; Thu, 18 Oct 2018 10:53:22 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id ODKPnTyTKVlo; Thu, 18 Oct 2018 10:53:21 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2B62A16005A; Thu, 18 Oct 2018 10:53:21 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id FZvnaQnv64AN; Thu, 18 Oct 2018 10:53:21 -0700 (PDT) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 0E9EC160058; Thu, 18 Oct 2018 10:53:21 -0700 (PDT) Openpgp: preference=signencrypt Autocrypt: addr=eggert@cs.ucla.edu; prefer-encrypt=mutual; keydata= xsFNBEyAcmQBEADAAyH2xoTu7ppG5D3a8FMZEon74dCvc4+q1XA2J2tBy2pwaTqfhpxxdGA9 Jj50UJ3PD4bSUEgN8tLZ0san47l5XTAFLi2456ciSl5m8sKaHlGdt9XmAAtmXqeZVIYX/UFS 96fDzf4xhEmm/y7LbYEPQdUdxu47xA5KhTYp5bltF3WYDz1Ygd7gx07Auwp7iw7eNvnoDTAl KAl8KYDZzbDNCQGEbpY3efZIvPdeI+FWQN4W+kghy+P6au6PrIIhYraeua7XDdb2LS1en3Ss mE3QjqfRqI/A2ue8JMwsvXe/WK38Ezs6x74iTaqI3AFH6ilAhDqpMnd/msSESNFt76DiO1ZK QMr9amVPknjfPmJISqdhgB1DlEdw34sROf6V8mZw0xfqT6PKE46LcFefzs0kbg4GORf8vjG2 Sf1tk5eU8MBiyN/bZ03bKNjNYMpODDQQwuP84kYLkX2wBxxMAhBxwbDVZudzxDZJ1C2VXujC OJVxq2kljBM9ETYuUGqd75AW2LXrLw6+MuIsHFAYAgRr7+KcwDgBAfwhPBYX34nSSiHlmLC+ KaHLeCLF5ZI2vKm3HEeCTtlOg7xZEONgwzL+fdKo+D6SoC8RRxJKs8a3sVfI4t6CnrQzvJbB n6gxdgCu5i29J1QCYrCYvql2UyFPAK+do99/1jOXT4m2836j1wARAQABzSBQYXVsIEVnZ2Vy dCA8ZWdnZXJ0QGNzLnVjbGEuZWR1PsLBfgQTAQIAKAUCTIByZAIbAwUJEswDAAYLCQgHAwIG FQgCCQoLBBYCAwECH In-Reply-To: <83in1zqm39.fsf@gnu.org> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:230487 Archived-At: This is a multi-part message in MIME format. --------------26F9225C0608A778A7BFA969 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 10/18/18 9:02 AM, Eli Zaretskii wrote: > Can you please repeat this experiment, and then, when it crashes, do > this: > > (gdb) source ./.gdbinit > (gdb) frame 2 > (gdb) p/x a > (gdb) xtype > > and show us the results? Also, please try these GDB commands when debugging ./temacs: b syms_of_threads r -Q p &main_thread disas syms_of_threads p &Vmain_thread I'm attaching the output of these commands on Fedora 28 x86-64 compiled with 'gcc -m32 -march=native -g3 -O2' (AMD Phenom II X4 910e). Evidently your compiler (clang?) is not inlining make_lisp_ptr, but it's still useful to know what it's up to. I see that GCC optimizes away not only the call to make_lisp_ptr, but also the runtime check 'TAGGEDP (a, type) && XUNTAG (a, type, char) == ptr', I guess because GCC knows that main_thread is properly aligned so TAGGEDP must succeed here. clang isn't smart enough to do this sort of optimization (at least on Fedora) so if you're using clang that might partly explain the problem. Also, please investigate what the macro GCALIGNED_STRUCT expands to. You can use 'gcc -E' to do that. --------------26F9225C0608A778A7BFA969 Content-Type: text/plain; charset=UTF-8; name="gdb.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="gdb.txt" KGdkYikgYiBzeW1zX29mX3RocmVhZHMKQnJlYWtwb2ludCAxIGF0IDB4ODI0NWU0MDogZmls ZSB0aHJlYWQuYywgbGluZSAxMDk3LgooZ2RiKSByIC1RClN0YXJ0aW5nIHByb2dyYW06IC9o b21lL2VnZ2VydC9zcmMvZ251L2VtYWNzL21hc3Rlci10bXAvc3JjL3RlbWFjcyAtUQpbVGhy ZWFkIGRlYnVnZ2luZyB1c2luZyBsaWJ0aHJlYWRfZGIgZW5hYmxlZF0KVXNpbmcgaG9zdCBs aWJ0aHJlYWRfZGIgbGlicmFyeSAiL2xpYjY0L2xpYnRocmVhZF9kYi5zby4xIi4KCkJyZWFr cG9pbnQgMSwgc3ltc19vZl90aHJlYWRzICgpIGF0IHRocmVhZC5jOjEwOTcKKGdkYikgcCAm bWFpbl90aHJlYWQKJDEgPSAoc3RydWN0IHRocmVhZF9zdGF0ZSAqKSAweDg1ZjI5MjAgPG1h aW5fdGhyZWFkPgooZ2RiKSBkaXNhcyBzeW1zX29mX3RocmVhZHMKRHVtcCBvZiBhc3N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