all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Antipov <dmantipov@yandex.ru>
To: martin rudalics <rudalics@gmx.at>
Cc: Eli Zaretskii <eliz@gnu.org>,
	Emacs development discussions <emacs-devel@gnu.org>
Subject: Re: Hard bug caused by window management code?
Date: Wed, 27 Mar 2013 14:39:40 +0400	[thread overview]
Message-ID: <5152CC6C.6030302@yandex.ru> (raw)
In-Reply-To: <5152C3CC.8050500@gmx.at>

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	other threads:[~2013-03-27 10:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-27  6:11 Hard bug caused by window management code? Dmitry Antipov
2013-03-27  7:07 ` Eli Zaretskii
2013-03-27  7:23 ` martin rudalics
2013-03-27  9:26   ` Dmitry Antipov
2013-03-27 10:02     ` martin rudalics
2013-03-27 10:39       ` Dmitry Antipov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5152CC6C.6030302@yandex.ru \
    --to=dmantipov@yandex.ru \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.