GNU bug report logs - #2193
23.0.90/winxp; crash when closing speedbar

Previous Next

Packages: w32, emacs;

Reported by: lode leroy <lode.leroy <at> gmail.com>

Date: Wed, 4 Feb 2009 13:35:03 UTC

Severity: normal

Done: Jason Rumney <jasonr <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2193 in the body.
You can then email your comments to 2193 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2193; Package emacs. (Wed, 04 Feb 2009 13:35:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to lode leroy <lode.leroy <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 04 Feb 2009 13:35:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: lode leroy <lode.leroy <at> gmail.com>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.90/winxp; crash when closing speedbar
Date: Wed, 4 Feb 2009 14:29:46 +0100
emacs crashes every time I do the following:

go to Options->Show/Hide->speedbar
in the speedbar frame: click modeline->Speedbar->Quit

In GNU Emacs 23.0.90.1 (i386-mingw-nt5.1.2600)
 of 2009-02-01 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'




bug reassigned from package `emacs' to `emacs,w32'. Request was from Juanma Barranquero <lekktu <at> gmail.com> to control <at> emacsbugs.donarmstrong.com. (Wed, 04 Feb 2009 16:50:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com:
bug#2193; Package emacs,w32. (Wed, 04 Feb 2009 18:30:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Eli Zaretskii <eliz <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com. (Wed, 04 Feb 2009 18:30:03 GMT) Full text and rfc822 format available.

Message #12 received at 2193 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: lode leroy <lode.leroy <at> gmail.com>, 2193 <at> debbugs.gnu.org
Subject: Re: bug#2193: 23.0.90/winxp; crash when closing speedbar
Date: Wed, 04 Feb 2009 20:23:15 +0200
> Date: Wed, 4 Feb 2009 14:29:46 +0100
> From: lode leroy <lode.leroy <at> gmail.com>
> Cc: 
> 
> emacs crashes every time I do the following:
> 
> go to Options->Show/Hide->speedbar
> in the speedbar frame: click modeline->Speedbar->Quit

Confirmed.

For those who (unlike myself) have time to look at this, here's the
crash report from DrMinGW:

emacs.exe caused an Access Violation at location 0115f1cf in module emacs.exe Reading from location 00000104.

Registers:
eax=00000000 ebx=02a2b801 ecx=02a2b801 edx=02bcee00 esi=02a2b801 edi=00000002
eip=0115f1cf esp=0082fbf0 ebp=0082fbf8 iopl=0         nv up ei pl zr na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000246

Call stack:
0115F1CF  emacs.exe:0115F1CF  cancel_hourglass  w32fns.c:5283

	...
	   hourglass_hwnd);
	
>	      f->output_data.w32->hourglass_p = 0;
	      SetCursor (f->output_data.w32->current_cursor);
	      hourglass_shown_p = 0;
	...

01052280  emacs.exe:01052280  cancel_hourglass_unwind  keyboard.c:1516

	...
	{
	  cancel_hourglass ();
>	  return Qnil;
	}
	#endif
	...

0100A50A  emacs.exe:0100A50A  unbind_to  eval.c:3429

	...
	    SET_SYMBOL_VALUE (this_binding.symbol, this_binding.old_value);
	  else
>	    set_internal (this_binding.symbol, this_binding.old_value, 0, 1);
	}
	    }
	...

0105F2BF  emacs.exe:0105F2BF  command_loop_1  keyboard.c:1908

	...
	     just because a command in the macro finishes.  */
	  if (NILP (Vexecuting_kbd_macro))
>	            unbind_to (scount, Qnil);
	#endif
	          }
	...

01009FBE  emacs.exe:01009FBE  internal_condition_case  eval.c:1512

	...
	
	  val = (*bfun) ();
>	  catchlist = c.next;
	  handlerlist = h.next;
	  return val;
	...

0105207A  emacs.exe:0105207A  command_loop_2  keyboard.c:1357

	...
	
	  do
>	    val = internal_condition_case (command_loop_1, Qerror, cmd_error);
	  while (!NILP (val));
	
	...

01009EF3  emacs.exe:01009EF3  internal_catch  eval.c:1247

	...
	  /* Call FUNC.  */
	  if (! _setjmp (c.jmp))
>	    c.val = (*func) (arg);
	
	  /* Throw works by a longjmp that comes right here.  */
	...

