From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#15405: 24.3; #[] freezes emacs Date: Wed, 18 Sep 2013 22:26:47 +0300 Message-ID: <83txhilymg.fsf@gnu.org> References: <8361tynp73.fsf@gnu.org> <834n9inoa0.fsf@gnu.org> <871u4mcf2h.fsf@rosalinde.fritz.box> <831u4mnlit.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1379532440 30132 80.91.229.3 (18 Sep 2013 19:27:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Sep 2013 19:27:20 +0000 (UTC) Cc: stephen.berman@gmx.net, 15405@debbugs.gnu.org, sdl.web@gmail.com To: Barry OReilly Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 18 21:27:22 2013 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 1VMNPF-00014s-Jj for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Sep 2013 21:27:21 +0200 Original-Received: from localhost ([::1]:48571 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMNPF-0007Ff-4O for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Sep 2013 15:27:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMNP4-0007FY-CK for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2013 15:27:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMNOx-0000AV-1G for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2013 15:27:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMNOw-00009s-Tv for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2013 15:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VMNOw-0005oc-5I for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2013 15:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Sep 2013 19:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15405 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15405-submit@debbugs.gnu.org id=B15405.137953241622339 (code B ref 15405); Wed, 18 Sep 2013 19:27:02 +0000 Original-Received: (at 15405) by debbugs.gnu.org; 18 Sep 2013 19:26:56 +0000 Original-Received: from localhost ([127.0.0.1]:47284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VMNOp-0005oE-Pk for submit@debbugs.gnu.org; Wed, 18 Sep 2013 15:26:56 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:61325) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VMNOm-0005ny-Rb for 15405@debbugs.gnu.org; Wed, 18 Sep 2013 15:26:53 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MTC00F005RWXK00@a-mtaout20.012.net.il> for 15405@debbugs.gnu.org; Wed, 18 Sep 2013 22:26:47 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MTC00FOT60MN760@a-mtaout20.012.net.il>; Wed, 18 Sep 2013 22:26:47 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il 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:78529 Archived-At: > Date: Wed, 18 Sep 2013 13:31:56 -0400 > From: Barry OReilly > > FWIW, only one M-: #[] is necessary in the reproduction recipe. > > I used: > > diff --git a/src/font.c b/src/font.c > index 68db9f2..0f2d24f 100644 > --- a/src/font.c > +++ b/src/font.c > @@ -2619,6 +2619,12 @@ font_delete_unmatched (Lisp_Object vec, Lisp_Object > spec, int size) > enum font_property_index prop; > int i; > > + bool noninteractive_old = noninteractive; > + { struct timespec debug_ts; char debug_dateStr[20]; { > clock_gettime(CLOCK_REALTIME, &debug_ts); struct tm mytm; > localtime_r(&debug_ts.tv_sec, &mytm); strftime(debug_dateStr, 20, > "%Y-%m-%dT%H:%M:%S", &mytm); } > + printf( "%s.%09ld|pid:%d|tid:%ld|%s|%d| DEBUG: vec size=%ld\n", // > TODO: debugging > + debug_dateStr, debug_ts.tv_nsec, getpid(), > pthread_self(), __FILE__, __LINE__, ASIZE(vec) ); fflush(stdout); } > + Fprin1(vec, Qnil); > + noninteractive = noninteractive_old; > for (val = Qnil, i = ASIZE (vec) - 1; i >= 0; i--) > { > entity = AREF (vec, i); > > Got: > 2013-09-18T13:15:22.845944000|pid:15278|tid:2868504832|font.c|2625| DEBUG: > vec size=4 > 2013-09-18T13:15:22.847422000|pid:15278|tid:2868504832|font.c|2625| DEBUG: > vec size=4611686018628714496 > Fatal error 11: Segmentation fault > > Clearly the value of i was a 32 bit truncation of that larger value. The next step is to put a hardware watchpoint on that vector, and see who thrashes it.