From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#17168: 24.3.50; Segfault at mark_object Date: Thu, 03 Apr 2014 02:08:46 -0700 Message-ID: <533D251E.3030108@dancol.org> References: <87y4zop44m.fsf@yahoo.fr> <533C3AF5.6070502@yandex.ru> <533C6905.9060309@dancol.org> <83bnwjbh8v.fsf@gnu.org> <533C75A6.60900@dancol.org> <533D06E6.2060001@yandex.ru> <533D07EF.1040502@yandex.ru> <533D13E2.3060300@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9uXv6wnDlTG3eqqhlP7jLnrjbtj4sgOU2" X-Trace: ger.gmane.org 1396523332 13229 80.91.229.3 (3 Apr 2014 11:08:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Apr 2014 11:08:52 +0000 (UTC) To: Dmitry Antipov , 17168@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 03 13:08:45 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WVeHm-00075K-WA for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Apr 2014 11:50:15 +0200 Original-Received: from localhost ([::1]:42841 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVdeA-0001Rx-JL for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Apr 2014 05:09:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVde1-0001Ra-TI for bug-gnu-emacs@gnu.org; Thu, 03 Apr 2014 05:09:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WVddw-0008OP-LU for bug-gnu-emacs@gnu.org; Thu, 03 Apr 2014 05:09:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVddw-0008Nx-Cc for bug-gnu-emacs@gnu.org; Thu, 03 Apr 2014 05:09:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WVddv-0001Z0-Na for bug-gnu-emacs@gnu.org; Thu, 03 Apr 2014 05:09:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Apr 2014 09:09:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17168 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 17168-submit@debbugs.gnu.org id=B17168.13965161405999 (code B ref 17168); Thu, 03 Apr 2014 09:09:03 +0000 Original-Received: (at 17168) by debbugs.gnu.org; 3 Apr 2014 09:09:00 +0000 Original-Received: from localhost ([127.0.0.1]:33755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVddq-0001Ye-U3 for submit@debbugs.gnu.org; Thu, 03 Apr 2014 05:08:59 -0400 Original-Received: from dancol.org ([96.126.100.184]:46294) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVddh-0001YM-BY for 17168@debbugs.gnu.org; Thu, 03 Apr 2014 05:08:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:In-Reply-To:References:Subject:To:MIME-Version:From:Date:Message-ID; bh=fqAL792o76QyjQP2mOLqFgNfctWutMYA3IS4OMxfJUk=; b=Z4FsRG+UeBdY52Oz+1Xc1jEEIZyFttCzQ2VPq0hdnMU2U/wbsRlyA2jJP0n8sSZOuOcDnXIGaSL4A+5qoSaLDpZx4mmzdyeH6IK5nq/M4p9YTy9VlH7ozzUFpirWneZ+f581B82oIs9XamaOSQYkbBWC9JORrJ15TpxfSmYpoj7ojw8pfnhorUQitQ9zwYlLDKuqBvn+F9LCH3/muNFmJEafwLFwAOK+onJeGcNuHZCi7La7X1fMGyp3WXMvVpt+mATn+tF+Qd6YVsumecF2SzgwZiXT2+2YYxunF1GXo77QeLsN9AXREcU+luv8fYJvPNZhdY3ruOqEbwQwwFsvIQ==; Original-Received: from [2601:8:b200:551::2b1] by dancol.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1WVddf-0001QU-Hg; Thu, 03 Apr 2014 02:08:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: <533D13E2.3060300@dancol.org> X-Enigmail-Version: 1.6 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:87654 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --9uXv6wnDlTG3eqqhlP7jLnrjbtj4sgOU2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 04/03/2014 12:55 AM, Daniel Colascione wrote: > On 04/03/2014 12:04 AM, Dmitry Antipov wrote: >> On 04/03/2014 10:59 AM, Dmitry Antipov wrote: >> >>> 3. Run 'emacs -Q', then M-x byte-force-recompile >>> /path/to/trunk/lis/org >> ^^^^^^^ >> Mean /path/to/trunk/lisp/org, i.e. all Org mode. >=20 > Nice work. What gave you the idea of using byte-force-recompile to > repro? I'd tried a few other stress cases myself and couldn't find > anything. Your repro works perfectly. >=20 Found the bug: that symbol's name is in pure storage, so we ignore the value of sym->s.gcmarkbit and assume the symbol is always live: we never put it on the free list, so we never set its function slot to Vdead. Later, during another GC pass, conservative GC scanning happens to find a pointer to the symbol. We begin marking it, descend into the function slot, which is still pointing to the old, dead object value. We try to mark memory being used for some other purpose and enter la-la land= =2E --9uXv6wnDlTG3eqqhlP7jLnrjbtj4sgOU2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJTPSUeAAoJEMAaIROpHW7IylsP/1VsEaDeO9mGV+E/nDlbvkgI 3qlanlhkW2ZSWPJOn2f1pcI9LO1Ww80BzwNMW/xJJAN84uIBZLNchonbqXyRGFDY 2EMYn5mhhpGiZzmvv/7dukEku2KoEG/necmlGEfr7L2POcxaQQlNtsCmQrJOAGKn pg+lN5PzdWkiJaPPkgaaDS+kQ2X5hYhkFFS2esXEss+pjDQWV6TZPh/vfYglvTAA n4B6aopzEF9T7estIg7HTFckMcl48ILpJBUpPzeiA8jxCJlmnEGhD4mzhFEOsCBd Z1iDJJeO/rVNXYj+02x3KZYSU/rriz5TmIt1jAyScdGnfgXR3pY3dM+/nuXP9jCJ JHr4C9wEwBQENtLJqBOARg5D1ycbDDzpJZtNBfqlTKEDOMK12oRyCHNUVvRSspaD cC5a2aFS7dza2+Fl+6CK3treZ9rL/BwwrEZbKjA6C/1VBxGuboT7xbHJxEyYaizH dNgJgQX119XeiX9RDLSJ1m2aTV8TD9EfI3WdcaJt8lNsiMeWpLEjM57tQLyV3zg6 7ytRtibR89yCqXHKCNvQSNqWCyc5+4i/57OQk7WW0Vhm00tSWGfZsMW5D38cOAW6 nN3LmK5QDz4qdhAUNDmsNbse/OjQu+H9SjJk7klvIHn2x7jjCfVVXO4BTAIU7ztv o7rpD2zDawggW54Mj3Z9 =9tdn -----END PGP SIGNATURE----- --9uXv6wnDlTG3eqqhlP7jLnrjbtj4sgOU2--