From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Marshall, Simon" Newsgroups: gmane.emacs.bugs Subject: bug#3659: FW: 23.0.95; crash on set-frame-font Date: Fri, 24 Jul 2009 09:31:08 +0100 Message-ID: <63C2A154B1708946B60726AFDBA00AC00676D571@ukmailemea01.misys.global.ad> References: <63C2A154B1708946B60726AFDBA00AC005E5EC5A@ukmailemea01.misys.global.ad><87iqinxbs7.fsf@stupidchicken.com><63C2A154B1708946B60726AFDBA00AC005EABBA6@ukmailemea01.misys.global.ad><87fxdp4ssu.fsf@stupidchicken.com> <87eit9ugs9.fsf@stupidchicken.com> <63C2A154B1708946B60726AFDBA00AC00628E9C2@ukmailemea01.misys.global.ad><87y6qyeykd.fsf@stupidchicken.com><63C2A154B1708946B60726AFDBA00AC0066199FB@ukmailemea01.misys.global.ad> <87ljmgkeev.fsf@cyd.mit.edu> <63C2A154B1708946B60726AFDBA00AC006680307@ukmailemea01.misys.global.ad> <63C2A154B1708946B60726AFDBA00AC00668060C@ukmailemea01.misys.global.ad> Reply-To: "Marshall, Simon" , 3659@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1248425873 32340 80.91.229.12 (24 Jul 2009 08:57:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jul 2009 08:57:53 +0000 (UTC) Cc: cyd@stupidchicken.com, 3659@emacsbugs.donarmstrong.com To: "Kenichi Handa" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 24 10:57:46 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MUGb1-0003he-U4 for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Jul 2009 10:57:45 +0200 Original-Received: from localhost ([127.0.0.1]:42243 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MUGb1-0007oQ-EQ for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Jul 2009 04:57:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MUGav-0007oH-S5 for bug-gnu-emacs@gnu.org; Fri, 24 Jul 2009 04:57:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MUGar-0007nx-OJ for bug-gnu-emacs@gnu.org; Fri, 24 Jul 2009 04:57:37 -0400 Original-Received: from [199.232.76.173] (port=34235 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MUGar-0007ns-Lt for bug-gnu-emacs@gnu.org; Fri, 24 Jul 2009 04:57:33 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40357) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MUGar-0007hS-1H for bug-gnu-emacs@gnu.org; Fri, 24 Jul 2009 04:57:33 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6O8vUV0016292; Fri, 24 Jul 2009 01:57:30 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n6O8e5ji013356; Fri, 24 Jul 2009 01:40:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Marshall, Simon" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 24 Jul 2009 08:40:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3659 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3659-submit@emacsbugs.donarmstrong.com id=B3659.124842432012360 (code B ref 3659); Fri, 24 Jul 2009 08:40:05 +0000 Original-Received: (at 3659) by emacsbugs.donarmstrong.com; 24 Jul 2009 08:32:00 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from cluster-a.mailcontrol.com (cluster-a.mailcontrol.com [85.115.52.190]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6O8VrZM012354 for <3659@emacsbugs.donarmstrong.com>; Fri, 24 Jul 2009 01:31:55 -0700 Original-Received: from rly10a.srv.mailcontrol.com (localhost.localdomain [127.0.0.1]) by rly10a.srv.mailcontrol.com (MailControl) with ESMTP id n6O8VTi2018147 for <3659@emacsbugs.donarmstrong.com>; Fri, 24 Jul 2009 09:31:50 +0100 Original-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by rly10a.srv.mailcontrol.com (MailControl) id n6O8VCNb015319 for <3659@emacsbugs.donarmstrong.com>; Fri, 24 Jul 2009 09:31:12 +0100 Original-Received: from ukmailemea01.misys.global.ad ([195.81.243.15]) by rly10a-eth0.srv.mailcontrol.com (envelope-sender ) (MIMEDefang) with ESMTP id n6O8V5rQ013969; Fri, 24 Jul 2009 09:31:12 +0100 (BST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: FW: 23.0.95; crash on set-frame-font Thread-Index: AcoL+y8kcLIkk7BeS8ahAO7szEm4CgAOotLQ X-Scanned-By: MailControl A-09-20-00 (www.mailcontrol.com) on 10.65.1.120 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 24 Jul 2009 04:57:37 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29605 Archived-At: With a CFLAGS=3D-g version of yesterday's trunk, the crash happens in a different place (it aborts semi-cleanly). This is true of the 2009-05-20 version as well: risksun2 134> gdb ./emacs GNU gdb 6.7.1 Copyright (C) 2007 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 "sparc-sun-solaris2.8"... SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY =3D dtp020071.misys.global.ad:0.0 TERM =3D xterm Breakpoint 1 at 0x1a331c: file emacs.c, line 433. Breakpoint 2 at 0x1d6a9c: file sysdep.c, line 1132. (gdb) r -Q Starting program: /homedev/marshals/ftp/emacs-23.1-pretests/emacs-2009-07-23-g/src/emacs -Q warning: Temporarily disabling breakpoints for unloaded shared library "/usr/lib/ld.so.1" Breakpoint 1, abort () at emacs.c:433 433 kill (getpid (), SIGABRT); (gdb) where #0 abort () at emacs.c:433 #1 0x00280904 in internal_condition_case (bfun=3D0x1a913c , handlers=3D5385361,=20 hfun=3D0x1a85c4 ) at eval.c:1487 #2 0x001a8c24 in command_loop_2 () at keyboard.c:1359 #3 0x002801e0 in internal_catch (tag=3D5378409, func=3D0x1a8bf8 , arg=3D5314561) at eval.c:1248 #4 0x001a8b9c in command_loop () at keyboard.c:1338 #5 0x001a7e54 in recursive_edit_1 () at keyboard.c:953 #6 0x001a8114 in Frecursive_edit () at keyboard.c:1015 #7 0x001a5948 in main (argc=3D2, argv=3D0xffbee394) at emacs.c:1854 (gdb) up #1 0x00280904 in internal_condition_case (bfun=3D0x1a913c , handlers=3D5385361,=20 hfun=3D0x1a85c4 ) at eval.c:1487 1487 abort (); (gdb) list=20 1482 1483 /* Since Fsignal will close off all calls to x_catch_errors, 1484 we will get the wrong results if some are not closed now. */ 1485 #if HAVE_X_WINDOWS 1486 if (x_catching_errors ()) 1487 abort (); 1488 #endif 1489 1490 c.tag =3D Qnil; 1491 c.val =3D Qnil; (gdb)=20 With a CFLAGS=3D"-g -O2" version I do not get a crash anymore. So: -g aborts in 2009-05-22 and 2009-07-23 versions But: -g -O2 crashes in 2009-05-22 and appears ok in 2009-07-23 versions What to do?=20=20 -----Original Message----- From: Kenichi Handa [mailto:handa@m17n.org]=20 Sent: 24 July 2009 02:08 To: Marshall, Simon Cc: cyd@stupidchicken.com; monnier@iro.umontreal.ca; rgm@gnu.org; 3659@emacsbugs.donarmstrong.com Subject: Re: FW: 23.0.95; crash on set-frame-font In article <63C2A154B1708946B60726AFDBA00AC00668060C@ukmailemea01.misys.global.ad>, "Marshall, Simon" writes: > (gdb) p *charset > $1 =3D { > id =3D 1,=20 > hash_index =3D 3678208,=20 > dimension =3D 1073758208,=20 > code_space =3D {1294009101, 8830976, 1, 40, -4271696, 1, -4271232, 0, 0, > 1483848, 805306368,=20 > 15794175, 3737601, 3737601, 1, 4},=20 Ummm, the content of this structure is completely broken, or "charset" points incorrect memory. > (gdb) xcharset charset->id > Attempt to extract a component of a value that is not a structure > pointer. > Was the last cmd wrong? Let me know what else I can do... It's a bug of old .gdbinit, and is now fixed both in the trunk and EMACS_23_1_RC branch. It seems that you are not using the latest emacs code, but as we already found the culprit change, we can debug using the latest code. Please recompile the latest code of the trunk or branch with % make CFLAGS=3D-g clean all When you get segfault with that code, please show me the backtrace again, and the results of these commands. (gdb) up 2 ;; go up to the function xfont_list_pattern (gdb) pp registry (gdb) pp script --- Kenichi Handa handa@m17n.org "Misys" is the trade name for Misys plc (registered in England and Wales). = Registration Number: 01360027. Registered office: One Kingdom Street, Londo= n W2 6BL, United Kingdom. For a list of Misys group operating companies ple= ase go to http://www.misys.com/corp/About_Us/misys_operating_companies.html= . This email and any attachments have been scanned for known viruses using = multiple scanners. This email message is intended for the named recipient o= nly. It may be privileged and/or confidential. If you are not the named rec= ipient of this email please notify us immediately and do not copy it or use= it for any purpose, nor disclose its contents to any other person. This em= ail does not constitute the commencement of legal relations between you and= Misys plc. Please refer to the executed contract between you and the relev= ant member of the Misys group for the identity of the contracting party wit= h which you are dealing.=20