emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hard bug caused by window management code?


From: Dmitry Antipov
Subject: Re: Hard bug caused by window management code?
Date: Wed, 27 Mar 2013 14:39:40 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4

On 03/27/2013 02:02 PM, martin rudalics wrote:

 >> It seems to hang in `set-window-configuration'.

Could you confirm that?

There might be more than one reason. After installing simple check in 
src/window.c:

@@ -3488,6 +3488,10 @@
   struct window *w = decode_valid_window (window);

   CHECK_NUMBER (size);
+
+  if (XINT (size) > 100000)
+    emacs_abort ();
+
   if (NILP (add))
     wset_new_total (w, size);
   else

I'm seeing:

(gdb) bt
#0  emacs_abort () at sysdep.c:2152
#1  0x0000000000482eb1 in Fset_window_new_total (window=18673781, 
size=12607040, add=12519810) at window.c:3493
#2  0x00000000005add37 in Ffuncall (nargs=4, args=0x7fffffffc348) at eval.c:2785
#3  0x00000000005f47d9 in exec_byte_code (bytestr=9362689, vector=9362725, 
maxdepth=36, args_template=12519762, nargs=0, args=0x0)
    at bytecode.c:900
#4  0x00000000005ae6e1 in funcall_lambda (fun=9362541, nargs=5, 
arg_vector=0x7fffffffc850) at eval.c:3010
#5  0x00000000005aded9 in Ffuncall (nargs=6, args=0x7fffffffc848) at eval.c:2827
#6  0x00000000005f47d9 in exec_byte_code (bytestr=9363137, vector=9363173, 
maxdepth=40, args_template=12519762, nargs=0, args=0x0)
    at bytecode.c:900
#7  0x00000000005ae6e1 in funcall_lambda (fun=9363085, nargs=2, 
arg_vector=0x7fffffffcd78) at eval.c:3010
#8  0x00000000005aded9 in Ffuncall (nargs=3, args=0x7fffffffcd70) at eval.c:2827
#9  0x00000000005ad6cf in call2 (fn=12733826, arg1=18673781, arg2=12607040) at 
eval.c:2587
#10 0x0000000000484892 in shrink_mini_window (w=0x11fc350) at window.c:4235
#11 0x000000000043ecb7 in resize_mini_window (w=0x11fc350, exact_p=1) at 
xdisp.c:10441
#12 0x000000000043e6b7 in resize_mini_window_1 (a1=18858832, exactly=12519810, 
a3=0, a4=0) at xdisp.c:10325
#13 0x000000000043de2c in with_echo_area_buffer (w=0x11fc350, which=0, fn=0x43e678 
<resize_mini_window_1>, a1=18858832, a2=12519810,
    a3=0, a4=0) at xdisp.c:10062
#14 0x000000000043e64a in resize_echo_area_exactly () at xdisp.c:10302
#15 0x0000000000513cc4 in command_loop_1 () at keyboard.c:1374
#16 0x00000000005aaadd in internal_condition_case (bfun=0x513bd8 <command_loop_1>, 
handlers=12571394, hfun=0x5134c9 <cmd_error>)
    at eval.c:1289
#17 0x00000000005138f4 in command_loop_2 (ignore=12519762) at keyboard.c:1168
#18 0x00000000005aa4ba in internal_catch (tag=12567234, func=0x5138ce 
<command_loop_2>, arg=12519762) at eval.c:1060
#19 0x00000000005138a2 in command_loop () at keyboard.c:1147
#20 0x0000000000513019 in recursive_edit_1 () at keyboard.c:779
#21 0x00000000005131bc in Frecursive_edit () at keyboard.c:843
#22 0x000000000051106d in main (argc=6, argv=0x7fffffffe348) at emacs.c:1528

Lisp Backtrace:
"set-window-new-total" (0xffffc350)
"window--resize-this-window" (0xffffc850)
"window--resize-root-window-vertically" (0xffffcd78)

Dmitry




reply via email to

[Prev in Thread] Current Thread [Next in Thread]