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:12:43 -0800 Message-ID: <51245B4B.6000803@dancol.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2TVXLGLINAFNUMLUWQTPL" X-Trace: ger.gmane.org 1361337178 11681 80.91.229.3 (20 Feb 2013 05:12:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2013 05:12:58 +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:13:21 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 1U81zc-00087N-Bj for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Feb 2013 06:13:20 +0100 Original-Received: from localhost ([::1]:48382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U81zI-00027l-60 for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Feb 2013 00:13:00 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U81zE-00026e-EK for bug-gnu-emacs@gnu.org; Wed, 20 Feb 2013 00:12:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U81zB-00086F-Q7 for bug-gnu-emacs@gnu.org; Wed, 20 Feb 2013 00:12:56 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32803) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U81zB-000865-NM for bug-gnu-emacs@gnu.org; Wed, 20 Feb 2013 00:12:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U820I-0003B2-BR for bug-gnu-emacs@gnu.org; Wed, 20 Feb 2013 00:14: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:14: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.136133724012197 (code B ref 13759); Wed, 20 Feb 2013 05:14:02 +0000 Original-Received: (at 13759) by debbugs.gnu.org; 20 Feb 2013 05:14:00 +0000 Original-Received: from localhost ([127.0.0.1]:38267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U820F-0003Af-RC for submit@debbugs.gnu.org; Wed, 20 Feb 2013 00:14:00 -0500 Original-Received: from dancol.org ([96.126.100.184]:45825) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U820C-0003AW-UM for 13759@debbugs.gnu.org; Wed, 20 Feb 2013 00:13:58 -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 1U81z4-0003vm-NI; Tue, 19 Feb 2013 21:12:46 -0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: 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:71551 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2TVXLGLINAFNUMLUWQTPL Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2/18/2013 4:06 PM, Katsumi Yamaoka wrote: > Program received signal SIGSEGV, Segmentation fault. > mmap_alloc (var=3D0xf26d18, nbytes=3D15273) at buffer.c:4906 > 4906 r->next->prev =3D r; > (gdb) bt > #0 mmap_alloc (var=3D0xf26d18, nbytes=3D15273) at buffer.c:4906 > #1 0x004d07b9 in mmap_realloc (nbytes=3D15273, var=3D0xf26d18) at buff= er.c:4945 > #2 enlarge_buffer_text (b=3D0xf26c00, delta=3D0) at buffer.c:5053 > #3 0x004d1e16 in init_buffer () at buffer.c:5301 > #4 0x004af6dd in main (argc=3D1, argv=3D0x22ac40) at emacs.c:1305 > (gdb)=20 >=20 > Is any other information required? Thanks. The problem is that mmap_regions, the head of a linked list of memory allocations we've made for buffers, is non-NULL in the dumped Emacs, but obviously points to garbage that was valid only before Emacs was dumped. = The call to mmap_set_vars in Fdump_emacs is supposed to zero these variables = before we dump Emacs, but mmap_regions becomes non-NULL inside Fdump_emacs: gdb) where #0 mmap_alloc (var=3D0x7ca918, nbytes=3D6389) at buffer.c:4909 #1 0x004b0039 in mmap_realloc (nbytes=3D6389, var=3D0x7ca918) at buffer.= c:4945 #2 enlarge_buffer_text (b=3D0x7ca800, delta=3D0) at buffer.c:5053 #3 0x004b0148 in set_buffer_internal_1 (b=3D0x7ca800) at buffer.c:2104 #4 0x004b068b in set_buffer_internal (b=3D) at buffer.h:1= 090 #5 Fset_buffer (buffer_or_name=3D8169477) at buffer.c:2195 #6 0x0041e47c in message_dolog (m=3D0x287110 "Static heap usage: 1107212= 8 of 13631488 bytes\rC", nbytes=3D45, nlflag=3Dtrue, multibyte=3Dfalse) at xdisp.c:9389 #7 0x00430d50 in message3 (m=3D17698433) at xdisp.c:9598 #8 0x0054da7e in report_sheap_usage (die_if_pure_storage_exceeded=3D1) a= t sheap.c:94 #9 0x0052ec2a in unexec (outfile=3D0x121f934 "/users/dancol/edev/cyg/src= /emacs", infile=3D0x121f968 "/users/dancol/edev/cyg/src/temacs") at unexcw.c:287 #10 0x0048de13 in Fdump_emacs (filename=3D17698561, symfile=3D17698449) a= t emacs.c:2056 #11 0x004fb913 in eval_sub (form=3D11000526) at eval.c:2043 #12 0x004fbc8e in Fprogn (args=3D11000262) at eval.c:359 #13 0x004fba80 in eval_sub (form=3D10618670) at eval.c:1988 #14 0x004fba80 in eval_sub (form=3D10273462) at eval.c:1988 #15 0x0051cbd6 in readevalloop (readcharfun=3D10344786, stream=3D0x7ca60c= , sourcename=3D10459185, printflag=3Dfalse, unibyte=3D10283034, readfun=3D10283034, start=3D10283034, end=3D10283034) at lread.c:1855= #16 0x0051d8c4 in Fload (file=3D10400673, noerror=3D10283034, nomessage=3D= 10283034, nosuffix=3D10283034, must_suffix=3D10283034) at lread.c:1326 #17 0x004fb8b9 in eval_sub (form=3D10268918) at eval.c:2054 #18 0x004fd8b2 in Feval (form=3D10268918, lexical=3D10283034) at eval.c:1= 902 #19 0x0049240c in top_level_2 () at keyboard.c:1182 #20 0x004faac4 in internal_condition_case (bfun=3D0x4923f0 ,= handlers=3D10325114, hfun=3D0x493c90 ) at eval.c:1193 #21 0x00492c30 in top_level_1 (ignore=3D10283034) at keyboard.c:1190 #22 0x004fa9ea in internal_catch (tag=3D10314994, func=3D0x492bd0 , arg=3D10283034) at eval.c:964 #23 0x004937a8 in command_loop () at keyboard.c:1151 #24 recursive_edit_1 () at keyboard.c:785 #25 0x00493ab1 in Frecursive_edit () at keyboard.c:849 #26 0x0048f662 in main (argc=3D, argv=3D0x28ac20) at emacs= =2Ec:1556 I don't know why we suddenly started seeing this behavior. ------enig2TVXLGLINAFNUMLUWQTPL 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/ iEYEARECAAYFAlEkW00ACgkQ17c2LVA10VuiZQCgzNnquKyRWf0ZfgM7r/C8ehmu /WAAn1FKPqkXX9T5v1NjQ83AS3ozHPOX =Z0SK -----END PGP SIGNATURE----- ------enig2TVXLGLINAFNUMLUWQTPL--