From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Abort when creating frame Date: Tue, 06 Sep 2011 05:48:47 -0400 Message-ID: References: <4E64FD1B.2090002@gmx.at> <83k49mkip0.fsf@gnu.org> <83ipp6ki96.fsf@gnu.org> <4E650D91.50506@gmx.at> <83hb4qkcsw.fsf@gnu.org> <4E65307A.6040406@gmx.at> <83ehzujsak.fsf@gnu.org> <4E65C459.5030904@gmx.at> <4E65E661.3050608@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1315302543 29291 80.91.229.12 (6 Sep 2011 09:49:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Sep 2011 09:49:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 06 11:48:58 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R0sH4-0001NM-1Y for ged-emacs-devel@m.gmane.org; Tue, 06 Sep 2011 11:48:58 +0200 Original-Received: from localhost ([::1]:41269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0sH0-0005Ng-UK for ged-emacs-devel@m.gmane.org; Tue, 06 Sep 2011 05:48:54 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0sGx-0005NH-St for emacs-devel@gnu.org; Tue, 06 Sep 2011 05:48:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R0sGt-00075i-RF for emacs-devel@gnu.org; Tue, 06 Sep 2011 05:48:51 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:36986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0sGt-00075e-OY for emacs-devel@gnu.org; Tue, 06 Sep 2011 05:48:47 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1R0sGt-0000yZ-LQ; Tue, 06 Sep 2011 05:48:47 -0400 In-reply-to: <4E65E661.3050608@gmx.at> (message from martin rudalics on Tue, 06 Sep 2011 11:22:41 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 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:143775 Archived-At: > Date: Tue, 06 Sep 2011 11:22:41 +0200 > From: martin rudalics > CC: emacs-devel@gnu.org > > (gdb) break lread.c:1250 > > getting me > > Breakpoint 4, Fload (file=55364081, noerror=50116658, nomessage=50116658, > nosuffix=50116658, must_suffix=50116634) at lread.c:1250 > > Apparently I enter the call4 below > > val = call4 (Vload_source_file_function, found, hist_file_name, > NILP (noerror) ? Qnil : Qt, > (NILP (nomessage) || force_load_messages) ? Qnil : Qt); > return unbind_to (count, val); > > and after that return. What is the value of Vload_source_file_function? If it's load-with-code-conversion (as I think it should be), then either add (message foo) printouts in load-with-code-conversion and see what happens there, or put a breakpoint in Finsert_file_contents, which load-with-code-conversion eventually calls, and see why that fails. > > Note that in order for "pp" to work, you will need to start GDB in the > > src directory. But you probably already know that. > > (gdb) pp file > > never prints anything here. If this is after you invoked Emacs from GDB (as opposed to attaching to a running program), then I guess it's a bug in that old port of GDB you are using. It works for me in v7.2. Anyway, you can use this less convenient method instead: (gdb) p file (gdb) xstring (This assumes that `file' is a Lisp string. There's `xtype' to show the type.)