From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.devel Subject: Re: M-x eww performance Date: Thu, 22 Oct 2015 17:21:52 -0400 Message-ID: References: <87pp061w25.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113ce5e2c728650522b81780 X-Trace: ger.gmane.org 1445548982 1353 80.91.229.3 (22 Oct 2015 21:23:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Oct 2015 21:23:02 +0000 (UTC) Cc: Emacs developers To: Michael Heerdegen , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 22 23:22:55 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZpNJu-0000qd-7O for ged-emacs-devel@m.gmane.org; Thu, 22 Oct 2015 23:22:46 +0200 Original-Received: from localhost ([::1]:34653 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpNJt-0000Es-9X for ged-emacs-devel@m.gmane.org; Thu, 22 Oct 2015 17:22:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpNJm-0000AH-1Y for emacs-devel@gnu.org; Thu, 22 Oct 2015 17:22:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpNJk-0008Eg-3E for emacs-devel@gnu.org; Thu, 22 Oct 2015 17:22:38 -0400 Original-Received: from mail-oi0-x22c.google.com ([2607:f8b0:4003:c06::22c]:32974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpNJg-0008D7-HQ; Thu, 22 Oct 2015 17:22:32 -0400 Original-Received: by oiad129 with SMTP id d129so55412823oia.0; Thu, 22 Oct 2015 14:22:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=JtyGRcuxqFOWQd+8aNVsc8Xxttumgs+hQT6mH2vgfdU=; b=RPtLpO2KB1+ZkX3BWNonC4/nTb/sEKHo98zxQl+1xVKxjvqqevTz+yplrfnhKBenD1 GpOUgDItIaepuYA0IgAWOYZsbcoCflp+lhAJBh8oM81q6rAtYQ7lTOrlxNP86WjXuy+c 6EIlZ8KxxDy/94dwHSjHlY3Q/kztcK8s+Qjx76fUfp8lKp4SOIrOZJ59z5NK9juSTHkw Uz735XM2PJjSHzU3RdTFuY3M5nzQwfk+VU+SaJ822Uct/wIvzgqhaC76/+D2fQ/XrB5F sMzlP/YF3dXj4ATI+AoUfB6G9mT9WKJlTr6u9u0RYXiJDpLa3OC4hLth9C8vDMWBYsNd nAeA== X-Received: by 10.202.173.142 with SMTP id w136mr12015372oie.128.1445548951805; Thu, 22 Oct 2015 14:22:31 -0700 (PDT) Original-Received: by 10.202.44.8 with HTTP; Thu, 22 Oct 2015 14:21:52 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c06::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:192430 Archived-At: --001a113ce5e2c728650522b81780 Content-Type: text/plain; charset=UTF-8 > I am currently rebuilding without the optimization flags and will be working through these steps ( http://emacs.stackexchange.com/a/14376/115 ) to get some useful debug info. My first backtrace from gdb! - I built emacs without the optimization flags - cd src/ - gdb ./emacs - r -Q - M-x eww http://www.braveclojure.com/basic-emacs As expected emacs froze after that. Then from the terminal where I had gdb running, I hit C-z in the (gdb) prompt and then bt. I hope this helps debug the problem: Copyright (C) 2010 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-redhat-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/kmodi/downloads/git/emacs/src/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 = :1 TERM = xterm-256color Breakpoint 1 at 0x555b81: file emacs.c, line 371. Temporary breakpoint 2 at 0x5793d6: file sysdep.c, line 905. (gdb) r -Q Starting program: /home/kmodi/downloads/git/emacs/src/emacs -Q Missing separate debuginfo for /home/kmodi/usr_local/6/lib64/libgif.so.4 Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/4d/d406f2679fcf6adf281479e95a0ae8f66c7c4e.debug [Thread debugging using libthread_db enabled] [New Thread 0x7fffed737700 (LWP 39840)] (emacs:39833): GLib-GIO-CRITICAL **: g_settings_schema_source_lookup: assertion 'source != NULL' failed [New Thread 0x7fffe5c21700 (LWP 39876)] emacs: Memory allocation failed `No such file or directory' @ fatal/tiff.c/UnregisterTIFFImage/2077. ^Z Program received signal SIGTSTP, Stopped (user). 0x0000003a9840eb9e in ?? () from /usr/lib64/libgomp.so.1 Missing separate debuginfos, use: debuginfo-install GConf2-2.28.0-6.el6.x86_64 ORBit2-2.14.17-5.el6.x86_64 alsa-lib-1.0.22-3.el6.x86_64 atk-1.30.0-1.el6.x86_64 bzip2-libs-1.0.5-7.el6_0.x86_64 dbus-libs-1.2.24-7.el6_3.x86_64 expat-2.0.1-11.el6_2.x86_64 fftw-3.2.1-3.1.el6.x86_64 gdk-pixbuf2-2.24.1-5.el6.x86_64 glibc-2.12-1.149.el6_6.5.x86_64 gmp-4.3.1-7.el6_2.2.x86_64 gtk2-2.24.23-6.el6.x86_64 gtk2-engines-2.18.4-5.el6.x86_64 libICE-1.0.6-1.el6.x86_64 libSM-1.2.1-2.el6.x86_64 libX11-1.6.0-2.2.el6.x86_64 libXau-1.0.6-4.el6.x86_64 libXcomposite-0.4.3-4.el6.x86_64 libXcursor-1.1.14-2.1.el6.x86_64 libXdamage-1.1.3-4.el6.x86_64 libXext-1.3.2-2.1.el6.x86_64 libXfixes-5.0.1-2.1.el6.x86_64 libXft-2.3.1-2.el6.x86_64 libXi-1.7.2-2.2.el6.x86_64 libXinerama-1.1.3-2.1.el6.x86_64 libXpm-3.5.10-2.el6.x86_64 libXrandr-1.4.1-2.1.el6.x86_64 libXrender-0.9.8-2.1.el6.x86_64 libXt-1.1.4-6.1.el6.x86_64 libacl-2.2.49-6.el6.x86_64 libattr-2.4.44-7.el6.x86_64 libcroco-0.6.2-5.el6.x86_64 libgomp-4.4.7-11.el6.x86_64 libgsf-1.14.15-5.el6.x86_64 libjpeg-turbo-1.2.1-3.el6_5.x86_64 librsvg2-2.26.0-14.el6.x86_64 libselinux-2.0.94-5.8.el6.x86_64 libtiff-3.9.4-10.el6_5.x86_64 libuuid-2.17.2-12.18.el6.x86_64 libxcb-1.9.1-2.el6.x86_64 libxml2-2.7.6-14.el6_5.2.x86_64 ncurses-libs-5.7-3.20090208.el6.x86_64 pango-1.28.1-10.el6.x86_64 sssd-client-1.11.6-30.el6.x86_64 xz-libs-4.999.9-0.5.beta.20091007git.el6.x86_64 zlib-1.2.3-29.el6.x86_64 (gdb) bt #0 0x0000003a9840eb9e in ?? () from /usr/lib64/libgomp.so.1 #1 0x00007ffff60875f8 in MagickCoreTerminus () from /home/kmodi/usr_local/6/lib/libMagickCore-6.Q16.so.2 #2 0x00007ffff604a584 in DefaultFatalErrorHandler () from /home/kmodi/usr_local/6/lib/libMagickCore-6.Q16.so.2 #3 0x00007ffff604adb2 in CatchException () from /home/kmodi/usr_local/6/lib/libMagickCore-6.Q16.so.2 #4 0x00007ffff621f6c8 in UnregisterTIFFImage () from /home/kmodi/usr_local/6/lib/libMagickCore-6.Q16.so.2 #5 0x00007ffff60f6580 in UnregisterStaticModules () from /home/kmodi/usr_local/6/lib/libMagickCore-6.Q16.so.2 #6 0x00007ffff6087638 in MagickCoreTerminus () from /home/kmodi/usr_local/6/lib/libMagickCore-6.Q16.so.2 #7 0x0000000000692ac9 in imagemagick_load_image (f=0x12afcb0, img=0x1dc7f20, contents=0x1e72668 "\211PNG\r\n\032\n", size=134459, filename=0x0) at image.c:8797 #8 0x0000000000692c9c in imagemagick_load (f=0x12afcb0, img=0x1dc7f20) at image.c:8850 #9 0x0000000000688486 in lookup_image (f=0x12afcb0, spec=30372019) at image.c:1751 #10 0x0000000000686cd7 in Fimage_metadata (spec=30372019, frame=0) at image.c:929 #11 0x00000000005f847b in Ffuncall (nargs=2, args=0x7fffffff7358) at eval.c:2653 #12 0x000000000063c363 in exec_byte_code (bytestr=11206404, vector=11206437, maxdepth=14, args_template=0, nargs=0, args=0x0) at bytecode.c:880 #13 0x00000000005f8f7f in funcall_lambda (fun=11206341, nargs=1, arg_vector=0xaaff25) at eval.c:2876 #14 0x00000000005f86f2 in Ffuncall (nargs=2, args=0x7fffffff7878) at eval.c:2699 #15 0x000000000063c363 in exec_byte_code (bytestr=25447380, vector=19937781, maxdepth=38, args_template=0, nargs=0, args=0x0) at bytecode.c:880 #16 0x00000000005f8f7f in funcall_lambda (fun=19934037, nargs=3, arg_vector=0x13039f5) at eval.c:2876 --001a113ce5e2c728650522b81780 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
>=C2=A0I am curre= ntly rebuilding without the optimization flags and will be working through = these steps (=C2=A0http://emacs.stackexchan= ge.com/a/14376/115=C2=A0) to get some = useful debug info.

My first backtrace from gdb!=C2= =A0

- I built emacs without the optimization flags=
- cd src/
- gdb ./emacs
- r -Q

As expected emacs froze afte= r that.

Then from the terminal where I had gdb run= ning, I hit C-z in the (gdb) prompt and then bt.

I= hope this helps debug the problem:

Copyright (C) 2= 010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL versio= n 3 or later <http://gnu.org/licenses/gpl.html>
This is free softwa= re: you are free to change and redistribute it.
There is NO WARRA= NTY, to the extent permitted by law.=C2=A0 Type "show copying"
and "show warranty" for details.
This GDB was c= onfigured as "x86_64-redhat-linux-gnu".
For bug reporti= ng instructions, please see:
Try: yum --enablerepo=3D'*-debug*' install /usr/lib/debug/.build= -id/4d/d406f2679fcf6adf281479e95a0ae8f66c7c4e.debug

(emacs:39833): GLib-GIO-CRITICAL **: g_set= tings_schema_source_lookup: assertion 'source !=3D NULL' failed
[New Thread 0x7fffe5c21700 (LWP 39876)]
emacs: Memory allo= cation failed `No such file or directory' @ fatal/tiff.c/UnregisterTIFF= Image/2077.
^Z
Program received signal SIGTSTP, Stopped= (user).
0x0000003a9840eb9e in ?? () from /usr/lib64/libgomp.so.1=
Missing separate debuginfos, use: debuginfo-install GConf2-2.28.= 0-6.el6.x86_64 ORBit2-2.14.17-5.el6.x86_64 alsa-lib-1.0.22-3.el6.x86_64 atk= -1.30.0-1.el6.x86_64 bzip2-libs-1.0.5-7.el6_0.x86_64 dbus-libs-1.2.24-7.el6= _3.x86_64 expat-2.0.1-11.el6_2.x86_64 fftw-3.2.1-3.1.el6.x86_64 gdk-pixbuf2= -2.24.1-5.el6.x86_64 glibc-2.12-1.149.el6_6.5.x86_64 gmp-4.3.1-7.el6_2.2.x8= 6_64 gtk2-2.24.23-6.el6.x86_64 gtk2-engines-2.18.4-5.el6.x86_64 libICE-1.0.= 6-1.el6.x86_64 libSM-1.2.1-2.el6.x86_64 libX11-1.6.0-2.2.el6.x86_64 libXau-= 1.0.6-4.el6.x86_64 libXcomposite-0.4.3-4.el6.x86_64 libXcursor-1.1.14-2.1.e= l6.x86_64 libXdamage-1.1.3-4.el6.x86_64 libXext-1.3.2-2.1.el6.x86_64 libXfi= xes-5.0.1-2.1.el6.x86_64 libXft-2.3.1-2.el6.x86_64 libXi-1.7.2-2.2.el6.x86_= 64 libXinerama-1.1.3-2.1.el6.x86_64 libXpm-3.5.10-2.el6.x86_64 libXrandr-1.= 4.1-2.1.el6.x86_64 libXrender-0.9.8-2.1.el6.x86_64 libXt-1.1.4-6.1.el6.x86_= 64 libacl-2.2.49-6.el6.x86_64 libattr-2.4.44-7.el6.x86_64 libcroco-0.6.2-5.= el6.x86_64 libgomp-4.4.7-11.el6.x86_64 libgsf-1.14.15-5.el6.x86_64 libjpeg-= turbo-1.2.1-3.el6_5.x86_64 librsvg2-2.26.0-14.el6.x86_64 libselinux-2.0.94-= 5.8.el6.x86_64 libtiff-3.9.4-10.el6_5.x86_64 libuuid-2.17.2-12.18.el6.x86_6= 4 libxcb-1.9.1-2.el6.x86_64 libxml2-2.7.6-14.el6_5.2.x86_64 ncurses-libs-5.= 7-3.20090208.el6.x86_64 pango-1.28.1-10.el6.x86_64 sssd-client-1.11.6-30.el= 6.x86_64 xz-libs-4.999.9-0.5.beta.20091007git.el6.x86_64 zlib-1.2.3-29.el6.= x86_64
(gdb) bt
#0 =C2=A00x0000003a9840eb9e in ?? () fr= om /usr/lib64/libgomp.so.1
#1 =C2=A00x00007ffff60875f8 in MagickC= oreTerminus ()
=C2=A0 =C2=A0from /home/kmodi/usr_local/6/lib/libM= agickCore-6.Q16.so.2
#2 =C2=A00x00007ffff604a584 in DefaultFatalE= rrorHandler ()
=C2=A0 =C2=A0from /home/kmodi/usr_local/6/lib/libM= agickCore-6.Q16.so.2
#3 =C2=A00x00007ffff604adb2 in CatchExceptio= n () from /home/kmodi/usr_local/6/lib/libMagickCore-6.Q16.so.2
#4= =C2=A00x00007ffff621f6c8 in UnregisterTIFFImage ()
=C2=A0 =C2=A0= from /home/kmodi/usr_local/6/lib/libMagickCore-6.Q16.so.2
#5 =C2= =A00x00007ffff60f6580 in UnregisterStaticModules ()
=C2=A0 =C2=A0= from /home/kmodi/usr_local/6/lib/libMagickCore-6.Q16.so.2
#6 =C2= =A00x00007ffff6087638 in MagickCoreTerminus ()
=C2=A0 =C2=A0from = /home/kmodi/usr_local/6/lib/libMagickCore-6.Q16.so.2
#7 =C2=A00x0= 000000000692ac9 in imagemagick_load_image (f=3D0x12afcb0, img=3D0x1dc7f20,<= /div>
=C2=A0 =C2=A0 contents=3D0x1e72668 "\211PNG\r\n\032\n",= size=3D134459, filename=3D0x0) at image.c:8797
#8 =C2=A00x000000= 0000692c9c in imagemagick_load (f=3D0x12afcb0, img=3D0x1dc7f20) at image.c:= 8850
#9 =C2=A00x0000000000688486 in lookup_image (f=3D0x12afcb0, = spec=3D30372019) at image.c:1751
#10 0x0000000000686cd7 in Fimage= _metadata (spec=3D30372019, frame=3D0) at image.c:929
#11 0x00000= 000005f847b in Ffuncall (nargs=3D2, args=3D0x7fffffff7358) at eval.c:2653
#12 0x000000000063c363 in exec_byte_code (bytestr=3D11206404, vect= or=3D11206437, maxdepth=3D14,
=C2=A0 =C2=A0 args_template=3D0, na= rgs=3D0, args=3D0x0) at bytecode.c:880
#13 0x00000000005f8f7f in = funcall_lambda (fun=3D11206341, nargs=3D1, arg_vector=3D0xaaff25) at eval.c= :2876
#14 0x00000000005f86f2 in Ffuncall (nargs=3D2, args=3D0x7ff= fffff7878) at eval.c:2699
#15 0x000000000063c363 in exec_byte_cod= e (bytestr=3D25447380, vector=3D19937781, maxdepth=3D38,
=C2=A0 = =C2=A0 args_template=3D0, nargs=3D0, args=3D0x0) at bytecode.c:880
#16 0x00000000005f8f7f in funcall_lambda (fun=3D19934037, nargs=3D3, arg_= vector=3D0x13039f5) at eval.c:2876


--001a113ce5e2c728650522b81780--