From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#17771: 24.3.91; SIGSEGV in cleanup_vector Date: Wed, 18 Jun 2014 15:50:06 +0200 Message-ID: <87sin2iay9.fsf@rosalinde.fritz.box> References: <874mzp896b.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> <539EA48D.4050802@yandex.ru> <87lhsxjh0z.fsf@rosalinde.fritz.box> <539EE4F0.9070307@yandex.ru> <878uoxj94f.fsf@rosalinde.fritz.box> <539EEEDC.2080703@yandex.ru> <871tuokg6o.fsf@rosalinde.fritz.box> <539F154A.5000307@yandex.ru> <87mwdcilow.fsf@rosalinde.fritz.box> <539FA356.3020001@yandex.ru> <87vbrzwt4h.fsf@rosalinde.fritz.box> <53A084DF.8040403@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1403099487 11602 80.91.229.3 (18 Jun 2014 13:51:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2014 13:51:27 +0000 (UTC) Cc: 17771@debbugs.gnu.org To: Dmitry Antipov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 18 15:51:20 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 1WxGGm-0004ja-0k for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Jun 2014 15:51:20 +0200 Original-Received: from localhost ([::1]:57521 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxGGl-0001zb-Ng for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Jun 2014 09:51:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxGGb-0001p1-IX for bug-gnu-emacs@gnu.org; Wed, 18 Jun 2014 09:51:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxGGU-0003c3-JE for bug-gnu-emacs@gnu.org; Wed, 18 Jun 2014 09:51:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxGGU-0003bx-BV for bug-gnu-emacs@gnu.org; Wed, 18 Jun 2014 09:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WxGGT-000359-MP for bug-gnu-emacs@gnu.org; Wed, 18 Jun 2014 09:51:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <874mzp896b.fsf@rosalinde.fritz.box> Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Jun 2014 13:51:01 +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.140309944511817 (code B ref 17771); Wed, 18 Jun 2014 13:51:01 +0000 Original-Received: (at 17771) by debbugs.gnu.org; 18 Jun 2014 13:50:45 +0000 Original-Received: from localhost ([127.0.0.1]:51294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WxGG9-00034P-6t for submit@debbugs.gnu.org; Wed, 18 Jun 2014 09:50:45 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:59435) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WxGG2-000343-Ja for 17771@debbugs.gnu.org; Wed, 18 Jun 2014 09:50:39 -0400 Original-Received: from rosalinde.fritz.box ([89.245.106.46]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MSp1l-1X6zZJ15Hx-00RtKC; Wed, 18 Jun 2014 15:50:28 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.91 (gnu/linux) X-Provags-ID: V03:K0:/g6TKv72TFiEjmEevKda5CrGxQiqYRlM0n3SRQCG40dON7rnvlX 35fWzZs1W9iTjRZlEg5fmBh1p5zY5XkvVxk1P1MzzUPzIGR98UO2ljnHOHaBS7sUvi74TLU t+p5aVRo+X+l1SqrhqjSam3PkabfZ5wae89b4CX5N3nZ7XSrLGOXs2MvdLC+llrNYmehMEQ nkiAuyiiv2BlmVYQ5Ztww== 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:90500 Archived-At: On Tue, 17 Jun 2014 22:11:43 +0400 Dmitry Antipov wrote: > On 06/17/2014 05:41 PM, Stephen Berman wrote: > >> With fontconfig-debuginfo installed I get this: >> >> 33.61% emacs libc-2.18.so [.] __strchr_sse2 >> 15.77% emacs libfontconfig.so.1.8.0 [.] FcStrCaseWalkerNext.part.3 > > OK. Next steps probably are: > > 1) Compile with '--with-x-toolkit=lucid --without-xft' > and check how fast HELLO is displayed. This failed to compile: /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: image.o: undefined reference to symbol 'png_set_longjmp_fn@@PNG16_0' /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: note: 'png_set_longjmp_fn@@PNG16_0' is defined in DSO /usr/lib64/libpng16.so.16 so try adding it to the linker command line /usr/lib64/libpng16.so.16: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make[1]: *** [temacs] Error 1 make[1]: Leaving directory `/data/steve/lib/emacs/emacs-24.4-lucid/src' make: *** [src] Error 2 I have both libpng16 and libpng12 installed, since each is required by different programs I use. Emacs built with Gtk+ links with libpng16 (which gtk3 requires), but with Lucid it apparently links with libpng12 if installed. It would be a PITA to uninstall libpng12 just to test this. However, when I add `--without-png' to the configure line, then Emacs with Lucid and without xft successfully builds. And with this build it takes only about 3 seconds for HELLO to be displayed (with the characters for which no suitable font could be found displayed as boxes containing the hex codepoint). Then I built with gtk3 and without xft, and here, too, it takes only about 3 seconds for HELLO to be displayed. > 2) Identify all font packages installed. I don't know about SuSE, > but on my Fedora system all font packages are under 'User Interface/X' > group, so "rpm -q -g 'User Interface/X'" shows all font packages > (plus other X stuff, which may be filtered out by grepping for "noarch" > packages). On my system, the following command: > > rpm -q -g 'User Interface/X' | grep noarch | grep font | wc -l > > shows 84 font packages. > > 3) Save list of packages obtained at step 2) and try to uninstall the most > of font packages (but do not touch X core fonts - xorg-x11-fonts-* packages > on my system). Next try to run "regular" (with Xft support enabled) Emacs > and check whether font removal helps to speedup C-h h. > > 4) Reinstall all required fonts. I took the opposite route, which was easier for me: I installed font packages for all the languages that were displayed as hex codepoint boxes (mainly South Asia and South East Asia). And lo and behold, now with my normal build (including Xft support), it also takes only about 3 seconds for HELLO to be displayed (and there are no more hex codepoint boxes)! Prior to this, I had installed font packages for all languages in HELLO, but still some characters in Tibetan were only displayed as hex codepoint boxes. And it still took 30+ seconds for HELLO to be displayed. But I found another font package for Tibetan which contained the missing characters, and that made the difference. So probably the lag was just due the searching through all fonts, as Andreas said. Steve Berman