From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#13154: 24.3.50; emacs_backtrace.txt (different one) Date: Thu, 13 Dec 2012 19:08:32 +0200 Message-ID: <83sj79op67.fsf@gnu.org> References: <71C954CE83CD4097847383645A95BD14@us.oracle.com> <838v938b38.fsf@gnu.org> <831uev85mk.fsf@gnu.org> <50C9AE0E.7030608@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1355418558 24395 80.91.229.3 (13 Dec 2012 17:09:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Dec 2012 17:09:18 +0000 (UTC) Cc: 13154@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 13 18:09:31 2012 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 1TjCHq-0004w4-T4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Dec 2012 18:09:31 +0100 Original-Received: from localhost ([::1]:51888 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjCHd-0005mF-Uf for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Dec 2012 12:09:17 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjCHa-0005gf-0v for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 12:09:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjCHV-00076n-Sn for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 12:09:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59154) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjCHV-00076i-PG for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 12:09:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TjCIM-0005lE-Bc for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 12:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Dec 2012 17:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13154 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13154-submit@debbugs.gnu.org id=B13154.135541858822110 (code B ref 13154); Thu, 13 Dec 2012 17:10:02 +0000 Original-Received: (at 13154) by debbugs.gnu.org; 13 Dec 2012 17:09:48 +0000 Original-Received: from localhost ([127.0.0.1]:41172 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TjCI8-0005kY-27 for submit@debbugs.gnu.org; Thu, 13 Dec 2012 12:09:48 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:39709) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TjCI5-0005kM-61 for 13154@debbugs.gnu.org; Thu, 13 Dec 2012 12:09:46 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MEZ00600BLQ4700@a-mtaout23.012.net.il> for 13154@debbugs.gnu.org; Thu, 13 Dec 2012 19:08:34 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MEZ0059BBMAT9A0@a-mtaout23.012.net.il>; Thu, 13 Dec 2012 19:08:34 +0200 (IST) In-reply-to: <50C9AE0E.7030608@gmx.at> X-012-Sender: halo1@inter.net.il 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:68465 Archived-At: > Date: Thu, 13 Dec 2012 11:29:34 +0100 > From: martin rudalics > CC: Drew Adams , 13154@debbugs.gnu.org > > IIUC the only useful lines in the backtrace are > > run_window_configuration_change_hook at C:\emacs\trunk\src/window.c:3105 > Fset_window_configuration at C:\emacs\trunk\src/window.c:5867 > ... > temp_output_buffer_show at C:\emacs\trunk\src/window.c:3374 > > so the obvious first conclusion is that moving code from C to Elisp > harms interpreting stuff like emacs_backtrace.txt ;-) > > From the backtrace I understand that Drew did show a temporary buffer > and (probably after being done with that) restored a previous window > configuration. This could come from a `with-output-to-temp-buffer' > wrapped in a `save-window-excursion', which as we know is evil but > usually not evil enough to corrupt the stack. Drew, does this allow to identify potential villains? We are looking for some code that runs inside the above 2 forms. > `set-window-configuration' runs `window-configuration-change-hook' which > is normal. There might be some function on the hook (like those from > linum.el) but I doubt that Drew uses that. And I doubt that anything > done here can corrupt the stack. Corrupted stack is not the issue. AFAIU, we are looking for some C code which doesn't balance specbind/record_unwind_protect with the corresponding unbind_to. This code could be executed by some primitive, or some C function called from some primitive, that is invoked from Lisp. The problem is to find that Lisp. I hope Drew will be able to, given the above hints.