From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: End of file while generating loaddefs.el Date: Fri, 20 Nov 2015 10:46:55 +0100 Message-ID: <87y4dt3svk.fsf@fencepost.gnu.org> References: <834mgkbk2t.fsf@gnu.org> <564C2DDB.2090402@gmx.at> <83si439py4.fsf@gnu.org> <564D848D.4000301@gmx.at> <83lh9u7yp2.fsf@gnu.org> <564ED86E.3030705@gmx.at> <83egfl6p6a.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1448020839 12316 80.91.229.3 (20 Nov 2015 12:00:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Nov 2015 12:00:39 +0000 (UTC) Cc: martin rudalics , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 20 13:00:38 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZzkMl-0007y7-El for ged-emacs-devel@m.gmane.org; Fri, 20 Nov 2015 13:00:35 +0100 Original-Received: from localhost ([::1]:46778 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzkMf-0007zY-TG for ged-emacs-devel@m.gmane.org; Fri, 20 Nov 2015 07:00:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzkMT-0007yi-GQ for emacs-devel@gnu.org; Fri, 20 Nov 2015 07:00:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZzkMS-0001bB-Ha for emacs-devel@gnu.org; Fri, 20 Nov 2015 07:00:17 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzkMM-0001Zh-Q5; Fri, 20 Nov 2015 07:00:10 -0500 Original-Received: from localhost ([127.0.0.1]:42745 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1ZzkMM-0002Id-AO; Fri, 20 Nov 2015 07:00:10 -0500 Original-Received: by lola (Postfix, from userid 1000) id 5378EDF5FD; Fri, 20 Nov 2015 10:46:55 +0100 (CET) In-Reply-To: <83egfl6p6a.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 20 Nov 2015 10:38:37 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:194865 Archived-At: Eli Zaretskii writes: >> Date: Fri, 20 Nov 2015 09:23:10 +0100 >> From: martin rudalics >> Cc: emacs-devel@gnu.org >> >> > into the GDB command to run Emacs, right after >> > the "run" part. Then wait until it segfaults. >> >> When I do that it doesn't segfault but simply produces the "End of file >> during parsing" message you reported earlier. > > Darn! Another memory-related Heisenbug! > > I guess the only way to debug this is see what happens inside prin1. > AFAIR, it uses a temporary buffer to produce the string, so this might > be due to GC or something. For the record: if it weren't on Windows, you could say something like ulimit -c unlimited # Possibly a bad idea on 64bit systems and then run the program again from the command line. This should make it behave identically until crashing, producing a "core" file when doing so. You can then run gdb src/emacs core # or whatever your corresponding binary was and then do a post-mortem debug, particularly looking at the backtrace. -- David Kastrup