From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#16140: 24.3.50; GC tries to free invalid font objects Date: Fri, 25 Apr 2014 20:31:14 +0200 Message-ID: <87eh0lb6rx.fsf@gnu.org> References: <83vbyrg3qb.fsf@gnu.org> <52AEB30C.7090306@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1398450746 8204 80.91.229.3 (25 Apr 2014 18:32:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Apr 2014 18:32:26 +0000 (UTC) Cc: 16140@debbugs.gnu.org To: Dmitry Antipov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 25 20:32:19 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 1Wdkv4-0003bc-Hx for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Apr 2014 20:32:18 +0200 Original-Received: from localhost ([::1]:59506 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wdkv3-0005i6-Uv for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Apr 2014 14:32:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wdkuv-0005X9-BV for bug-gnu-emacs@gnu.org; Fri, 25 Apr 2014 14:32:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wdkup-0001D6-3a for bug-gnu-emacs@gnu.org; Fri, 25 Apr 2014 14:32:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50668) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wdkuo-0001D2-W6 for bug-gnu-emacs@gnu.org; Fri, 25 Apr 2014 14:32:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wdkuo-0005nd-G7 for bug-gnu-emacs@gnu.org; Fri, 25 Apr 2014 14:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Apr 2014 18:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16140 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 16140-submit@debbugs.gnu.org id=B16140.139845068222222 (code B ref 16140); Fri, 25 Apr 2014 18:32:02 +0000 Original-Received: (at 16140) by debbugs.gnu.org; 25 Apr 2014 18:31:22 +0000 Original-Received: from localhost ([127.0.0.1]:58825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wdku9-0005mL-UN for submit@debbugs.gnu.org; Fri, 25 Apr 2014 14:31:22 -0400 Original-Received: from smtprelay-h21.telenor.se ([195.54.99.196]:33637) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wdku7-0005m3-2c for 16140@debbugs.gnu.org; Fri, 25 Apr 2014 14:31:20 -0400 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id E2F98242E8 for <16140@debbugs.gnu.org>; Fri, 25 Apr 2014 20:31:17 +0200 (CEST) X-SMTPAUTH-B2: [bocjoh] X-SENDER-IP: [85.229.5.96] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: At1DAAqpWlNV5QVgPGdsb2JhbABZgwZPgmuFCr0AgRIXAwEBAQE4NYIlAQEEAScvIwULCw4KCSUPAQQYAQwKGhOILQMJDAHKPheOWQeEOQSOdqAeOw X-IronPort-AV: E=Sophos;i="4.97,928,1389740400"; d="scan'208";a="881887956" Original-Received: from c-6005e555.04-211-6c6b701.cust.bredbandsbolaget.se (HELO muon.localdomain) ([85.229.5.96]) by ipb2.telenor.se with ESMTP; 25 Apr 2014 20:31:17 +0200 Original-Received: by muon.localdomain (Postfix, from userid 1000) id 6A3CA48413E; Fri, 25 Apr 2014 20:31:15 +0200 (CEST) Mail-Copies-To: never In-Reply-To: <52AEB30C.7090306@yandex.ru> (Dmitry Antipov's message of "Mon, 16 Dec 2013 12:00:12 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) 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:88303 Archived-At: Dmitry Antipov writes: > On 12/14/2013 01:51 PM, Eli Zaretskii wrote: > >> When I originally saw this, fnt->driver was NULL. I added protection >> against that, but then it crashed with non-NULL but still invalid >> pointer. Such pointers should never end up in font objects, so how >> come they do? > > Hm...I've tried bloat-font quite a lot with my MinGW build, but didn't > see anything similar. Anyway, r115541 has an extra check for valid > font driver pointer in font objects; if you hit this eassert, please > let me know. #0 0x00007fd1f97cba8b in raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:38 #1 0x0000000000513c76 in terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=2147483647) at emacs.c:382 #2 0x0000000000577794 in die ( msg=msg@entry=0x651d78 "valid_font_driver (((struct font *) vector)->driver)", file=file@entry=0x651580 "alloc.c", line=line@entry=2961) at alloc.c:6953 #3 0x000000000057bd0d in cleanup_vector (vector=0x3b7f650) at alloc.c:2961 #4 0x000000000057bdc6 in sweep_vectors () at alloc.c:3001 #5 0x000000000057d62a in gc_sweep () at alloc.c:6771 #6 Fgarbage_collect () at alloc.c:5678 I have a core file if that is of any help. In GNU Emacs 24.4.50.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars) of 2014-04-13 on muon Repository revision: 116973 monnier@iro.umontreal.ca-20140412193806-72yt4285lm8bf9nj Windowing system distributor `The X.Org Foundation', version 11.0.11405000 System Description: Ubuntu 13.10 Configured using: `configure --enable-checking --enable-asserts' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE XFT ZLIB