From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#34138: 27.0.50; Delayed display of PDF file images Date: Sun, 20 Jan 2019 18:14:13 +0100 Message-ID: <87zhrvfdzu.fsf@gmx.net> References: <871s58e4gh.fsf@gmx.net> <5C443CB1.3050208@gmx.at> <87h8e3h90z.fsf@gmx.net> <5C4483B7.1060604@gmx.at> <87d0orgz0a.fsf@gmx.net> <837eezbazk.fsf@gnu.org> <878szfgwdu.fsf@gmx.net> <8336pnb9cq.fsf@gnu.org> <874la3gujy.fsf@gmx.net> <831s57b7ev.fsf@gnu.org> NNTP-Posting-Host: ciao.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ciao.gmane.org 1548004509 224635 195.159.176.228 (20 Jan 2019 17:15:09 GMT) X-Complaints-To: usenet@ciao.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2019 17:15:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 34138@debbugs.gnu.org, politza@hochschule-trier.de, tsdh@gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 20 18:15:06 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1glGga-000wJg-0P for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Jan 2019 18:15:04 +0100 Original-Received: from localhost ([127.0.0.1]:42204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glGgi-0000Ro-Ug for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Jan 2019 12:15:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glGga-0000PB-3m for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2019 12:15:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1glGgY-0001ec-JZ for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2019 12:15:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39848) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1glGgY-0001eQ-FZ for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2019 12:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1glGgY-0007BS-4p for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2019 12:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Jan 2019 17:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34138 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 34138-submit@debbugs.gnu.org id=B34138.154800446727544 (code B ref 34138); Sun, 20 Jan 2019 17:15:02 +0000 Original-Received: (at 34138) by debbugs.gnu.org; 20 Jan 2019 17:14:27 +0000 Original-Received: from localhost ([127.0.0.1]:39129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glGfy-0007AC-AY for submit@debbugs.gnu.org; Sun, 20 Jan 2019 12:14:26 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:44393) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glGfv-00079w-Pv for 34138@debbugs.gnu.org; Sun, 20 Jan 2019 12:14:24 -0500 Original-Received: from rosalinde ([92.73.79.34]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MVvDo-1gj6vX0xdQ-00X7gU; Sun, 20 Jan 2019 18:14:15 +0100 In-Reply-To: <831s57b7ev.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 20 Jan 2019 18:50:00 +0200") X-Provags-ID: V03:K1:+gNIHFGCcKqEvL9BbGjerJgnBe4d+PIUpPTKn8ajB3QMDhIcDBm 3R7yRIRslXYo7qsTjANWoucBG+Qm6u8Kzx0EZpqB5JS+/n8JJLjdJGjuIOL2aZkXn6KfY0C ssAabE7bcff7rx3ErlmwBSiu7O6axPjdAf7Dba8oo6LkcvNwhMVKHbXq/oc7Fy6f3PyTqnu Owbh5dxNXZZZtIJ82OpJQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:On6fAsc2Rv4=:sXkJIzGCs6qgTyZP54FvOs FZdZtJWh8jE8EqMlnHyMJy42OIgPadQgaAIQwGI7PR3YPnqX26s1nspqqG4irjRhYauaiJyAn 9hziDWwf+wuCaaQ2TzE77EBmD6AWYvZFvmtcZ4iUS1O1S208dxSXYRd4HbMnOMg1DfZaIi3ol N4uZsgpHf9yKQQcszu/tRI2dk/TEZE4yapirHokvHfoR6xVvZ213tsQ/LrFQDyLg+WQjqKuMP j8Gy7tQdH7t8DNEOJ77u98AxSwX+YrHly9EBqE8zsrAOQX52V7TF5FoMfUI1LSs3EF/DhlMKG pd+0sRRW9oL6c285gXXxFMuMJq692odl33Wdd45nli8rBN50HN2XPP1cGXEg29p8R+3gdMqUR wpxzf1xLQ6cppZgnpCaurQLk6kqvdtCvu6z9ldC9/D5cAMAlm7nz1NJhrSZ8qGs+s6LWF30Fo rOT03yUn6Bhf7UWJqh1es/SzeCqz/HEEqGwxg2JNkV1bmXxdEL8Rf/bofC8jt9Dc2zZFWjfGP teTSnpHgd3+hFxMFxfjyu+h1DG/e3VtDgM7/L92LcCsV2BunTqPBUymbMi0cycxTc623z2iWl piE4JwmIhsXDbkxvrFYi0E0wGU6Q/AQYoPxhRJZNtdL8R5rhg0aC6iUe31SJ4pW4WN9goiniB JB7O815iWjC560G8jt/gqKIB4m1RNwrQbRtTWBcCPUFBydzweS3kc4oRxTK/ovuU25OLp/x7T lIapg/bjlYL5G5viwv+xDzCCdAarzPVke/OMGnFCN75aRA6SBj1Xe06H+oqAAxq58bLvZW1o 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: 209.51.188.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:154619 Archived-At: --=-=-= Content-Type: text/plain On Sun, 20 Jan 2019 18:50:00 +0200 Eli Zaretskii wrote: >> From: Stephen Berman >> Cc: rudalics@gmx.at, 34138@debbugs.gnu.org, politza@hochschule-trier.de, >> tsdh@gnu.org >> Date: Sun, 20 Jan 2019 17:31:13 +0100 >> >> > Hmm... can you attach the debugger to Emacs during that delay, and >> > show both C backtrace and Lisp backtrace? >> >> I'm not sure what "attach the debugger to Emacs during that delay" >> means > > It means, during the time of the delay, type from the shell prompt: > > $ gdb -p PID > > where PID is the numeric process-id of the Emacs process; you should > find that in advance, e.g. by running "ps". Once GDB starts and shows > its prompt, "(gdb)", type: > > (gdb) thread apply all bt > > This should show the C-level backtrace. Then: > > (gdb) source /path/to/emacs/src/.gdbinit > (gdb) xbacktrace > > The last command should show the Lisp-level backtrace. Ah, thanks. I started gdb from the path of the emacs executable and the Lisp backtrace was shown after typing "thread apply all bt"; subsequently typing xbacktrace showed no output. Transcript attached. FWIW, while the backtrace was being shown in the shell, the raw PDF changed to the image display in Emacs. Steve Berman --=-=-= Content-Type: text/plain Content-Disposition: attachment Content-Description: gdb backtrace steve [ ~/build/emacs/src ]$ gdb -p 5077 GNU gdb (GDB) 8.1.1 Copyright (C) 2018 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-pc-linux-gnu". 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". Attaching to process 5077 [New LWP 5078] [New LWP 5080] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". 0x00007f910c590291 in __pselect (nfds=16, readfds=0x7ffc70826670, writefds=0x7ffc708265f0, exceptfds=0x0, timeout=, sigmask=) at ../sysdeps/unix/sysv/linux/pselect.c:69 69 ../sysdeps/unix/sysv/linux/pselect.c: No such file or directory. SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY = :0 TERM = xterm Breakpoint 1 at 0x4eb2ee: file /mnt/data/steve/git/emacs-master/src/emacs.c, lin---Type to continue, or q to quit--- e 370. Temporary breakpoint 2 at 0x502b35: file /mnt/data/steve/git/emacs-master/src/lisp.h, line 1056. (gdb) thread apply all bt Thread 3 (Thread 0x7f910772f700 (LWP 5080)): #0 0x00007f910c58dac9 in __GI___poll (fds=0x20e71e0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29 #1 0x00007f910d563cbe in g_main_context_poll (priority=, n_fds=2, fds=0x20e71e0, timeout=, context=0x20e4a30) at gmain.c:4204 #2 0x00007f910d563cbe in g_main_context_iterate (context=0x20e4a30, block=block@entry=1, dispatch=dispatch@entry=1, self=) at gmain.c:3898 #3 0x00007f910d564032 in g_main_loop_run (loop=0x20e4b70) at gmain.c:4099 #4 0x00007f910d753a36 in gdbus_shared_thread_func (user_data=0x20e4a00) at gdbusprivate.c:275 #5 0x00007f910d58a395 in g_thread_proxy (data=0x206a680) at gthread.c:784 #6 0x00007f910c76ffa3 in start_thread (arg=) at pthread_create.c:486 #7 0x00007f910c5985ff in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Lisp Backtrace: "image-size" (0x70824720) 0x354bf60 PVEC_COMPILED "gethash" (0x70820b38) "pdf-cache--data-get" (0x70820d40) "pdf-cache-number-of-pages" (0x70820f10) ---Type to continue, or q to quit--- "terminal-live-p" (0x70820ea8) "framep-on-display" (0x708210b8) "overlayp" (0x70824718) 0x92591e8 PVEC_COMPILED "overlayp" (0x70824a48) 0x92591e8 PVEC_COMPILED "redisplay--update-region-highlight" (0x70824fd0) "run-hook-with-args" (0x70824fc8) "ignore" (0x70825310) "apply" (0x70825308) 0x9420638 PVEC_COMPILED "redisplay_internal (C function)" (0x0) Thread 2 (Thread 0x7f9107fe3700 (LWP 5078)): #0 0x00007f910c58dac9 in __GI___poll (fds=0x7f9100000b40, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29 #1 0x00007f910d563cbe in g_main_context_poll (priority=, n_fds=1, fds=0x7f9100000b40, timeout=, context=0x1da04d0) at gmain.c:4204 #2 0x00007f910d563cbe in g_main_context_iterate (context=context@entry=0x1da04d0, block=block@entry=1, dispatch=dispatch@entry=1, self=) at gmain.c:3898 #3 0x00007f910d563dcc in g_main_context_iteration (context=0x1da04d0, may_block---Type to continue, or q to quit--- =may_block@entry=1) at gmain.c:3964 #4 0x00007f910d563e11 in glib_worker_main (data=) at gmain.c:5773 #5 0x00007f910d58a395 in g_thread_proxy (data=0x1da0800) at gthread.c:784 #6 0x00007f910c76ffa3 in start_thread (arg=) at pthread_create.c:486 #7 0x00007f910c5985ff in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 1 (Thread 0x7f9109a29bc0 (LWP 5077)): #0 0x00007f910c590291 in __pselect (nfds=16, readfds=0x7ffc70826670, writefds=0x7ffc708265f0, exceptfds=0x0, timeout=, sigmask=) at ../sysdeps/unix/sysv/linux/pselect.c:69 #1 0x00000000005bca5d in really_call_select (arg=arg@entry=0x7ffc70826130) at /mnt/data/steve/git/emacs-master/src/thread.c:580 #2 0x0000000000542d88 in flush_stack_call_func (func=func@entry=0x5bca12 , arg=arg@entry=0x7ffc70826130) at /mnt/data/steve/git/emacs-master/src/alloc.c:5229 #3 0x00000000005bd24f in thread_select (func=, max_fds=max_fds@entry=16, rfds=rfds@entry=0x7ffc70826670, wfds=, efds=efds@entry=0x0, timeout=timeout@entry=0x7ffc708268c0, sigmask=0x0) at /mnt/data/steve/git/emacs-master/src/thread.c:610 #4 0x00000000005d7c64 in xg_select (fds_lim=16, rfds=rfds@entry=0x7ffc70826960,---Type to continue, or q to quit--- wfds=0x7ffc708268e0, efds=efds@entry=0x0, timeout=timeout@entry=0x7ffc708268c0, sigmask=sigmask@entry=0x0) at /mnt/data/steve/git/emacs-master/src/xgselect.c:117 #5 0x000000000059daf3 in wait_reading_process_output (time_limit=time_limit@entry=97, nsecs=nsecs@entry=0, read_kbd=-1, do_display=do_display@entry=true, wait_for_cell=wait_for_cell@entry=XIL(0), wait_proc=wait_proc@entry=0x0, just_wait_proc=0) at /mnt/data/steve/git/emacs-master/src/process.c:5405 #6 0x0000000000424e63 in sit_for (timeout=timeout@entry=make_number(97), reading=reading@entry=true, display_option=display_option@entry=1) at /mnt/data/steve/git/emacs-master/src/lisp.h:1056 #7 0x00000000004f769e in read_char (commandflag=1, map=map@entry=XIL(0x35f3093), prev_event=XIL(0), used_mouse_menu=used_mouse_menu@entry=0x7ffc70826d4b, end_time=end_time@entry=0x0) at /mnt/data/steve/git/emacs-master/src/lisp.h:751 #8 0x00000000004f81ec in read_key_sequence (keybuf=keybuf@entry=0x7ffc70826e10, prompt=prompt@entry=XIL(0), dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true, prevent_redisplay=prevent_redisplay@entry=false) at /mnt/data/steve/git/emacs-master/src/lisp.h:1386 #9 0x00000000004f9730 in command_loop_1 () at /mnt/data/steve/git/emacs-master/src/lisp.h:1056 #10 0x000000000055fe86 in internal_condition_case (bfun=bfun@entry=0x4f955b , handlers=handlers@entry=XIL(0x5490), hfun=hfun@entry=0x4f0c5d ) at /mnt/data/steve/git/emacs-master/src/eval.c:1376 ---Type to continue, or q to quit--- #11 0x00000000004eca0e in command_loop_2 (ignore=ignore@entry=XIL(0)) at /mnt/data/steve/git/emacs-master/src/lisp.h:1056 #12 0x000000000055fdfd in internal_catch (tag=tag@entry=XIL(0xc9f0), func=func@entry=0x4ec9f6 , arg=arg@entry=XIL(0)) at /mnt/data/steve/git/emacs-master/src/eval.c:1139 #13 0x00000000004ec9d8 in command_loop () at /mnt/data/steve/git/emacs-master/src/lisp.h:1056 #14 0x00000000004f08d6 in recursive_edit_1 () at /mnt/data/steve/git/emacs-master/src/keyboard.c:714 #15 0x00000000004f0b8d in Frecursive_edit () at /mnt/data/steve/git/emacs-master/src/keyboard.c:785 #16 0x00000000004ec1d7 in main (argc=1, argv=0x7ffc70827158) at /mnt/data/steve/git/emacs-master/src/emacs.c:1901 (gdb) --=-=-=--