Subject: bug#18161: 24.3.92; Crash in do_switch_frame

From: Mat Smiglarski <[email-masked]>
Date: Sat, 02 Aug 2014 18:40:59 +0100

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 <FRAMEP+29>
         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)