01051E87  emacs.exe:01051E87  command_loop  keyboard.c:1340

	...
	
	/* End of file in -batch run causes exit here.  */
>	if (noninteractive)
	  Fkill_emacs (Qt);
	      }
	...

01051F20  emacs.exe:01051F20  recursive_edit_1  keyboard.c:952

	...
	
	  val = command_loop ();
>	  if (EQ (val, Qt))
	    Fsignal (Qquit, Qnil);
	  /* Handle throw from read_minibuf when using minibuffer
	...

01052041  emacs.exe:01052041  Frecursive_edit  keyboard.c:1014

	...
	
	  recursive_edit_1 ();
>	  return unbind_to (count, Qnil);
	}
	
	...

01002E47  emacs.exe:01002E47  main  emacs.c:1855

	...
	  /* NOTREACHED */
	  return 0;
>	}
	
	/* Sort the args so we can find the most important ones
	...

0100124B  emacs.exe:0100124B
01001298  emacs.exe:01001298
7C816D4F  kernel32.dll:7C816D4F  RegisterWaitForInputIdle




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com:
bug#2193; Package emacs,w32. (Thu, 05 Feb 2009 18:30:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to martin rudalics <rudalics <at> gmx.at>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com. (Thu, 05 Feb 2009 18:30:05 GMT) Full text and rfc822 format available.

Message #17 received at 2193 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: lode leroy <lode.leroy <at> gmail.com>
Cc: 2193 <at> debbugs.gnu.org
Subject: Re: bug#2193: 23.0.90/winxp; crash when closing speedbar
Date: Thu, 05 Feb 2009 19:20:56 +0100
[Message part 1 (text/plain, inline)]
> emacs crashes every time I do the following:
> 
> go to Options->Show/Hide->speedbar
> in the speedbar frame: click modeline->Speedbar->Quit
> 
> In GNU Emacs 23.0.90.1 (i386-mingw-nt5.1.2600)
>  of 2009-02-01 on SOFT-MJASON
> Windowing system distributor `Microsoft Corp.', version 5.1.2600
> configured using `configure --with-gcc (3.4)'

Could you please try the attached patch?

Thank you, martin.

[w32fns.c.diff (text/plain, inline)]
*** w32fns.c.~1.354.~	2009-01-18 17:29:00.343750000 +0100
--- w32fns.c	2009-02-05 19:17:05.515625000 +0100
***************
*** 5277,5288 ****
  {
    if (hourglass_shown_p)
      {
!       struct frame *f = x_window_to_frame (&one_w32_display_info,
! 					   hourglass_hwnd);
  
-       f->output_data.w32->hourglass_p = 0;
-       SetCursor (f->output_data.w32->current_cursor);
        hourglass_shown_p = 0;
      }
  }
  
--- 5277,5295 ----
  {
    if (hourglass_shown_p)
      {
!       struct frame *f;
! 
!       BLOCK_INPUT;
!       f = x_window_to_frame (&one_w32_display_info, hourglass_hwnd);
! 
!       if (f)
! 	{
! 	  f->output_data.w32->hourglass_p = 0;
! 	  SetCursor (f->output_data.w32->current_cursor);
! 	}
  
        hourglass_shown_p = 0;
+       UNBLOCK_INPUT;
      }
  }
  

Reply sent to Jason Rumney <jasonr <at> gnu.org>:
You have taken responsibility. (Sun, 08 Feb 2009 15:45:04 GMT) Full text and rfc822 format available.

Notification sent to lode leroy <lode.leroy <at> gmail.com>:
bug acknowledged by developer. (Sun, 08 Feb 2009 15:45:05 GMT) Full text and rfc822 format available.

Message #22 received at 2193-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jason Rumney <jasonr <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>, 2193-done <at> debbugs.gnu.org
Cc: lode leroy <lode.leroy <at> gmail.com>
Subject: Re: bug#2193: 23.0.90/winxp; crash when closing speedbar
Date: Sun, 08 Feb 2009 23:36:54 +0800
martin rudalics wrote:
> Could you please try the attached patch?

I installed a more comprehensive patch that does more than just avoid 
the crash, since I don't think we want to keep displaying an hourglass 
in these circumstances.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Mon, 09 Mar 2009 14:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 190 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.