From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mat Smiglarski Newsgroups: gmane.emacs.bugs Subject: bug#18161: 24.3.92; Crash in do_switch_frame Date: Sat, 02 Aug 2014 20:00:16 +0100 Message-ID: <671ccde53445ec2560fd5e466354cef5@SDF.ORG> References: " " <53DB2451.2080501@yandex.ru> <427651a8c5027f8296b75a83324565ca@SDF.ORG> <53DD1E73.4050102@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1407006087 31004 80.91.229.3 (2 Aug 2014 19:01:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Aug 2014 19:01:27 +0000 (UTC) Cc: Dmitry Antipov , 18161@debbugs.gnu.org To: Mat Smiglarski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 02 21:01:20 2014 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 1XDeYR-0002Pf-46 for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Aug 2014 21:01:19 +0200 Original-Received: from localhost ([::1]:45623 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDeYQ-0007qh-Qc for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Aug 2014 15:01:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDeYG-0007gy-SE for bug-gnu-emacs@gnu.org; Sat, 02 Aug 2014 15:01:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDeYA-0002jp-N1 for bug-gnu-emacs@gnu.org; Sat, 02 Aug 2014 15:01:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48261) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDeYA-0002jl-JJ for bug-gnu-emacs@gnu.org; Sat, 02 Aug 2014 15:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XDeY9-0004rL-Tc for bug-gnu-emacs@gnu.org; Sat, 02 Aug 2014 15:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mat Smiglarski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Aug 2014 19:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18161 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18161-submit@debbugs.gnu.org id=B18161.140700604218641 (code B ref 18161); Sat, 02 Aug 2014 19:01:01 +0000 Original-Received: (at 18161) by debbugs.gnu.org; 2 Aug 2014 19:00:42 +0000 Original-Received: from localhost ([127.0.0.1]:55204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XDeXp-0004qW-Jc for submit@debbugs.gnu.org; Sat, 02 Aug 2014 15:00:42 -0400 Original-Received: from mx.sdf.org ([192.94.73.24]:64248 helo=sdf.lonestar.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XDeXj-0004qJ-R3 for 18161@debbugs.gnu.org; Sat, 02 Aug 2014 15:00:38 -0400 Original-Received: from wm.sdf.org (mx.sdf.org [192.94.73.24]) by sdf.lonestar.org (8.14.8/8.14.5) with ESMTP id s72J0GLc006036; Sat, 2 Aug 2014 19:00:16 GMT In-Reply-To: X-Sender: penthief@SDF.ORG User-Agent: Roundcube Webmail/1.0.1 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:92054 Archived-At: Here is a similar segfault but without the winner-mode dependency. `crash-frames' is analogous to `winner-modified-list'. 1. Start emacs $ emacs -Q 2. Type the following into the scratch buffer: (defvar crash-frame-list nil) (defun debug-hook-post-command () (dolist (frame crash-frame-list) (print (frame-parameters frame) #'external-debugging-output))) (defun debug-hook-window-configuration-change () (push (selected-frame) crash-frame-list)) (add-hook 'post-command-hook 'debug-hook-post-command) (add-hook 'window-configuration-change-hook 'debug-hook-window-configuration-change) (make-frame '((left . unbound-symbol))) 3. M-x eval-buffer A segfault now occurs with the following trace (gdb) set args -Q (gdb) r The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /home/zz/src/emacs/src/emacs -Q [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffeb5f3700 (LWP 3426)] [New Thread 0x7fffea56c700 (LWP 3427)] [New Thread 0x7fffe9d1b700 (LWP 3428)] Program received signal SIGSEGV, Segmentation fault. 0x0000000000428cc4 in x_report_frame_params (f=0x1273ad8, alistptr=0x7fffffffd510) at frame.c:3142 (gdb) bt full 3 #0 0x0000000000428cc4 in x_report_frame_params (f=0x1273ad8, alistptr=0x7fffffffd510) at frame.c:3142 tem = 0 w = 12837042 buf = "\302\232\306\000\000\000\000\000\020\325\377\377\377\177\000\000~\325S\000" #1 0x0000000000426abc in Fframe_parameters (frame=19348189) at frame.c:2231 alist = 16730822 f = 0x1273ad8 height = 35 width = 80 gcpro1 = { next = 0xff4ac6, var = 0x5dca93 , nvars = 9295184 } #2 0x00000000005d7f34 in eval_sub (form=16694998) at eval.c:2185 numargs = 4 args_left = 12837042 i = 1 maxargs = 1 argvals = {19348189, 140737488344624, 12837042, 12837042, 140737488344672, 6146707, 12229408, 16694934} fun = 9295189 val = 0 original_fun = 13020274 original_args = 16694950 funcar = 2 gcpro1 = { next = 0x1273add, var = 0x7fffffffd630, nvars = 12837042 } gcpro2 = { next = 0x1273add, var = 0x7fffffffd630, nvars = 12837042 } gcpro3 = { next = 0x7fffffffd600, var = 0x7fffffffd610, nvars = 1 } (More stack frames follow...) Lisp Backtrace: "frame-parameters" (0xffffd610) "print" (0xffffd6a0) "while" (0xffffd860) "let" (0xffffdaa0) "debug-hook-post-command" (0xffffdcf0) On 2014-08-02 18:40, Mat Smiglarski wrote: > On 2014-08-02 18:22, Dmitry Antipov wrote: >> On 08/02/2014 07:05 PM, Mat Smiglarski wrote: >> >>> Lisp Backtrace: >>> "select-frame" (0xffffd9c0) >>> "winner-configuration" (0xffffdb60) >>> "winner-insert-if-new" (0xffffdd20) >>> "winner-save-old-configurations" (0xffffdec0) >> >> OK. So the problem is caused by winner-mode. Since this bug's >> "Recent input" >> isn't too informative, I should ask about how you're running >> winner-mode. >> Do you have it enabled in your .emacs? > > Here is my .emacs and this should be enough to reproduce the segfault > at startup. > > (winner-mode) > (make-frame '((left . unbound-symbol))) > > Here is a better backtrace: > > (gdb) bt full 4 > #0 0x000000000051b898 in x_get_focus_frame (frame=0x12639d8) at > xfns.c:3326 > dpyinfo = 0x53d676 > xfocus = 19282397 > #1 0x0000000000423dab in do_switch_frame (frame=19282397, track=1, > for_deletion=0, > norecord=16355938) at frame.c:839 > focus = 9294128 > xfocus = 42959566609 > sf = 0x11f32d8 > #2 0x0000000000424052 in Fselect_frame (frame=19282397, > norecord=16355938) at frame.c:913 > No locals. > #3 0x00000000005d93a1 in Ffuncall (nargs=3, args=0x7fffffffce08) at > eval.c:2818 > fun = 9294133 > original_fun = 13019330 > funcar = 6136289 > numargs = 2 > lisp_numargs = 140737488342512 > val = 140737488342480 > internal_args = 0x7fffffffce10 > i = 5495648 > (More stack frames follow...) > > Lisp Backtrace: > "select-frame" (0xffffce10) > "winner-configuration" (0xffffd300) > "winner-insert-if-new" (0xffffd810) > "winner-save-old-configurations" (0xffffdd00)