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#17771: 24.3.91; SIGSEGV in cleanup_vector Date: Mon, 16 Jun 2014 12:02:21 +0400 Message-ID: <539EA48D.4050802@yandex.ru> References: <874mzp896b.fsf@rosalinde.fritz.box> <83vbs5w3h7.fsf@gnu.org> <87zjhh6su4.fsf@rosalinde.fritz.box> <83tx7pvw61.fsf@gnu.org> <87ppid6l0x.fsf@rosalinde.fritz.box> <83ppidvsyx.fsf@gnu.org> <87lht16ii3.fsf@rosalinde.fritz.box> <83mwdgx6t4.fsf@gnu.org> <87ha3o7w68.fsf@rosalinde.fritz.box> <83lht0x65z.fsf@gnu.org> <87d2ec7v8p.fsf@rosalinde.fritz.box> <83fvj8x3o9.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070500040909050202010404" X-Trace: ger.gmane.org 1402905807 30202 80.91.229.3 (16 Jun 2014 08:03:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Jun 2014 08:03:27 +0000 (UTC) Cc: 17771@debbugs.gnu.org To: Eli Zaretskii , Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 16 10:03:22 2014 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 1WwRsv-0000ue-2Y for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jun 2014 10:03:21 +0200 Original-Received: from localhost ([::1]:42100 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwRsu-0001XH-Mb for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jun 2014 04:03:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwRsk-0001Vv-6V for bug-gnu-emacs@gnu.org; Mon, 16 Jun 2014 04:03:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwRsd-0000tO-5l for bug-gnu-emacs@gnu.org; Mon, 16 Jun 2014 04:03:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwRsd-0000tE-37 for bug-gnu-emacs@gnu.org; Mon, 16 Jun 2014 04:03:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WwRsc-0001jR-Fe for bug-gnu-emacs@gnu.org; Mon, 16 Jun 2014 04:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Jun 2014 08:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17771 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17771-submit@debbugs.gnu.org id=B17771.14029057536620 (code B ref 17771); Mon, 16 Jun 2014 08:03:02 +0000 Original-Received: (at 17771) by debbugs.gnu.org; 16 Jun 2014 08:02:33 +0000 Original-Received: from localhost ([127.0.0.1]:48705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WwRs8-0001ii-B8 for submit@debbugs.gnu.org; Mon, 16 Jun 2014 04:02:32 -0400 Original-Received: from forward4l.mail.yandex.net ([84.201.143.137]:57797) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WwRs5-0001iR-Lt for 17771@debbugs.gnu.org; Mon, 16 Jun 2014 04:02:31 -0400 Original-Received: from smtp9.mail.yandex.net (smtp9.mail.yandex.net [77.88.61.35]) by forward4l.mail.yandex.net (Yandex) with ESMTP id F078A1441879; Mon, 16 Jun 2014 12:02:22 +0400 (MSK) Original-Received: from smtp9.mail.yandex.net (localhost [127.0.0.1]) by smtp9.mail.yandex.net (Yandex) with ESMTP id 849B6152042A; Mon, 16 Jun 2014 12:02:22 +0400 (MSK) Original-Received: from unknown (unknown [37.139.80.10]) by smtp9.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id AuQxhXBleC-2M3qO8UM; Mon, 16 Jun 2014 12:02:22 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 81e4e76b-934c-4218-b9ce-5d7c4e3571aa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1402905742; bh=5QBrLXGoQ3JlVA9xgZKOEWTx0Ozn9EzxtraSm0uGJbs=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type; b=iK73ygWgcOF3JqcfR5ad/zT4y88zZ8t6sXkEIs/XRz+4BcOOMzNsGRSnlMsjh30nY fNxW32yjv/XbmObW5CKs7AgdYVOXsxOTbY7BRfg8Us/rxlvRn1K/hgXtNSjMvKoZd7 Ttou0Ezh9F1LW+F3GWqV5Z81we+slFAbnPB54yxA= Authentication-Results: smtp9.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: <83fvj8x3o9.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:90425 Archived-At: This is a multi-part message in MIME format. --------------070500040909050202010404 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 06/13/2014 06:52 PM, Eli Zaretskii wrote: > So Dmitry, I think Stephen here just found you a perfect recipe to > reproduce bug #16140, something that I failed to do. Could you please > look into this? Reproduced. My machine looks much faster so I'm not sure it's always possible to hit C-g in time; anyway, this simple fix just works for me. Dmitry --------------070500040909050202010404 Content-Type: text/x-patch; name="bug17771.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bug17771.patch" === modified file 'src/font.c' --- src/font.c 2014-06-10 03:32:36 +0000 +++ src/font.c 2014-06-16 07:55:14 +0000 @@ -158,6 +158,7 @@ Lisp_Object tail, frame; struct font_driver_list *fdl; + eassert (drv); for (fdl = font_driver_list; fdl; fdl = fdl->next) if (fdl->driver == drv) return true; @@ -219,6 +220,9 @@ } if (size > 0) font->props[FONT_SIZE_INDEX] = make_number (pixelsize); + /* NULL means that this font is not allocated by any driver yet, + and GC may be called before the driver is assigned (#Bug17771). */ + font->driver = NULL; return font_object; } --------------070500040909050202010404--