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#13759: 24.3.50; bootstrap failed; bootstrap-emacs segfaults Date: Tue, 19 Feb 2013 21:57:09 -0800 Message-ID: <512465B5.5030207@dancol.org> References: <51245B4B.6000803@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2FBFVLPRBETMNPXDNXFHW" X-Trace: ger.gmane.org 1361339880 32002 80.91.229.3 (20 Feb 2013 05:58:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2013 05:58:00 +0000 (UTC) Cc: 13759@debbugs.gnu.org To: Katsumi Yamaoka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 20 06:58:22 2013 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 1U82h9-0002IC-3b for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Feb 2013 06:58:19 +0100 Original-Received: from localhost ([::1]:34404 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U82go-0004m7-Ri for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Feb 2013 00:57:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U82gm-0004ls-8r for bug-gnu-emacs@gnu.org; Wed, 20 Feb 2013 00:57:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U82gj-00033Z-So for bug-gnu-emacs@gnu.org; Wed, 20 Feb 2013 00:57:56 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U82gj-00033R-PW for bug-gnu-emacs@gnu.org; Wed, 20 Feb 2013 00:57:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U82hq-0004Bp-B1 for bug-gnu-emacs@gnu.org; Wed, 20 Feb 2013 00:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Feb 2013 05:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13759 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13759-submit@debbugs.gnu.org id=B13759.136133990916065 (code B ref 13759); Wed, 20 Feb 2013 05:59:02 +0000 Original-Received: (at 13759) by debbugs.gnu.org; 20 Feb 2013 05:58:29 +0000 Original-Received: from localhost ([127.0.0.1]:38293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U82hI-0004B3-DO for submit@debbugs.gnu.org; Wed, 20 Feb 2013 00:58:28 -0500 Original-Received: from dancol.org ([96.126.100.184]:45945) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U82hD-0004Ar-Mw for 13759@debbugs.gnu.org; Wed, 20 Feb 2013 00:58:24 -0500 Original-Received: from c-76-22-66-162.hsd1.wa.comcast.net ([76.22.66.162] helo=[0.0.0.0]) by dancol.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1U82g5-00042H-Ig; Tue, 19 Feb 2013 21:57:13 -0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: <51245B4B.6000803@dancol.org> X-Enigmail-Version: 1.5 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:71552 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2FBFVLPRBETMNPXDNXFHW Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2/19/2013 9:12 PM, Daniel Colascione wrote: > I don't know why we suddenly started seeing this behavior. Revision 111820, "Prefer `message1' over `message'.", caused us to start = calling message1 instead of message in sheap.c. message1 ends up calling message_= dolog, which tries to allocate a *Messages* buffer. Maybe Fdump_emacs should bin= d Vmessage_max_log? Anyway, I've installed the following patch to trunk, which fixes the prob= lem. If we want to go back to using message1, let's somehow make sure it doesn't = log. revno: 111830 committer: Daniel Colascione branch nick: cyg timestamp: Tue 2013-02-19 21:43:53 -0800 message: 2013-02-19 Daniel Colascione * sheap.c (report_sheap_usage): Use message, not message1, so that we don't try to create a buffer while we're in the middle of dumping Emacs. Explain why. diff: =3D=3D=3D modified file 'src/ChangeLog' --- src/ChangeLog 2013-02-19 03:29:28 +0000 +++ src/ChangeLog 2013-02-20 05:43:53 +0000 @@ -1,3 +1,9 @@ +2013-02-19 Daniel Colascione + + * sheap.c (report_sheap_usage): Use message, not message1, so + that we don't try to create a buffer while we're in the middle + of dumping Emacs. Explain why. + 2013-02-19 Eli Zaretskii * w32proc.c (new_child): Avoid leaking handles if the subprocess =3D=3D=3D modified file 'src/sheap.c' --- src/sheap.c 2013-02-17 16:49:27 +0000 +++ src/sheap.c 2013-02-20 05:43:53 +0000 @@ -91,5 +91,8 @@ char buf[200]; sprintf (buf, "Static heap usage: %d of %d bytes", bss_sbrk_ptr - bss_sbrk_buffer, STATIC_HEAP_SIZE); - message1 (buf); + /* Don't change this call to message1! message1 can log + messages, and at this point, we're not allowed to create + buffers. */ + message ("%s", buf); } ------enig2FBFVLPRBETMNPXDNXFHW 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.13 (Cygwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlEkZbcACgkQ17c2LVA10VvYNQCgw3AhxMyG+qv4OFtODanxQ8aR etcAoLops4AiqDBWF5fE0/m1IGF3JMN/ =98Df -----END PGP SIGNATURE----- ------enig2FBFVLPRBETMNPXDNXFHW--