From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.bugs Subject: bug#12839: 24.3.50; Emacs aborts in GC Date: Fri, 09 Nov 2012 17:27:54 +0400 Message-ID: <509D04DA.7040109@yandex.ru> References: <83625g10jw.fsf@gnu.org> <83zk2rzr6f.fsf@gnu.org> <509C7B1A.2070009@yandex.ru> <83vcdfz1b9.fsf@gnu.org> <509D0266.807@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1352467738 31518 80.91.229.3 (9 Nov 2012 13:28:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2012 13:28:58 +0000 (UTC) Cc: 12839@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 09 14:29:07 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TWodt-0004TC-HR for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Nov 2012 14:29:05 +0100 Original-Received: from localhost ([::1]:50415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWodh-0001oO-Ae for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Nov 2012 08:28:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWocp-0007Lj-5d for bug-gnu-emacs@gnu.org; Fri, 09 Nov 2012 08:28:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWocl-0002nL-0Z for bug-gnu-emacs@gnu.org; Fri, 09 Nov 2012 08:27:59 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWock-0002nG-TN for bug-gnu-emacs@gnu.org; Fri, 09 Nov 2012 08:27:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TWocr-0000GR-O9 for bug-gnu-emacs@gnu.org; Fri, 09 Nov 2012 08:28:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Antipov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Nov 2012 13:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12839 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12839-submit@debbugs.gnu.org id=B12839.13524676731000 (code B ref 12839); Fri, 09 Nov 2012 13:28:01 +0000 Original-Received: (at 12839) by debbugs.gnu.org; 9 Nov 2012 13:27:53 +0000 Original-Received: from localhost ([127.0.0.1]:57261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TWoci-0000G3-AK for submit@debbugs.gnu.org; Fri, 09 Nov 2012 08:27:53 -0500 Original-Received: from forward1h.mail.yandex.net ([84.201.187.146]:60732) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TWoce-0000Ft-7c for 12839@debbugs.gnu.org; Fri, 09 Nov 2012 08:27:50 -0500 Original-Received: from smtp2h.mail.yandex.net (smtp2h.mail.yandex.net [84.201.187.145]) by forward1h.mail.yandex.net (Yandex) with ESMTP id B3C879E08AE; Fri, 9 Nov 2012 17:27:38 +0400 (MSK) Original-Received: from smtp2h.mail.yandex.net (localhost [127.0.0.1]) by smtp2h.mail.yandex.net (Yandex) with ESMTP id 77BE017002EA; Fri, 9 Nov 2012 17:27:38 +0400 (MSK) Original-Received: from unknown (unknown [37.139.80.10]) by smtp2h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Rcs4NeDw-Rcs482Mt; Fri, 9 Nov 2012 17:27:38 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1352467658; bh=Lds9gd1pAgfi1X111mT7demWLG65iVOOeJCXacN9ULM=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=aAXx+UEUMYdSbU3oZk9S5/lJSKCx/Z2BCcLNcr61vLm3f1jDyMA68XFkxRFMdpLDj VmJTjHaVm0ecLs8sFX9e5TE+ZsxkAR4I6OgaoCsCTmhrYYD+NxaHy4RvnToFWFiV6R i2rKoxmdiAvCdqV1EpPhj4n+IKY1Z1vFzloUfQss= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 In-Reply-To: <509D0266.807@yandex.ru> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66680 Archived-At: 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