From: Dmitry Antipov <dmantipov@yandex.ru>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 12839@debbugs.gnu.org
Subject: bug#12839: 24.3.50; Emacs aborts in GC
Date: Fri, 09 Nov 2012 17:27:54 +0400 [thread overview]
Message-ID: <509D04DA.7040109@yandex.ru> (raw)
In-Reply-To: <509D0266.807@yandex.ru>
On 11/09/2012 05:17 PM, Dmitry Antipov wrote:
> On 11/09/2012 11:24 AM, Eli Zaretskii wrote:
>
>> I'd be happy to try debugging this myself, but I need guidance
>> regarding some basics of what you changed recently in this area.
>> Alternatively, tell me what to do in GDB, and I will post the results.
>> I'm quite fluent with GDB, and reproducing this is extremely easy :-(.
>
> Try this:
And this, too:
=== modified file 'src/w32term.c'
--- src/w32term.c 2012-10-08 13:46:03 +0000
+++ src/w32term.c 2012-11-09 13:25:41 +0000
@@ -3626,7 +3626,7 @@
HWND hwnd;
SCROLLINFO si;
struct scroll_bar *bar
- = XSCROLL_BAR (Fmake_vector (make_number (SCROLL_BAR_VEC_SIZE), Qnil));
+ = XSCROLL_BAR (Fmake_vector (make_number (VECSIZE (struct scroll_bar))), Qnil);
Lisp_Object barobj;
block_input ();
=== modified file 'src/w32term.h'
--- src/w32term.h 2012-10-17 19:02:44 +0000
+++ src/w32term.h 2012-11-09 13:25:39 +0000
@@ -460,12 +460,6 @@
Lisp_Object fringe_extended_p;
};
-/* The number of elements a vector holding a struct scroll_bar needs. */
-#define SCROLL_BAR_VEC_SIZE \
- ((sizeof (struct scroll_bar) \
- - sizeof (EMACS_INT) - sizeof (struct Lisp_Vector *)) \
- / word_size)
-
/* Turning a lisp vector value into a pointer to a struct scroll_bar. */
#define XSCROLL_BAR(vec) ((struct scroll_bar *) XVECTOR (vec))
Dmitry
next prev parent reply other threads:[~2012-11-09 13:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-08 17:12 bug#12839: 24.3.50; Emacs aborts in GC Eli Zaretskii
2012-11-08 22:05 ` Eli Zaretskii
2012-11-09 3:40 ` Dmitry Antipov
2012-11-09 7:24 ` Eli Zaretskii
2012-11-09 8:56 ` Eli Zaretskii
2012-11-09 12:44 ` Dmitry Antipov
2012-11-09 14:47 ` Eli Zaretskii
2012-11-09 13:17 ` Dmitry Antipov
2012-11-09 13:27 ` Dmitry Antipov [this message]
2012-11-09 14:16 ` Eli Zaretskii
2012-11-09 14:46 ` Dmitry Antipov
2012-11-09 14:53 ` Eli Zaretskii
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=509D04DA.7040109@yandex.ru \
--to=dmantipov@yandex.ru \
--cc=12839@debbugs.gnu.org \
--cc=eliz@gnu.org \
/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.