From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#22818: 25.1.1 Emacs.app crash ns_compute_glyph_string_overhangs Date: Sat, 19 Nov 2016 15:51:12 +0000 Message-ID: <20161119155112.GB591@breton.holly.idiocy.org> References: <83twb4aqwp.fsf@gnu.org> <20161119100703.GA66661@breton.holly.idiocy.org> <83k2bzbw8g.fsf@gnu.org> <20161119111823.GA66770@breton.holly.idiocy.org> <83inrjbsq2.fsf@gnu.org> <20161119145336.GA591@breton.holly.idiocy.org> <83d1hrbj71.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1479570734 26052 195.159.176.226 (19 Nov 2016 15:52:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 19 Nov 2016 15:52:14 +0000 (UTC) User-Agent: Mutt/1.7.0 (2016-08-17) Cc: 22818@debbugs.gnu.org, josh@berdine.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 19 16:52:09 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c87w1-0005t4-Cf for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Nov 2016 16:52:09 +0100 Original-Received: from localhost ([::1]:41863 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c87w4-00057i-SV for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Nov 2016 10:52:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c87vx-00057Z-5d for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2016 10:52:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c87vu-0001Vp-2k for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2016 10:52:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48113) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c87vt-0001Vl-UU for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2016 10:52:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c87vt-0005dj-LT for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2016 10:52:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Nov 2016 15:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22818 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible Original-Received: via spool by 22818-submit@debbugs.gnu.org id=B22818.147957068221624 (code B ref 22818); Sat, 19 Nov 2016 15:52:01 +0000 Original-Received: (at 22818) by debbugs.gnu.org; 19 Nov 2016 15:51:22 +0000 Original-Received: from localhost ([127.0.0.1]:35279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c87vG-0005cg-EH for submit@debbugs.gnu.org; Sat, 19 Nov 2016 10:51:22 -0500 Original-Received: from mail-wj0-f173.google.com ([209.85.210.173]:34864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c87vE-0005cQ-SF for 22818@debbugs.gnu.org; Sat, 19 Nov 2016 10:51:21 -0500 Original-Received: by mail-wj0-f173.google.com with SMTP id v7so8384118wjy.2 for <22818@debbugs.gnu.org>; Sat, 19 Nov 2016 07:51:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=godURiKD9Scnv417rRVwwo/OCaixVjHmhVG+hd7gzoU=; b=f7lPfB+1sFdlrYoCqqGSWyw8TSq/IfCNajIVF/K+R/FUw5v4nCxUs8XN5j7j1i0u8g TEI7GMX9PRQhA63flbHFZxzz5oX/4qj8TC/xI+J2mDQcQd7HUnCnygJ9bvvhif8953hi opEz5OFhhlz02GTeAMtANSRADaheXPg5GtvNEW9fJ2vlztCr/w4yvagTmV5oajleEpLj BIzGaSGB6F2GA4BC4cVFIigkb8+5wrWPJFd1MY6HuqIrUlUkycugyukW8SwxGGx1OblD mbhJSxUjkYGrIAs/kX+MuRxMpzi5f8dLDR3lPRw15eV3of8aIMEFrgH1jOzIcfePZ9vD ZQFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=godURiKD9Scnv417rRVwwo/OCaixVjHmhVG+hd7gzoU=; b=O2BVD9u9sJ32toOXr3OGXU8e8mWpIiCVKKcF57ylU7GSUIRh4jLw6O+XrOelhBKPjF mEsqUji2T8h+DQ2ZJZ8Nl2zY34FibBEKHWpkaIRtn0jWm0tmZF+B2i7i5m5DsMXYMKQF IGFhwrPicmIL/QwtP+AmEgMC+/fYk1giUKxqwTSMzXAqv42nzlPY1EdsWJtKD4eMe5+O A7XIOoyNXqETAr2ZNMlFMQBTbG/RiK9tvdbO3YU9a2IKrHcH04NlMm1YXUB0sSRtJchs jjjThwxUvnwFtx+b+46aF8ZSU9KxfnviShEpUZhq3XUyTjWvzkyOmfbU2L1KXas1Y2cA oTVA== X-Gm-Message-State: AKaTC01HG6c9BBu/iXQZZrYMYXk2EFjzSRL1DYudUwb2EEAFN9sZIEuiIHmATuPLDx1kBQ== X-Received: by 10.194.121.6 with SMTP id lg6mr3813178wjb.105.1479570674960; Sat, 19 Nov 2016 07:51:14 -0800 (PST) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-6c02-5eab-bb15-1042.holly.idiocy.org. [2001:8b0:3f8:8129:6c02:5eab:bb15:1042]) by smtp.gmail.com with ESMTPSA id d65sm9342134wmh.11.2016.11.19.07.51.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Nov 2016 07:51:14 -0800 (PST) Content-Disposition: inline In-Reply-To: <83d1hrbj71.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:125876 Archived-At: On Sat, Nov 19, 2016 at 05:09:06PM +0200, Eli Zaretskii wrote: > > Date: Sat, 19 Nov 2016 14:53:36 +0000 > > From: Alan Third > > Cc: josh@berdine.net, 22818@debbugs.gnu.org > > > > (gdb) p s->face.id > > $2 = 17 > > (gdb) p lface_id_to_name[17] > > $3 = 31008 > > (gdb) xsymbol(lface_id_to_name[17]) > > $4 = (struct Lisp_Symbol *) 0x7ab8 > > Cannot access memory at address 0x7ac0 > > > > am I doing this wrong? > > The last command should be simply "xsymbol". Those x* commands are > defined such that they always operate on the last result printed by > GDB. Thanks, unfortunately it doesn’t look any different. I’ll paste my whole gdb session in in case you can see me doing something stupid. breton:/Users/alan/src/emacs/emacs-25/src>gdb ../nextstep/Emacs.app/Contents/MacOS/Emacs GNU gdb (GDB) 7.12 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-apple-darwin16.1.0". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ../nextstep/Emacs.app/Contents/MacOS/Emacs...done. SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY = /private/tmp/com.apple.launchd.U7C5wbWrEt/org.macosforge.xquartz:0 TERM = xterm-256color Breakpoint 1 at 0x100130a42: file emacs.c, line 354. Temporary breakpoint 2 at 0x10015d86f: file sysdep.c, line 915. (gdb) run -Q ~/test-file Starting program: /Users/alan/src/emacs/emacs-25/nextstep/Emacs.app/Contents/MacOS/Emacs -Q ~/test-file [New Thread 0x1403 of process 716] warning: unhandled dyld version (15) [New Thread 0x1207 of process 716] [New Thread 0x1503 of process 716] [New Thread 0x1603 of process 716] [New Thread 0x1703 of process 716] [New Thread 0x1803 of process 716] [New Thread 0x1903 of process 716] [New Thread 0x1a03 of process 716] [New Thread 0x1b03 of process 716] Thread 2 received signal SIGSEGV, Segmentation fault. 0x00000001002c0940 in ns_compute_glyph_string_overhangs (s=0x7fff5fbfb780) at nsterm.m:2681 2681 if (EQ (font->driver->type, Qns)) (gdb) p s->face.id $1 = 17 (gdb) p lface_id_to_name[17] $2 = 31008 (gdb) xsymbol $3 = (struct Lisp_Symbol *) 0x7ab8 Cannot access memory at address 0x7ac0 (gdb) I’ve tried building with CFLAGS set to: -g -g3 -gmodules and gcc on OS X is actually CLang. -- Alan Third