From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 21 10:58:36 2021 Received: (at submit) by debbugs.gnu.org; 21 Jul 2021 14:58:36 +0000 Received: from localhost ([127.0.0.1]:38267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6DgB-0005ac-Oq for submit@debbugs.gnu.org; Wed, 21 Jul 2021 10:58:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:55916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6DgA-0005aU-F6 for submit@debbugs.gnu.org; Wed, 21 Jul 2021 10:58:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6DgA-0008NT-5y for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2021 10:58:34 -0400 Received: from vr0.sivalik.com ([104.238.130.12]:51892 helo=smtp.sivalik.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6Dg7-0001l2-US for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2021 10:58:33 -0400 Received: from localhost (pool-96-242-220-52.nwrknj.fios.verizon.net [96.242.220.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: rajeev@sivalik.com) by smtp.sivalik.com (Postfix) with ESMTPSA id 3DF4B5FA82; Wed, 21 Jul 2021 10:58:23 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sivalik.com; s=svlk; t=1626879503; bh=ke8DC15hhHkF8uELbmcT3YrOBmam8pR7vXqH70lg7Yo=; h=From:To:Subject:Date:From; b=J1f4BcDqCkXz0a+Mv1X4JLV1BnCdfexrhoo/mCJCpqelydUWVjgbErwwxZsqo2AEh Eo7UuU8KGI7XB5DElJHxaOds0EhqIgAZGXcbC2ImMTdHAQTSCk4ZDO3XAu6IpK0r1r pO65onihrHaR7w41uTyz/sOhyj51ucLCekUrIc8M= X-No-Archive: yes From: Rajeev N To: bug-gnu-emacs@gnu.org Subject: 27.2.50; accept-process-output within accept-process-output hangs emacs Date: Wed, 21 Jul 2021 10:58:22 -0400 Message-ID: <87mtqfzpbl.fsf@hm.sivalik.com> MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Received-SPF: pass client-ip=104.238.130.12; envelope-from=rajeev.jnk@sivalik.com; helo=smtp.sivalik.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) (let () (run-with-timer 0 nil #'url-retrieve "https://www.gnu.org/" #'ignore) (diary-mail-entries)) hangs emacs when smtpmail library is being used for sending mail. My guess is accept-process-output in url library is called from within accept-process-output in smtpmail library. In GNU Emacs 27.2.50 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-07-14 built on hp Repository revision: 7ac411ae2ce91572a2bdb8eaa1ee6ceccf162e35 Repository branch: emacs-27 Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye) Recent messages: Running in foreground: git --no-pager difftool --exit-code --no-prompt -x diff -ub HEAD -- workspace/src/el/mail.el Done (status=1): git --no-pager difftool --exit-code --no-prompt -x diff -ub HEAD -- workspace/src/el/mail.el Running in foreground: git --no-pager cat-file blob 6b74e7f4b1948f1f9495b9c8d1e1a02d12daa090:workspace/src/el/mail.el . Done (status=0): git --no-pager cat-file blob 6b74e7f4b1948f1f9495b9c8d1e1a02d12daa090:workspace/src/el/mail.el . Finding changes in /home/rajeev/workspace/src/el/mail.el...done Mark saved where search started Mark set next-line: End of buffer Hiding all blocks...done Mark activated Configured using: 'configure --with-mailutils --with-cairo --prefix=/home/rajeev/tmp/build/em/o/emacs-27' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: reveal-mode: t global-so-long-mode: t global-auto-revert-mode: t shell-dirtrack-mode: t midnight-mode: t display-time-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t transient-mark-mode: t hs-minor-mode: t Load-path shadows: /home/rajeev/.config/emacs/elpa/map-3.0/map hides /home/rajeev/tmp/build/em/o/emacs-27/share/emacs/27.2.50/lisp/emacs-lisp/map Features: (shadow emacsbug cal-coptic cal-julian url-about url-dav url-dired dired-aux misearch multi-isearch eieio-opt speedbar sb-image ezimage dframe debug smtpmail help-fns radix-tree cl-print org-duration mule-util js view sort gnus-cite gnus-bcklg utf-7 nnml gnus-async gnus-ml face-remap smerge-mode diff cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc-dir ewoc vc vc-dispatcher mm-archive network-stream url-cache edmacro kmacro server cursor-sensor time-stamp bbdb-gnus nnfolder pcase rx xt-mouse which-func imenu timeclock spam spam-stat gnus-uu yenc semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet org-indent reveal mailalias bbdb-message mail-extr ol-eww eww mm-url thingatpt url-queue ol-rmail ol-mhe ol-irc ol-info ol-gnus nnir ol-docview doc-view jka-compr image-mode exif ol-bibtex bibtex ol-bbdb ol-w3m icomplete so-long cl-extra autorevert filenotify bbdb-anniv tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell ls-lisp printing ps-print ps-print-loaddefs ps-def lpr web-server web-server-status-codes el/web midnight el/cron backtrace help-mode qp el/wthr el/av el/hass el/fin el/remote el/script type-break cal-iso org-id lunar solar cal-dst holidays hol-loaddefs el/calc olc el/loc term disp-table ehelp dirtrack hideshow dbus parsec gnutls gnus-delay gnus-draft gnus-agent gnus-srvr gnus-score score-mode nnvirtual nntp gnus-cache gnus-msg nndraft nnmh gnus-icalendar org-capture gnus-art mm-uu mml2015 mm-view mml-smime smime dig icalendar sieve sieve-mode sieve-manage sasl sasl-anonymous sasl-login sasl-plain sendmail time ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox org-element avl-tree generator org-agenda org-refile org-crypt org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat advice org-macs org-loaddefs find-func gnus-sum shr svg xml dom gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time iso8601 gnus-spec gnus-int gnus-range message dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived mm-decode mm-bodies mm-encode gmm-utils mailheader gnus-win gnus pp vc-git diff-mode easy-mmode cus-edit cus-start cus-load nnheader gnus-util rmail rmail-loaddefs text-property-search time-date mail-utils wid-edit el/org el/doc el/mail oauth2 url-http url url-proxy url-privacy url-expand url-methods url-history mailcap url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-cookie url-domsuf url-util url-gw nsm rmc puny plstore epg epg-config el/tools el/shell el/webdr el/xmpp el/diary timer-list bbdb-mua el/timer el/util bbdb-com crm mailabbrev bbdb bbdb-site timezone el/bbdb appt diary-lib diary-loaddefs cal-menu calendar cal-loaddefs el/init wombat-theme info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 564438 119230) (symbols 48 40013 57) (strings 32 155671 22362) (string-bytes 1 5292815) (vectors 16 65816) (vector-slots 8 792333 55620) (floats 8 1282 1751) (intervals 56 14139 549) (buffers 1000 137)) From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 21 11:14:44 2021 Received: (at 49682) by debbugs.gnu.org; 21 Jul 2021 15:14:44 +0000 Received: from localhost ([127.0.0.1]:38305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6Dvo-0008E6-7Z for submit@debbugs.gnu.org; Wed, 21 Jul 2021 11:14:44 -0400 Received: from quimby.gnus.org ([95.216.78.240]:43888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6Dvl-0008Dp-Gi for 49682@debbugs.gnu.org; Wed, 21 Jul 2021 11:14:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=wxRy7D9OqslOGEQw92YlnCfHPxP97Zw6pEzzpbDctFA=; b=CLVNZvSH0hdH6pRUWKZ2Td73ac SF7/TqS0gbHqVbPyIo9REPrXpvcyl7wfwS25plW1Zv4qQu/Ie8rOqFXrNdlXdxOrXH4NnrdDQlFsS IKjXKTUtmSGQ0r/tzGY6RiL6iZpVcmqD4xyDxxx6xrsjo283mDYQt6wExWzIm4h5dptQ=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m6Dvc-0007kk-Iv; Wed, 21 Jul 2021 17:14:35 +0200 From: Lars Ingebrigtsen To: 49682@debbugs.gnu.org Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEWDfXKJg3Nwa2JH QTkDAwQuKiaYkIH///8sJ1V1AAAAAWJLR0QHFmGI6wAAAAd0SU1FB+UHFQ8NG2stq7AAAAGuSURB VDjLlZNBcoMwDEVtJtnLpnSNgeyTBrpusbwPYA7Q3v8QlWwgOG0W1QQy6KH/ZWMJsQ+1hU7ykjIy AkjyktLwG8i9VgJg5xEArM5idQiAZIPKLrtUKMntwD5NESVS4wWALoE7vUcWgCxbNOmi/Y3BET1a Kqi2Go2WQYEz4lR1OGbnTEbgGKgW13DzVFGqQbwQqE+4C1tqQ2/aLyXIYqvga6qpgrQEPsSMbQpc 5XFaqxOgCnzXfwA0GvvS38Hm3Stv2wTYZSWXon9ZpQxL9YjX+HRePSwDPyBWi1i+ApIa/cXj4KMy /QXhiYDGoV1AKHTgo0fO2TEq1HwbCgKSt/2TGotbFfbTSR/aPeAHgejRsG9nmgAa7MOPu+L7x6s6 hK4atA2OcY0MBm1y5+hcFejaKIIzY+OH76Ur+gDuGLaRP1GOrqOlgqhZwYYlG2r0FnalpxOKXNET sFeh/VlJ1rMAIngOwvckK7USwMUjVZzcm0YjjwPE2QFZ+87Ewy8rOrzlfUJBGykeAtYhTYdzN77i ScCTvBTZM6D/CdQmlVUPouGxSqPcQPYAMr5+AC/Blkl5u3qEAAAAJXRFWHRkYXRlOmNyZWF0ZQAy MDIxLTA3LTIxVDE1OjEzOjI3KzAwOjAwBsWHegAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wNy0y MVQxNToxMzoyNyswMDowMHeYP8YAAAAASUVORK5CYII= X-Now-Playing: Coil's _The Restitution of Decayed Intelligence_: "The Restitution Of Decayed Intelligence 1" Date: Wed, 21 Jul 2021 17:14:32 +0200 In-Reply-To: <87mtqfzpbl.fsf@hm.sivalik.com> (Rajeev N. via's message of "Wed, 21 Jul 2021 10:58:22 -0400") Message-ID: <87k0ljpulj.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Rajeev N via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > [Quoted text removed due to X-No-Archive] Can you try the same recipe in the current development version of Emacs? There's been some changes to try to guarantee forward progress when there's several processes waiting for output. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49682 Cc: Rajeev N X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Rajeev N via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > [Quoted text removed due to X-No-Archive] Can you try the same recipe in the current development version of Emacs? There's been some changes to try to guarantee forward progress when there's several processes waiting for output. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 21 12:15:00 2021 Received: (at 49682) by debbugs.gnu.org; 21 Jul 2021 16:15:00 +0000 Received: from localhost ([127.0.0.1]:38429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6Es8-0003YO-C5 for submit@debbugs.gnu.org; Wed, 21 Jul 2021 12:15:00 -0400 Received: from vr0.sivalik.com ([104.238.130.12]:39550 helo=smtp.sivalik.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6Es5-0003YB-Ty for 49682@debbugs.gnu.org; Wed, 21 Jul 2021 12:14:58 -0400 Received: from localhost (pool-96-242-220-52.nwrknj.fios.verizon.net [96.242.220.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: rajeev@sivalik.com) by smtp.sivalik.com (Postfix) with ESMTPSA id 4B2A95FB75; Wed, 21 Jul 2021 12:14:52 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sivalik.com; s=svlk; t=1626884092; bh=gt53Ky4cJIjOwtJ50i7siVwDMydi/cqOCU9ZxTWRsXY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=rx42qM3eIqrmgEct12dOCnZr0JFxblznBvKQuPsk2Qe/qIJiYfank0DSdX1aNMoa5 DuWzvJMfT26QbO/RTCwqQvArFaYjG9zhMgrR/sa3M7Xnr0X+mnfW8i0bvUnUrCvdHL 6MnKWFfM1rZiygR/DGc6LAJkzCc5buiN5JrPVvfY= X-No-Archive: yes From: Rajeev N To: Lars Ingebrigtsen Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> <87k0ljpulj.fsf@gnus.org> Date: Wed, 21 Jul 2021 12:14:51 -0400 In-Reply-To: <87k0ljpulj.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 21 Jul 2021 17:14:32 +0200") Message-ID: <87czrbve2s.fsf@hm.sivalik.com> MIME-Version: 1.0 Content-Type: text/html Content-Disposition: inline X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 49682 Cc: 49682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/)

Current master has the same bug.

On Wed, 21 Jul 2021 at 5:14 pm +0200, Lars Ingebrigtsen wrote:

Can you try the same recipe in the current development version of Emacs? There's been some changes to try to guarantee forward progress when there's several processes waiting for output.

From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 21 12:18:17 2021 Received: (at 49682) by debbugs.gnu.org; 21 Jul 2021 16:18:17 +0000 Received: from localhost ([127.0.0.1]:38440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6EvJ-0003eY-2k for submit@debbugs.gnu.org; Wed, 21 Jul 2021 12:18:17 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6EvH-0003eK-Qi for 49682@debbugs.gnu.org; Wed, 21 Jul 2021 12:18:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=RSGD6Uye/kIi4gGsHWlvSI0JXNeGIapYXuGBYtWdDSU=; b=edTHWPYc6vh3FjQLm4tlcXlwFQ gNrsi/WtwOPbTfbjib+cUZpQeTY3/ZNjHNLqS+2WH3IAvYT/h0ovhA96qdL1vLSIfAf+Z0nEPZlCL QANJioMRz0S+u94J6I8iQucJSbWhYGC01nzeET5bwjg9aJDxHTue57Wn9XwRiUC5tmfo=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m6Ev9-0008Cl-MK; Wed, 21 Jul 2021 18:18:10 +0200 From: Lars Ingebrigtsen To: Rajeev N Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> <87k0ljpulj.fsf@gnus.org> <87czrbve2s.fsf@hm.sivalik.com> X-Now-Playing: Jenny Hval's _The Practice of Love_: "High Alice" Date: Wed, 21 Jul 2021 18:18:07 +0200 In-Reply-To: <87czrbve2s.fsf@hm.sivalik.com> (Rajeev N.'s message of "Wed, 21 Jul 2021 12:14:51 -0400") Message-ID: <87sg07od34.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Rajeev N writes: > [Quoted text removed due to X-No-Archive] Thanks for checking. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49682 Cc: 49682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Rajeev N writes: > [Quoted text removed due to X-No-Archive] Thanks for checking. The test case is: (let () (run-with-timer 0 nil #'url-retrieve "https://www.gnu.org/" #'ignore) (diary-mail-entries)) This does not hang for me on the current trunk, unfortunately, but perhaps there's a timing issue involved? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 21 12:40:25 2021 Received: (at 49682) by debbugs.gnu.org; 21 Jul 2021 16:40:25 +0000 Received: from localhost ([127.0.0.1]:38462 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6FGj-0004ER-CH for submit@debbugs.gnu.org; Wed, 21 Jul 2021 12:40:25 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6FGe-0004EB-R9 for 49682@debbugs.gnu.org; Wed, 21 Jul 2021 12:40:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5CrbRxuNlfaG8N9UtrZTm8XfIJlQuvpJFczMa3WL6lE=; b=JpBDY3GKUeK/Ba2pC1bPtU/Oae e7lkRqvQB0ND1kow2sVa9q/weH+EMqdNKBZMgzwVyavRADLd/H5T/6Hc+0N4wRqlDe8nenkoVYkrC hBQgwDyIoB9hn+UuAM2jIy8YRkoFWZQbaz0bXzfX9ldvweiRUN7WK5tTuvsznJpzHnf8=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m6FGW-0008MT-HW; Wed, 21 Jul 2021 18:40:14 +0200 From: Lars Ingebrigtsen To: Rajeev N Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> <87k0ljpulj.fsf@gnus.org> <87czrbve2s.fsf@hm.sivalik.com> <87sg07od34.fsf@gnus.org> <87tukntz2m.fsf@hm.sivalik.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEXm2+Gzo6aRfYGI dHVrWVr///9IGotcAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UHFRAOG1d6HD4AAAGlSURBVDjLfVNr uqsgDExsF0DQBQi4AAUWUIH9r+kmPM7xtPbyQ/sxTiaZSQGQCC6H5Fjr4BZg6Bug4b8H1Rfg+Q3w nbi+V8pNfnonPuNxX2mLuRKJ/lKwlFRfydl6MeCpZFFfio/xJb2fQ6KUs/K8t+LEWToFt8J9PqQ1 tAowpFenLCKxSAF0O+AcOoBeuA1YGPCpD/pwQYAdJoPLCzAOjXmzu7gtXj5PBnIHdKY0UpleMPnU tV2es3xNCglZI4w5NhuFocgwYBiIw/RQjlGK+FcMXcOSpSou03BXJZjhFs8r90iwrJzOFtZfAJUS WxcFU4puMKhegjbAV5O3o98aAS6KW+Yop5yv2WNVl9Qxmz/3zDHv2bZa3JJ5W1cmSKv8vCZeJyD8 LCKfgvqs3Ua+27Y+XCWrqzbto+bMEeP5AyjdCOy2dV6XX+DR6LFYpzeObCiqtvyPkoKfj3mv+1KB JjgXu2VtxaZn2zeqEuhsOoHMLC62Bqj9M4Nms12oEa2d0XaIU0Ibvf/x4GIGHjoUcwPAVg7SazPh 06N6pRTQHbV1BbfnH2z9MNJRFfZ8AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTA3LTIxVDE2OjE0 OjI3KzAwOjAwWdPwzQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wNy0yMVQxNjoxNDoyNyswMDow MCiOSHEAAAAASUVORK5CYII= X-Now-Playing: Jenny Hval's _The Practice of Love_: "Six Red Cannas (feat Vivian Wang, Felicia Atkinson and Laura Jean)" Date: Wed, 21 Jul 2021 18:40:12 +0200 In-Reply-To: <87tukntz2m.fsf@hm.sivalik.com> (Rajeev N.'s message of "Wed, 21 Jul 2021 12:24:17 -0400") Message-ID: <87o8avoc2b.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: (Please keep the debbugs address in the CCs -- otherwise the mail won't reach the bug tracker.) Rajeev N writes: > Can you please confirm that it does not hang for you even when > smtpmail elisp library is being used to send mail. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49682 Cc: 49682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) (Please keep the debbugs address in the CCs -- otherwise the mail won't reach the bug tracker.) Rajeev N writes: > Can you please confirm that it does not hang for you even when > smtpmail elisp library is being used to send mail. Yes, I use smtpmail. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 21 15:29:27 2021 Received: (at 49682) by debbugs.gnu.org; 21 Jul 2021 19:29:27 +0000 Received: from localhost ([127.0.0.1]:38648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6HuJ-0000Dm-6b for submit@debbugs.gnu.org; Wed, 21 Jul 2021 15:29:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6HuH-0000Da-Vo for 49682@debbugs.gnu.org; Wed, 21 Jul 2021 15:29:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60246) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6HuC-0001ai-Fh; Wed, 21 Jul 2021 15:29:20 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4825 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6HuC-0007uh-3t; Wed, 21 Jul 2021 15:29:20 -0400 Date: Wed, 21 Jul 2021 22:29:16 +0300 Message-Id: <83mtqf4gab.fsf@gnu.org> From: Eli Zaretskii To: Rajeev N In-Reply-To: <87mtqfzpbl.fsf@hm.sivalik.com> (bug-gnu-emacs@gnu.org) Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49682 Cc: 49682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Wed, 21 Jul 2021 10:58:22 -0400 > From: Rajeev N via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > (let () (run-with-timer 0 nil #'url-retrieve "https://www.gnu.org/" #'ignore) (diary-mail-entries)) Don't do that, because it will hurt. Mixing timers with subprocesses is asking for trouble. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 21 17:32:29 2021 Received: (at 49682) by debbugs.gnu.org; 21 Jul 2021 21:32:29 +0000 Received: from localhost ([127.0.0.1]:38804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6JpN-0003Ei-Gx for submit@debbugs.gnu.org; Wed, 21 Jul 2021 17:32:29 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6JpL-0003ET-HA for 49682@debbugs.gnu.org; Wed, 21 Jul 2021 17:32:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HOa9ImUwV5oRpwW6efPz+IBTz1K17+TRw49RqQKyK7M=; b=WpYID/lgjqz3Mbs21us40EhQ8s NH8I2QB3gCRYbc/wyx9IIQAglOTIXAFE8Gp4ARIV6fTcqAYKqhBbX+ux/myCVSbZ6Anmn5pKGjVxe 6imZA99v5QznNs2Dy0HEe8V8+4jxRJfBEkWlNfVdasEPKFcAjrIszIgB+2vCQIY3NsGk=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m6JpB-0001yh-Et; Wed, 21 Jul 2021 23:32:20 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> <83mtqf4gab.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEX9/f3Qz82joJ9g XVzBvr1CPj2Cfn0aFxb////y4WnOAAAAAWJLR0QIht6VegAAAAd0SU1FB+UHFRUfBfhnwKYAAAGM SURBVDjLddPBTsMwDADQtuwD2mnaeThhZ1RjdmVZxJ1FVu5D8ANTld/HyaBN1+BDD36y47ppVWXR VuWod+U0Nl21WaZbtXvAo3rTVT2D5niu3l8eULvn5u4o8/G4fpS6p+UIbd3Vpl7t2uJ0nTUgkb9D F2cwgMwceCrquq6t6rWKefJ+hNoehTYp78iHCcBam/LIDimr0ADaIAkg9sRZRQSSNIAChTMAJf3B bqzd9yOstMwfG8kMxy57jwiGecBYCfsZ2FNIMcRHW4Dgc2hG4DCraKRzAhl4VrG6yLTpBIdIOXxf bsA9xZoJ8LJXQRbuwBHn8PoqgIN3qpflhrcR4kYGcuQQ5IgJ6hv0n+6yhNOAGtJMCyBZuA9FkC/i 56DBnK4Eh1unWYUW2B+YF2C3V+rpU923Mnbr+NybtJiwmyq02V75DAWwRhbyu+McwJoQZOfOF4HC sAAQGA7BfRWB5MqVQA7p4ZDD6hcC+7SUGdyuz8CLVn8XLtxXvP8HqgRpqvg3yc8Wr9wIi/gB4J+5 pIBYQnkAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDctMjFUMjE6MzE6MDUrMDA6MDAzPrefAAAA JXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA3LTIxVDIxOjMxOjA1KzAwOjAwQmMPIwAAAABJRU5ErkJg gg== X-Now-Playing: Severed Heads's _Clean_: "Violins And Moonlight" Date: Wed, 21 Jul 2021 23:32:16 +0200 In-Reply-To: <83mtqf4gab.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 21 Jul 2021 22:29:16 +0300") Message-ID: <87k0ljnyjj.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> (let () (run-with-timer 0 nil #'url-retrieve "https://www.gnu.org/" >> #'ignore) (diary-mail-entries)) > > Don't do that, because it will hurt. Mixing timers with subprocesses > is asking for troub [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49682 Cc: Rajeev N , 49682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: >> (let () (run-with-timer 0 nil #'url-retrieve "https://www.gnu.org/" >> #'ignore) (diary-mail-entries)) > > Don't do that, because it will hurt. Mixing timers with subprocesses > is asking for trouble. That's not my experience, really -- url-queue.el is based around firing off `url-retrieve' from timers, and I've never seen any problems. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 21 17:55:17 2021 Received: (at 49682) by debbugs.gnu.org; 21 Jul 2021 21:55:17 +0000 Received: from localhost ([127.0.0.1]:38847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6KBR-0003nq-B7 for submit@debbugs.gnu.org; Wed, 21 Jul 2021 17:55:17 -0400 Received: from vr0.sivalik.com ([104.238.130.12]:41940 helo=smtp.sivalik.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6KBQ-0003nb-08 for 49682@debbugs.gnu.org; Wed, 21 Jul 2021 17:55:16 -0400 Received: from hp (pool-96-242-220-52.nwrknj.fios.verizon.net [96.242.220.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: rajeev@sivalik.com) by smtp.sivalik.com (Postfix) with ESMTPSA id 9E4495FD1B; Wed, 21 Jul 2021 17:55:10 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sivalik.com; s=svlk; t=1626904510; bh=WXpwlSHkkQXybjJxkRFiq5l0wxKdCiEpv+iMzAYp3DY=; h=From:To:Cc:Subject:References:Date:From; b=WaDqm4qAdz4tQZMhkFx4uQSGRXcxQWCYEQ0C+7r37tHewn5vOxLfDCAFLVBSgF4je Q34A30RCFLrAvmvPm7e2zFXdHOOssWK9nAPZuX/Ni/+yKiPHm3lKiR3hJAhoPHWDwj mT9lXy9pkRUslrRsloxm9TSpCs6sx1lxRD060jt8= X-No-Archive: yes From: Rajeev N To: Lars Ingebrigtsen Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> <83mtqf4gab.fsf@gnu.org> <87k0ljnyjj.fsf@gnus.org> Date: Wed, 21 Jul 2021 17:53:00 -0400 Message-ID: <87im13xrk3.fsf@hm.sivalik.com> MIME-Version: 1.0 Content-Type: text/html Content-Disposition: inline X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 49682 Cc: Eli Zaretskii , 49682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/)

There is a bug but I am unable to pin-point where. All I could narrow it down to is that smtpmail open-network-stream hangs when it is invoked from within accept-process-output with timeout of 1 secs of url-retrieve.

I found a workaround for my needs by using smtpmail-queue-mail.

On Wed, 21 Jul 2021 at 11:32 pm +0200, Lars Ingebrigtsen wrote:

Eli Zaretskii <eliz@gnu.org> writes:

>> (let () (run-with-timer 0 nil #'url-retrieve "https://www.gnu.org/" >> #'ignore) (diary-mail-entries)) > > Don't do that, because it will hurt. Mixing timers with subprocesses > is asking for trouble.

That's not my experience, really – url-queue.el is based around firing off `url-retrieve' from timers, and I've never seen any problems.

From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 22 01:47:57 2021 Received: (at 49682) by debbugs.gnu.org; 22 Jul 2021 05:47:58 +0000 Received: from localhost ([127.0.0.1]:39182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6RYr-00055R-Jc for submit@debbugs.gnu.org; Thu, 22 Jul 2021 01:47:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6RYm-00055B-UR for 49682@debbugs.gnu.org; Thu, 22 Jul 2021 01:47:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42876) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6RYh-0005WI-9D; Thu, 22 Jul 2021 01:47:47 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2763 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6RYg-0001Ay-Tl; Thu, 22 Jul 2021 01:47:47 -0400 Date: Thu, 22 Jul 2021 08:47:28 +0300 Message-Id: <83fsw6528f.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87k0ljnyjj.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 21 Jul 2021 23:32:16 +0200) Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> <83mtqf4gab.fsf@gnu.org> <87k0ljnyjj.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49682 Cc: rajeev.jnk@sivalik.com, 49682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: Rajeev N , 49682@debbugs.gnu.org > Date: Wed, 21 Jul 2021 23:32:16 +0200 > > Eli Zaretskii writes: > > >> (let () (run-with-timer 0 nil #'url-retrieve "https://www.gnu.org/" > >> #'ignore) (diary-mail-entries)) > > > > Don't do that, because it will hurt. Mixing timers with subprocesses > > is asking for trouble. > > That's not my experience, really -- url-queue.el is based around firing > off `url-retrieve' from timers, and I've never seen any problems. Sheer luck, IMO. I don't really understand the need to run subprocesses from timers, since subprocess support already includes async operation and built-in time-outs. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 23 13:00:55 2021 Received: (at 49682) by debbugs.gnu.org; 23 Jul 2021 17:00:55 +0000 Received: from localhost ([127.0.0.1]:44481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6yXf-0000KS-M0 for submit@debbugs.gnu.org; Fri, 23 Jul 2021 13:00:55 -0400 Received: from vr0.sivalik.com ([104.238.130.12]:57378 helo=smtp.sivalik.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6yXc-0000KC-5t for 49682@debbugs.gnu.org; Fri, 23 Jul 2021 13:00:54 -0400 Received: from hp (pool-96-242-220-52.nwrknj.fios.verizon.net [96.242.220.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: rajeev@sivalik.com) by smtp.sivalik.com (Postfix) with ESMTPSA id 96B665FC08; Fri, 23 Jul 2021 13:00:46 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sivalik.com; s=svlk; t=1627059646; bh=OBErbFBD9Sf9bXE/nDmm68W7+Zztgk2OBpqXX5jXhHE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=kdQCvVX12dgK1ZV4lrPwBUdbJcYX1zz/E6tD5PXc6l8vG6xwSgS4ZuIRQ15ZMuNPH 752If9X57P5LFLpQxPLXfk6ZoME/BmoTIyyaDVfhTKHv1BqkNXtDAn72Anu8quMjFM n4Kh/1Dvc0z4KXJBv0IgqfKqS204I2P4xopn3ZMA= X-No-Archive: yes From: Rajeev N To: Lars Ingebrigtsen Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> <87k0ljpulj.fsf@gnus.org> <87czrbve2s.fsf@hm.sivalik.com> <87sg07od34.fsf@gnus.org> Date: Fri, 23 Jul 2021 13:00:46 -0400 In-Reply-To: <87sg07od34.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 21 Jul 2021 18:18:07 +0200") Message-ID: <874kclkls1.fsf@hm.sivalik.com> MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49682 Cc: 49682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Lars, Can you please check the following recipe, with smtpmail package without queuing, it hangs emacs for me, you may have to try couple of times. (let () (run-with-timer 0 nil #'url-retrieve "https://www.gnu.org/" #'ignore) (make-process :name "echo" :command '("echo") :sentinel (lambda (_p _e) (run-with-timer 0 nil #'diary-mail-entries)))) Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 23 14:31:08 2021 Received: (at 49682) by debbugs.gnu.org; 23 Jul 2021 18:31:08 +0000 Received: from localhost ([127.0.0.1]:44615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6zwx-0003YH-Ck for submit@debbugs.gnu.org; Fri, 23 Jul 2021 14:31:08 -0400 Received: from mail-wr1-f49.google.com ([209.85.221.49]:42835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6zws-0003OW-AL for 49682@debbugs.gnu.org; Fri, 23 Jul 2021 14:31:05 -0400 Received: by mail-wr1-f49.google.com with SMTP id j2so3285005wrx.9 for <49682@debbugs.gnu.org>; Fri, 23 Jul 2021 11:31:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=fiYk1D88s1PPkr8XIjCGNqMWmtkGyfE333zOrkr6S0Q=; b=pGZTSCRTj/jTqzMfenjM3TZ6d+dqZgLLW2rR73oYbb+RQCPUByl02Qubuttyj1dC69 AXwYWNwK4GYhpx4Za38ZMMscc0jmgKW/1BSHEbsdSoyIWtq2P/og9X9t9KrwsFVZVCFU GLJO/ZKoPj4ahbpVI6S4hshI8bk0Pj+q+hIewNJWkCYph1+7v5btUPSziUolxy1Yqagb C9Xnefwx6SYWkL6oWC29tTSkqnMw2OqlE/PX+881oPatTU87BSaHl8FuT5HKduhC3E2N psHkgTe4CloLczqaKSrZvnbxVdw12s3vsx8AGLrwWpiSjp2d8R6qQe+GDNQIz0N91E/y 63Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fiYk1D88s1PPkr8XIjCGNqMWmtkGyfE333zOrkr6S0Q=; b=UNhJqXWnMMYqA7YY5QHjMhZhq0KLjkfeWmZdxqKXe3AiIqQtkUaTWhXs18SsIxU8gH mCthtbBFVC9Nfj43Q8PhX0X3zp17gWBc887VS9OFnISBPZsi26EY2kXsZarzzr8vX4es Ug4nvDebXYQgoL/y1IeWF70B1nZL0s/u7YJrKCdqbzWMP37YPrQROlNCMW7oaYrNwgNf +xdGUTcxb8A9menE9uEfkn9A6gFh0uyL18LjQrZZsIjaIRM2wA46Oi59FHGm1vui81ZJ raUz7ATwxHQbbK33iSqphT/gsSVLKjlaPyw37LQGrQWLIlrrg+XRt7igV+qB7akOY1VO fl2A== X-Gm-Message-State: AOAM5316PCWnScSNYNfm/jH444kP/FLqE3OjniQs9nV4XuuRq9b0RsRR 68q+XXWaA+t0WaflvZ+aUoQjjRJxixU= X-Google-Smtp-Source: ABdhPJx51DShnuOSqfUmSq0IGpbUvR0Ydtu4tgXd0Q6NQQyX/xzwI08urEkpfq9Q9gMPahAnibB8aQ== X-Received: by 2002:adf:fb05:: with SMTP id c5mr6646820wrr.55.1627065056447; Fri, 23 Jul 2021 11:30:56 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id m32sm5423758wms.23.2021.07.23.11.30.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Jul 2021 11:30:55 -0700 (PDT) Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs To: Eli Zaretskii , Lars Ingebrigtsen References: <87mtqfzpbl.fsf@hm.sivalik.com> <83mtqf4gab.fsf@gnu.org> <87k0ljnyjj.fsf@gnus.org> <83fsw6528f.fsf@gnu.org> From: Dmitry Gutov Message-ID: Date: Fri, 23 Jul 2021 21:30:54 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <83fsw6528f.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 49682 Cc: rajeev.jnk@sivalik.com, 49682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) On 22.07.2021 08:47, Eli Zaretskii wrote: >> From: Lars Ingebrigtsen >> Cc: Rajeev N , 49682@debbugs.gnu.org >> Date: Wed, 21 Jul 2021 23:32:16 +0200 >> >> Eli Zaretskii writes: >> >>>> (let () (run-with-timer 0 nil #'url-retrieve "https://www.gnu.org/" >>>> #'ignore) (diary-mail-entries)) >>> >>> Don't do that, because it will hurt. Mixing timers with subprocesses >>> is asking for trouble. >> >> That's not my experience, really -- url-queue.el is based around firing >> off `url-retrieve' from timers, and I've never seen any problems. > > Sheer luck, IMO. > > I don't really understand the need to run subprocesses from timers, > since subprocess support already includes async operation and built-in > time-outs. This is a fairly common configuration. Consider a minimal IDE setup: 1. Code completion popup which is shown when Emacs is idle for XX ms. 2. Eldoc hints which are shown at YY ms after the user stops typing. When both are implemented using HTTP calls, you get "timers with subprocesses". In fact, I have a configuration like that (based on url.el) and get an occasional strong freeze (one that requires 3 C-g's to get out of) about once every 1-2 weeks. Haven't found a solid repro so far, so if the reporter has something stable-ish, I'll be following this report intently. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 24 06:28:27 2021 Received: (at 49682) by debbugs.gnu.org; 24 Jul 2021 10:28:27 +0000 Received: from localhost ([127.0.0.1]:45216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7EtO-0007AY-RT for submit@debbugs.gnu.org; Sat, 24 Jul 2021 06:28:27 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7EtN-0007AL-TL for 49682@debbugs.gnu.org; Sat, 24 Jul 2021 06:28:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=98PtsM9PNvJ3tfy18I7HahnP6lxeCVZuW1jJwj+bAR0=; b=XPt5+SA6bO5zjOoFE8d1Jo8ayu mCyPeYehFviZv3dxhV3mPvpZyzVHbsjyh6vSGmh+E6jgXMkc/lSvP5pzGX6zdLes5keV/JzFLZWEn ib1rXJ0Y5olKGclObPsSFTGgxDLeCi4Rj5/Z33zrd4CeE3IcsjE6bYP2S6d4noWGJkMo=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m7EtF-0004FA-R3; Sat, 24 Jul 2021 12:28:20 +0200 From: Lars Ingebrigtsen To: Rajeev N Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> <87k0ljpulj.fsf@gnus.org> <87czrbve2s.fsf@hm.sivalik.com> <87sg07od34.fsf@gnus.org> <874kclkls1.fsf@hm.sivalik.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEX41p3otofWmnCp aVNKLyb///85U+krAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UHGAoJDHgz8UUAAAG+SURBVDjLbZPb leQgDETBk4CENwAjOoA2cgLbkH9MWxL4MbNDf7QPl1LxKIUwB4VvI15fRN/gE8Qn4CeIvwKQhS7E fJUkgGtdvACbgsMpYU5zhZRE27YQnwrx/0UxStry6cHJwZdq762CMIqwCRwsNo8BEfEcE/QxmuaT SDGno5+kxm3MOwhzFlxlCkQNXIrePjG7w09gkmigOHi1m7wj/w42caAO1v6oNb0dfD3A3+n9H2jZ wfCITxCt0gRhPZ6KdIOnP3G+AZ7h9GnJBBNQvjUfTtU2pf7A/tTu07YYdW53CSsvmyQ//l5ZtJZq pTisVLIWu/amutayFzWwhUJFHDQ8LyxyKQYyAFa89Gh6qEorMhQprPngT2na8VP5lPoa5rQmxZd5 9KppTyg1tksStVrmYF7tPdYyDph2ThmJAcChcbvmYnFeaPF52EsOI1YABPsUKUqWVxMakUZKcCGW VogiQB4gOUCMI0PE6U/fzrAPABXOyXnt7xuMUJ7dsNNoKGRXpiKEYl1yNhRAzhO8cCmdpjuAn4k9 wniSOmpNIBmS0Sbt6kEHArCMMLgiXkB45qS9z3b2fF1AdR+15B+Mln+kRFSe+QAAACV0RVh0ZGF0 ZTpjcmVhdGUAMjAyMS0wNy0yNFQxMDowOToxMiswMDowMGuojjIAAAAldEVYdGRhdGU6bW9kaWZ5 ADIwMjEtMDctMjRUMTA6MDk6MTIrMDA6MDAa9TaOAAAAAElFTkSuQmCC X-Now-Playing: Heidi Berry's _Heidi Berry_: "Follow" Date: Sat, 24 Jul 2021 12:28:17 +0200 In-Reply-To: <874kclkls1.fsf@hm.sivalik.com> (Rajeev N.'s message of "Fri, 23 Jul 2021 13:00:46 -0400") Message-ID: <87v950gg5a.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Rajeev N writes: > [Quoted text removed due to X-No-Archive] I've tried it a bunch of times, but it never hangs for me. It does message this, though: Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49682 Cc: 49682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Rajeev N writes: > [Quoted text removed due to X-No-Archive] I've tried it a bunch of times, but it never hangs for me. It does message this, though: Sending via mail... Blocking call to accept-process-output with quit inhibited!! [4 times] Sending email Blocking call to accept-process-output with quit inhibited!! Sending email done Blocking call to accept-process-output with quit inhibited!! -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 24 06:46:34 2021 Received: (at 49682) by debbugs.gnu.org; 24 Jul 2021 10:46:34 +0000 Received: from localhost ([127.0.0.1]:45247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7FAw-0007fj-12 for submit@debbugs.gnu.org; Sat, 24 Jul 2021 06:46:34 -0400 Received: from vr0.sivalik.com ([104.238.130.12]:40874 helo=smtp.sivalik.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7FAs-0007fT-VF for 49682@debbugs.gnu.org; Sat, 24 Jul 2021 06:46:32 -0400 Received: from hp (pool-96-242-220-29.nwrknj.fios.verizon.net [96.242.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: rajeev@sivalik.com) by smtp.sivalik.com (Postfix) with ESMTPSA id 52F1361BC2; Sat, 24 Jul 2021 06:46:25 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sivalik.com; s=svlk; t=1627123585; bh=PosIIIMpFshBetXxWrMrPuq/a73YdRhdJ9NTWgnWwEo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=lG1TUa/+zs4vDmJQhF689ahN63G4/3zLQi7L9jx9nnxg7e84jKHwDkkkRYDGtdXda TdNXfd80tE857RSeB8Amh1RXt6flr7ExwZexfwP2r41QCm8oa7QouFUyM5PCFDqVLq UHk9qM4vOF0YTeqfpKJBF85ed1QPj8Ez3p1oLGtc= X-No-Archive: yes From: Rajeev N To: Lars Ingebrigtsen Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> <87k0ljpulj.fsf@gnus.org> <87czrbve2s.fsf@hm.sivalik.com> <87sg07od34.fsf@gnus.org> <874kclkls1.fsf@hm.sivalik.com> <87v950gg5a.fsf@gnus.org> Date: Sat, 24 Jul 2021 06:46:25 -0400 In-Reply-To: <87v950gg5a.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 24 Jul 2021 12:28:17 +0200") Message-ID: <8735s4at1a.fsf@hm.sivalik.com> MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49682 Cc: 49682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Thank for checking. It always hangs for me in the 1st or 2nd try. Here is what I get when I send a usr2 signal to emacs process. Debugger entered--Lisp error: (quit) accept-process-output(# 0.05) network-stream-get-response(# 1 "^[0-9]+ .*\15\n") network-stream-open-starttls("smtpmail" # "smtp.gmail.com" 587 (:type starttls :return-list t :warn-unless-encrypted nil :capability-command "EHLO hp\15\n" :end-of-command "^[0-9]+ .*\15\n" :success "^2.*\n" :always-query-capabilities t :starttls-function #f(compiled-function (capabilities) #) :client-certificate t :use-starttls-if-possible t)) open-network-stream("smtpmail" # "smtp.gmail.com" 587 :type starttls :return-list t :warn-unless-encrypted nil :capability-command "EHLO hp\15\n" :end-of-command "^[0-9]+ .*\15\n" :success "^2.*\n" :always-query-capabilities t :starttls-function #f(compiled-function (capabilities) #) :client-certificate t :use-starttls-if-possible t) smtpmail-via-smtp(("rajeev.jnk@sivalik.com") #) smtpmail-send-it() message-smtpmail-send-it() message-multi-smtp-send-mail() gnus-agent-send-mail() message--send-mail-maybe-partially() message-send-mail(nil) message-send-via-mail(nil) message-send(nil) message-send-and-exit(nil) funcall-interactively(message-send-and-exit nil) call-interactively(message-send-and-exit) diary-mail-entries() apply(diary-mail-entries nil) timer-event-handler([t 24827 60854 498512 nil diary-mail-entries nil nil 704000]) From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 26 14:58:52 2021 Received: (at 49682) by debbugs.gnu.org; 26 Jul 2021 18:58:52 +0000 Received: from localhost ([127.0.0.1]:51519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m85oS-0005GG-EM for submit@debbugs.gnu.org; Mon, 26 Jul 2021 14:58:52 -0400 Received: from mail-ej1-f49.google.com ([209.85.218.49]:36728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m85oO-0005G1-5M for 49682@debbugs.gnu.org; Mon, 26 Jul 2021 14:58:52 -0400 Received: by mail-ej1-f49.google.com with SMTP id gn26so11929815ejc.3 for <49682@debbugs.gnu.org>; Mon, 26 Jul 2021 11:58:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=XzUBPBf3hfHVXFIb5mxjar1TEIkyzjocAKK5f3vTvig=; b=pl17aZbhIMH/aQwhUQtHcbmmgW76Ga7Kds0VATWEysv1Fldqw8YR5COMGZ9A2bRKWM m7xEIpUgAO4IpfilSWFNm1PU+aD4LVnX30HsYEKOLlhfTm80CpsIx+a7M3kVHIiAAEiI USySwpMpKUoO6UNhviL0pmFfuj1NBqwYRQVqhJvM6XvL3c0wG584v5ciPfz4unCsjbXN bXXKG2bDBFHkpX6YqyFhYfOVpnRNwa2bFsWNh/H6engWtJnhaRyWqpuSNy9S0Y4ocdEs PQpAsmigD9XUdYndBzntzGCkyzqZ+oPS2R3AwmlgDRYkYQEOQM96iRyUkbMhCxHLN9BB Efqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=XzUBPBf3hfHVXFIb5mxjar1TEIkyzjocAKK5f3vTvig=; b=FNTrlwVFXyvFLmsJNBpF0X1JzLDXp2EcL8O6g3gfkAM9RzFACTkTJAKmmqI6gBoYc+ +PTBYZeDYsvMgxzf9n+e/bt/tENsdlk6eLUVURMuDE1mFtGR20cTCS6x0eXKhir0k9Yo qtmMjUT26qzDXSmqriCwOxULAoih6vr6VPd3rxRzWalUewBqN0uQ7iKfrSFJV1/y/X+m V4cds6oKl9V8oZshxtfurazv6xO7A9REberzLDUSIAqW2Yf19fQGa7Zwo4o/8M9Z2ky6 Gq+SnyorKNz2IBBKZmY8nWZhtbGrT3Kyv8TM4+0OT72wY/Wy9KM6HiV+CL97/0TsqdtS cR/Q== X-Gm-Message-State: AOAM530M8zDbcYqyDy7sZK6AJAU4xV7SFvc+hbVjwBN1F3F0ZwJED4U1 JQj/UEMpdE7KNy5TUjQVaJk2pe6qw3U= X-Google-Smtp-Source: ABdhPJyx8hmYtPu1vUYyubMiwReloflptkcxCVkXrfb4YjLLcrLt0K52Zxd/g+8nHmliIBa0p18s0Q== X-Received: by 2002:a17:907:1b22:: with SMTP id mp34mr18450102ejc.408.1627325921879; Mon, 26 Jul 2021 11:58:41 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id f18sm157085ejx.23.2021.07.26.11.58.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jul 2021 11:58:41 -0700 (PDT) Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs To: Rajeev N , Lars Ingebrigtsen References: <87mtqfzpbl.fsf@hm.sivalik.com> <87k0ljpulj.fsf@gnus.org> <87czrbve2s.fsf@hm.sivalik.com> <87sg07od34.fsf@gnus.org> <874kclkls1.fsf@hm.sivalik.com> From: Dmitry Gutov Message-ID: <895868e4-4f20-ba77-f4e5-7ea2715d18f0@yandex.ru> Date: Mon, 26 Jul 2021 21:58:39 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <874kclkls1.fsf@hm.sivalik.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 49682 Cc: 49682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) On 23.07.2021 20:00, Rajeev N via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > (let () > (run-with-timer 0 nil #'url-retrieve"https://www.gnu.org/" #'ignore) > (make-process :name "echo" :command '("echo") > :sentinel (lambda (_p _e) (run-with-timer 0 nil #'diary-mail-entries)))) Any chance you have an example of the problem that doesn't require SMTP/Mail/Gnus to be configured in Emacs? From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 26 15:54:53 2021 Received: (at 49682) by debbugs.gnu.org; 26 Jul 2021 19:54:53 +0000 Received: from localhost ([127.0.0.1]:51558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m86gf-0006fj-0K for submit@debbugs.gnu.org; Mon, 26 Jul 2021 15:54:53 -0400 Received: from vr0.sivalik.com ([104.238.130.12]:36600 helo=smtp.sivalik.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m86ga-0006fT-LU for 49682@debbugs.gnu.org; Mon, 26 Jul 2021 15:54:51 -0400 Received: from hp (pool-96-242-220-29.nwrknj.fios.verizon.net [96.242.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: rajeev@sivalik.com) by smtp.sivalik.com (Postfix) with ESMTPSA id E8D0862046; Mon, 26 Jul 2021 15:54:42 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sivalik.com; s=svlk; t=1627329283; bh=DwrVdfHIudpW6F2h3zIoHen1QC9vEFHw1B9yN22HK1M=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=VVy7+n/rKQRV0tlduwrhLE7eJL16VDdrZMYJ3lC8FgvemNLC3ghL//lhwxi71dquL EflJFFzkY8M14JchPO4FBJYtm/T9IRxzbDAR2wmL40a8ZqNXO/SS9+3zGtaPU0krL2 KUU7w6jmlXK39+MdXvJRDrSeAi5tf+EYsLT+a79s= X-No-Archive: yes From: Rajeev N To: Dmitry Gutov Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> <87k0ljpulj.fsf@gnus.org> <87czrbve2s.fsf@hm.sivalik.com> <87sg07od34.fsf@gnus.org> <874kclkls1.fsf@hm.sivalik.com> <895868e4-4f20-ba77-f4e5-7ea2715d18f0@yandex.ru> Date: Mon, 26 Jul 2021 15:54:42 -0400 In-Reply-To: <895868e4-4f20-ba77-f4e5-7ea2715d18f0@yandex.ru> (Dmitry Gutov's message of "Mon, 26 Jul 2021 21:58:39 +0300") Message-ID: <87y29s7svx.fsf@hm.sivalik.com> MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49682 Cc: Lars Ingebrigtsen , 49682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) For me the following also hangs emacs. The problem seems to me that (accept-process-output stream 0.05) in network-stream-get-response does not return even though it has a timeout of .05. (let () (run-with-timer 0 nil #'url-retrieve "https://www.gnu.org/" #'ignore) (make-process :name "echo" :command '("echo") :sentinel (lambda (_p _e) (with-current-buffer (generate-new-buffer " *debug") (run-with-timer 0 nil #'open-network-stream "testing" (current-buffer) "smtp.gmail.com" 587 :type 'starttls :return-list t :warn-unless-encrypted t :capability-command "EHLO www.gnu.org\r\n" :end-of-command "^[0-9]+ .*\r\n" :success "^2.*\n" :always-query-capabilities t :starttls-function (lambda (capabilities) (and (string-match "[ -]STARTTLS" capabilities) "STARTTLS\r\n")) :client-certificate t :use-starttls-if-possible t))))) On Mon, 26 Jul 2021 at 9:58 pm +0300, Dmitry Gutov wrote: #+begin_quote On 23.07.2021 20:00, Rajeev N via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > (let () > (run-with-timer 0 nil #'url-retrieve"https://www.gnu.org/" #'ignore) > (make-process :name "echo" :command '("echo") > :sentinel (lambda (_p _e) (run-with-timer 0 nil #'diary-mail-entries)))) Any chance you have an example of the problem that doesn't require SMTP/Mail/Gnus to be configured in Emacs? #+end_quote From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 26 16:23:08 2021 Received: (at 49682) by debbugs.gnu.org; 26 Jul 2021 20:23:08 +0000 Received: from localhost ([127.0.0.1]:51583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8780-0007M9-1A for submit@debbugs.gnu.org; Mon, 26 Jul 2021 16:23:08 -0400 Received: from mail-ej1-f47.google.com ([209.85.218.47]:40611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m877x-0007LT-PQ for 49682@debbugs.gnu.org; Mon, 26 Jul 2021 16:23:06 -0400 Received: by mail-ej1-f47.google.com with SMTP id oz16so9868206ejc.7 for <49682@debbugs.gnu.org>; Mon, 26 Jul 2021 13:23:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=9ihoXq3xIymE2QoQfk8diEuJn3bZ6GL+N14PHwHUXE8=; b=PM0ZjOaWM6qHs5qtIrbRwuFDVY5s8xX7dRMXWv7OwergVHd4SdRLrXCYwD7XPRByEs V7Spj8Z6tFVlK9nY/eAV1D37xh+q93hXmJ1GORtz872tajEJWJz0/x6YdeCSGY89+AKb lO3Wc2ATr9qtopqQ/lbeU3qP0cmLei7r/hGDQQpWL6Oy3CJPCLTjuOm6L7hyP5dMZh6U xetfiP/WKr+IXtoZLIVxJshndPD1ZjSQte1SzPY2Yh9BzFqFXTxXvkU8Aoawit/Uyw+I VvR4rvYFEbfeR1b5tIfVDaSoJPgsV/9agXM1AffZSiv8q5sEUj1l8Z16JO55AC2PHb+B L0pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9ihoXq3xIymE2QoQfk8diEuJn3bZ6GL+N14PHwHUXE8=; b=fZEVMiPI3Td9tp0Q5rKJ3RJEqUOcu7d9veDjqe/8RD691udOo8V6PBKtfn5R0a7AK5 xJAMspaUn7+zICCtI9PUlBdLZ1DQ1FE2n7sZGQI63W46JSJXkTmAtcpIrvKPr6udiBZG 9gYYUJ+57l0sRO9jvVyhJXvPGZiZ86YZfCjKNzAbVOo9buBO8X4Ne6smkneY3WNGQpim SWQUDWEai0LcAlMO5Jp7TfsYQA3ZLC19PS7T8DapIX9qEQPqeDIo6ANgfaqUsetryvgI UKQgqp6ROD0Y6nP3m7PPBkSdxK9JYiywGaIV1EDpIAtIWMp2RPkklVdbjV9Cw5gn26nA 7CoA== X-Gm-Message-State: AOAM531432IF0aZr3pntW/gYnhi7EhCOkIGUlrR27mQReelLD1MlKcKB ySFNxK7B+czV1UyIchjeN8qmcHXOFs4= X-Google-Smtp-Source: ABdhPJzpIboqixJLxutdFjp6iS42y9vjPlPXkz37q4S5VqbBrmAwlglubLyl1V9t4z+KUI0JWl0Bvw== X-Received: by 2002:a17:906:fb11:: with SMTP id lz17mr1042198ejb.336.1627330979952; Mon, 26 Jul 2021 13:22:59 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id i6sm205304ejd.57.2021.07.26.13.22.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jul 2021 13:22:59 -0700 (PDT) Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs To: Rajeev N References: <87mtqfzpbl.fsf@hm.sivalik.com> <87k0ljpulj.fsf@gnus.org> <87czrbve2s.fsf@hm.sivalik.com> <87sg07od34.fsf@gnus.org> <874kclkls1.fsf@hm.sivalik.com> <895868e4-4f20-ba77-f4e5-7ea2715d18f0@yandex.ru> <87y29s7svx.fsf@hm.sivalik.com> From: Dmitry Gutov Message-ID: <27f2f996-5cb2-acf2-4f94-b964a7f1d32a@yandex.ru> Date: Mon, 26 Jul 2021 23:22:57 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <87y29s7svx.fsf@hm.sivalik.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 49682 Cc: Lars Ingebrigtsen , 49682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) On 26.07.2021 22:54, Rajeev N via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > For me the following also hangs emacs. The problem seems to me that (accept-process-output stream 0.05) in network-stream-get-response does not return even though it has a timeout of .05. > > (let () > (run-with-timer 0 nil #'url-retrieve"https://www.gnu.org/" #'ignore) > (make-process :name "echo" :command '("echo") > :sentinel (lambda (_p _e) > (with-current-buffer (generate-new-buffer " *debug") > (run-with-timer 0 nil #'open-network-stream > "testing" (current-buffer) "smtp.gmail.com" 587 > :type 'starttls > :return-list t > :warn-unless-encrypted t > :capability-command "EHLOwww.gnu.org\r\n" > :end-of-command "^[0-9]+ .*\r\n" > :success "^2.*\n" > :always-query-capabilities t > :starttls-function > (lambda (capabilities) > (and (string-match "[ -]STARTTLS" capabilities) > "STARTTLS\r\n")) > :client-certificate t > :use-starttls-if-possible t))))) Hmm, that doesn't freeze for me. Even though if I follow 'C-x C-e' with 'C-p' right away, it will wait for like 0.5s before moving the cursor to the previous line. I have tried it in a number of versions of Emacs, so far no luck. Any chance you're not starting with 'emacs -Q' and your personal config affects this? From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 26 16:55:57 2021 Received: (at 49682) by debbugs.gnu.org; 26 Jul 2021 20:55:57 +0000 Received: from localhost ([127.0.0.1]:51631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m87dl-00087t-KD for submit@debbugs.gnu.org; Mon, 26 Jul 2021 16:55:57 -0400 Received: from vr0.sivalik.com ([104.238.130.12]:37048 helo=smtp.sivalik.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m87dj-00087e-RB for 49682@debbugs.gnu.org; Mon, 26 Jul 2021 16:55:56 -0400 Received: from hp (pool-96-242-220-29.nwrknj.fios.verizon.net [96.242.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: rajeev@sivalik.com) by smtp.sivalik.com (Postfix) with ESMTPSA id 2120B620CF; Mon, 26 Jul 2021 16:55:50 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sivalik.com; s=svlk; t=1627332950; bh=zk5GMDjVbUFL094reL+VcFV4mzeDXwUH8bUxHEYQPXs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=PZdAdyuwaMCyKrxEhF63XTPzvAoMx8fyn/em1b/qWRThv73C1QvH19oyoxvO+umxn TWvn2n7gPcukcoCaxYbJyI8MZcy1w8gvOI21XL9osMQ7k94AgIAvupTtBx1OHqDDvT rkYffoNRXhyRotVywC2m8VwQhvZxbmifRg7AewyA= X-No-Archive: yes From: Rajeev N To: Dmitry Gutov Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> <87k0ljpulj.fsf@gnus.org> <87czrbve2s.fsf@hm.sivalik.com> <87sg07od34.fsf@gnus.org> <874kclkls1.fsf@hm.sivalik.com> <895868e4-4f20-ba77-f4e5-7ea2715d18f0@yandex.ru> <87y29s7svx.fsf@hm.sivalik.com> <27f2f996-5cb2-acf2-4f94-b964a7f1d32a@yandex.ru> Date: Mon, 26 Jul 2021 16:55:49 -0400 In-Reply-To: <27f2f996-5cb2-acf2-4f94-b964a7f1d32a@yandex.ru> (Dmitry Gutov's message of "Mon, 26 Jul 2021 23:22:57 +0300") Message-ID: <874kcgeqwa.fsf@hm.sivalik.com> MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49682 Cc: Lars Ingebrigtsen , 49682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I am able to reproduce the hang on head of master and emacs-27 branches using emacs -Q, it does not happen every time, sometime it takes a few tries. The following is what is shown by strace in a loop: pselect6(20, [3 5 13 17 19], NULL, NULL, {tv_sec=0, tv_nsec=0}, {NULL, 8}) = 1 (in [19], left {tv_sec=0, tv_nsec=0}) rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 pselect6(20, [3 5 6 8 13 15 17 19], [], NULL, {tv_sec=0, tv_nsec=0}, {NULL, 8}) = 1 (in [19], left {tv_sec=0, tv_nsec=0}) rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 pselect6(20, [3 5 13 17 19], NULL, NULL, {tv_sec=0, tv_nsec=0}, {NULL, 8}) = 1 (in [19], left {tv_sec=0, tv_nsec=0}) rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 pselect6(20, [3 5 6 8 13 15 17 19], [], NULL, {tv_sec=0, tv_nsec=0}, {NULL, 8}) = 1 (in [19], left {tv_sec=0, tv_nsec=0}) rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 27 10:13:57 2021 Received: (at 49682) by debbugs.gnu.org; 27 Jul 2021 14:13:57 +0000 Received: from localhost ([127.0.0.1]:53469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8NqG-0006Vn-U9 for submit@debbugs.gnu.org; Tue, 27 Jul 2021 10:13:57 -0400 Received: from mail-ed1-f45.google.com ([209.85.208.45]:37725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8NqE-0006VY-Lr for 49682@debbugs.gnu.org; Tue, 27 Jul 2021 10:13:55 -0400 Received: by mail-ed1-f45.google.com with SMTP id h8so15556316ede.4 for <49682@debbugs.gnu.org>; Tue, 27 Jul 2021 07:13:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=VAHr/0dmK2ZXczQjZldDHqy0zIxHms31ETcVwg3fbl4=; b=mSKQ/+uVbD/+7Vq6ULNtVWdAqJowvuZD7N4nP+DJCEWD3y2tBFQM536Jd99hXNywvF A01/4Dbo3Fb7FUbLAvgxhCx8AgQYO50ie6gZProxskMW1wPg3dkgrwYclaOtoecWWLNm UD72u4aw8t9tWg1ZyKnlpdwNLNYOULAecFZUaYBuIAm+cjBcIsKBZQ38GVkliABZSZ2r npeXGpEv0QZh1cveEuwvJWWrbU0RFsGcDYaMbFkE+q2Ipnu5KaLUYMdHgNltHxkP095r jdsbyiSybwfUIiKCWCqKNyQE2hYbD0fu8Ml7AK3MIQ8WdcbYmI0m+3utSByd+TSi84f7 gZRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=VAHr/0dmK2ZXczQjZldDHqy0zIxHms31ETcVwg3fbl4=; b=CHLrjwf5tMZDaU2VpkV31YsS+PP8a1oBXbWjR60GYzu5g9MKUFgaG6TklI2HEx8KVB oBReFcTB423pLBO1DPiPU4VoWTdOsgg1WyDP2X+illdZ/9SEd0vsilobGv75oSMdX0zR B0P6u0DeVv+dwskJfo56vYy8RHJcaDN+tyKhmUTh97lLHGbbv+z6y22ibBpdXcUhYfVb Tr25ZO+mmnsI5VK7ThEgG6/jJYaEIsfmFET/DbOqq4sQGXVjV9WsZ1kJXcIyhsW/jF1f ebZt5Hf7kEyzru/YJl2FrZuWgaKEltxvB5XY4pY1xR0S4QhXfA1YSpuRs62KBvorjVc9 o6hA== X-Gm-Message-State: AOAM530Ezw64rCeDfDj/miB75yNS6vHDTB6knHnftaKoNryYb4iE6WnU MVuGjDFHTEDxv+MuC3S8PUI= X-Google-Smtp-Source: ABdhPJxD5+v4Z/gPjRK/GYkYwI78P7paBVwPpV+b97rMSfYUAqRVXyzMTipQGkyZ3p300695jvsclg== X-Received: by 2002:a05:6402:3551:: with SMTP id f17mr28047974edd.223.1627395228838; Tue, 27 Jul 2021 07:13:48 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id cn21sm1313130edb.81.2021.07.27.07.13.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Jul 2021 07:13:48 -0700 (PDT) Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs To: Rajeev N References: <87mtqfzpbl.fsf@hm.sivalik.com> <87k0ljpulj.fsf@gnus.org> <87czrbve2s.fsf@hm.sivalik.com> <87sg07od34.fsf@gnus.org> <874kclkls1.fsf@hm.sivalik.com> <895868e4-4f20-ba77-f4e5-7ea2715d18f0@yandex.ru> <87y29s7svx.fsf@hm.sivalik.com> <27f2f996-5cb2-acf2-4f94-b964a7f1d32a@yandex.ru> <874kcgeqwa.fsf@hm.sivalik.com> From: Dmitry Gutov Message-ID: <4b30f49a-599d-a063-9923-44e59632a9f8@yandex.ru> Date: Tue, 27 Jul 2021 17:13:46 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <874kcgeqwa.fsf@hm.sivalik.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 49682 Cc: Lars Ingebrigtsen , 49682@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) On 26.07.2021 23:55, Rajeev N wrote: > I am able to reproduce the hang on head of master and emacs-27 branches using emacs -Q, it does not happen every time, sometime it takes a few tries. The following is what is shown by strace in a loop: > > pselect6(20, [3 5 13 17 19], NULL, NULL, {tv_sec=0, tv_nsec=0}, {NULL, 8}) = 1 (in [19], left {tv_sec=0, tv_nsec=0}) > rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 > rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 > rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 > rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 > pselect6(20, [3 5 6 8 13 15 17 19], [], NULL, {tv_sec=0, tv_nsec=0}, {NULL, 8}) = 1 (in [19], left {tv_sec=0, tv_nsec=0}) > rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 > rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 > rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 > rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 > pselect6(20, [3 5 13 17 19], NULL, NULL, {tv_sec=0, tv_nsec=0}, {NULL, 8}) = 1 (in [19], left {tv_sec=0, tv_nsec=0}) > rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 > rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 > rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 > rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 > pselect6(20, [3 5 6 8 13 15 17 19], [], NULL, {tv_sec=0, tv_nsec=0}, {NULL, 8}) = 1 (in [19], left {tv_sec=0, tv_nsec=0}) > rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 > rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 Maybe Lars or Eli can interpret this log. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 27 13:23:04 2021 Received: (at 49682) by debbugs.gnu.org; 27 Jul 2021 17:23:04 +0000 Received: from localhost ([127.0.0.1]:53807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8QnI-0007If-9P for submit@debbugs.gnu.org; Tue, 27 Jul 2021 13:23:04 -0400 Received: from vr0.sivalik.com ([104.238.130.12]:44130 helo=smtp.sivalik.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8QnE-0007Ht-Ti for 49682@debbugs.gnu.org; Tue, 27 Jul 2021 13:23:02 -0400 Received: from hp (pool-96-242-220-29.nwrknj.fios.verizon.net [96.242.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: rajeev@sivalik.com) by smtp.sivalik.com (Postfix) with ESMTPSA id 6556B5E0B2; Tue, 27 Jul 2021 13:22:55 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sivalik.com; s=svlk; t=1627406575; bh=cPD3OKpf6LgXvizTmIEQuTxQYnR2UBADDNELHtm18ps=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ecOJphiK0mq9hCWvBaTH9HUTDXXTprUhr1aNg+zGI436zHaFwUzZowKT9Vq1kwx62 ajI9LspOwK0Zozx3KP8OOH651iQXOTwgZHQdiv0V6wUTIggFvvN9URb0yTKbGh02JU fx+oAbqYygW9N9beseP3BKrS1GfrjBs0UU7aqrOY= X-No-Archive: yes From: Rajeev N To: Dmitry Gutov Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> <87k0ljpulj.fsf@gnus.org> <87czrbve2s.fsf@hm.sivalik.com> <87sg07od34.fsf@gnus.org> <874kclkls1.fsf@hm.sivalik.com> <895868e4-4f20-ba77-f4e5-7ea2715d18f0@yandex.ru> <87y29s7svx.fsf@hm.sivalik.com> <27f2f996-5cb2-acf2-4f94-b964a7f1d32a@yandex.ru> <874kcgeqwa.fsf@hm.sivalik.com> <4b30f49a-599d-a063-9923-44e59632a9f8@yandex.ru> Date: Tue, 27 Jul 2021 13:22:54 -0400 In-Reply-To: <4b30f49a-599d-a063-9923-44e59632a9f8@yandex.ru> (Dmitry Gutov's message of "Tue, 27 Jul 2021 17:13:46 +0300") Message-ID: <87v94v3c41.fsf@hm.sivalik.com> MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49682 Cc: Lars Ingebrigtsen , 49682@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Another input that may help resolve the issue: In the pselect loop- file descriptor 19 is show in CLOSE_WAIT state by lsof. lsof: emacs 66152 rajeev 19u IPv4 2567759 0t0 TCP hp:37994->wildebeest.gnu.org:https (CLOSE_WAIT) strace: pselect6(20, [3 5 6 8 13 15 17 19], [], NULL, {tv_sec=0, tv_nsec=0}, {NULL, 8}) = 1 (in [19], left {tv_sec=0, tv_nsec=0}) rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 pselect6(20, [3 5 13 17 19], NULL, NULL, {tv_sec=0, tv_nsec=0}, {NULL, 8}) = 1 (in [19], left {tv_sec=0, tv_nsec=0}) From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 27 13:35:32 2021 Received: (at 49682) by debbugs.gnu.org; 27 Jul 2021 17:35:32 +0000 Received: from localhost ([127.0.0.1]:53817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8QzM-0007cs-K7 for submit@debbugs.gnu.org; Tue, 27 Jul 2021 13:35:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8QzI-0007cZ-Uk for 49682@debbugs.gnu.org; Tue, 27 Jul 2021 13:35:31 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56826) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8QzC-0003uP-SO; Tue, 27 Jul 2021 13:35:22 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3438 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8Qz9-00019I-TE; Tue, 27 Jul 2021 13:35:21 -0400 Date: Tue, 27 Jul 2021 20:35:12 +0300 Message-Id: <831r7jvewf.fsf@gnu.org> From: Eli Zaretskii To: Rajeev N In-Reply-To: <87v94v3c41.fsf@hm.sivalik.com> (message from Rajeev N on Tue, 27 Jul 2021 13:22:54 -0400) Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> <87k0ljpulj.fsf@gnus.org> <87czrbve2s.fsf@hm.sivalik.com> <87sg07od34.fsf@gnus.org> <874kclkls1.fsf@hm.sivalik.com> <895868e4-4f20-ba77-f4e5-7ea2715d18f0@yandex.ru> <87y29s7svx.fsf@hm.sivalik.com> <27f2f996-5cb2-acf2-4f94-b964a7f1d32a@yandex.ru> <874kcgeqwa.fsf@hm.sivalik.com> <4b30f49a-599d-a063-9923-44e59632a9f8@yandex.ru> <87v94v3c41.fsf@hm.sivalik.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49682 Cc: larsi@gnus.org, 49682@debbugs.gnu.org, dgutov@yandex.ru X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Disposition-Notification-To: rajeev.jnk@sivalik.com > From: Rajeev N > Cc: Lars Ingebrigtsen , 49682@debbugs.gnu.org, Eli > Zaretskii > Date: Tue, 27 Jul 2021 13:22:54 -0400 > > Another input that may help resolve the issue: > > In the pselect loop- file descriptor 19 is show in CLOSE_WAIT state by lsof. > > lsof: > > emacs 66152 rajeev 19u IPv4 2567759 0t0 TCP hp:37994->wildebeest.gnu.org:https (CLOSE_WAIT) If the remote host closed the connection, why isn't our sentinel being called and the connection closed? From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 27 17:40:37 2021 Received: (at 49682) by debbugs.gnu.org; 27 Jul 2021 21:40:37 +0000 Received: from localhost ([127.0.0.1]:54129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8UoX-0007Pa-Cu for submit@debbugs.gnu.org; Tue, 27 Jul 2021 17:40:37 -0400 Received: from vr0.sivalik.com ([104.238.130.12]:45924 helo=smtp.sivalik.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8UoT-0007PL-Ey for 49682@debbugs.gnu.org; Tue, 27 Jul 2021 17:40:36 -0400 Received: from hp (pool-96-242-220-29.nwrknj.fios.verizon.net [96.242.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: rajeev@sivalik.com) by smtp.sivalik.com (Postfix) with ESMTPSA id 1629D60FDF; Tue, 27 Jul 2021 17:40:28 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sivalik.com; s=svlk; t=1627422028; bh=nklXyV7EOAPaqRpvXOJemIwEeqtr/XT12hlOeAnY0NU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=B4xzCy0icJ+OywRh+99Nk3/9PQgMNpj3Qlb39a4Q9nTt2HbWphbgHdZj3IGMCx9vN Qbh0VqvzcUJof0+LSoZ/xf+AhWdbkxoNtAdBu8R1CigQKfKGago1X+4Pk48bcI35s7 7E/HMQLNfAwKqekNf5NJOFQAyyG0I8G05gyW1hXQ= X-No-Archive: yes From: Rajeev N To: Eli Zaretskii Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> <87k0ljpulj.fsf@gnus.org> <87czrbve2s.fsf@hm.sivalik.com> <87sg07od34.fsf@gnus.org> <874kclkls1.fsf@hm.sivalik.com> <895868e4-4f20-ba77-f4e5-7ea2715d18f0@yandex.ru> <87y29s7svx.fsf@hm.sivalik.com> <27f2f996-5cb2-acf2-4f94-b964a7f1d32a@yandex.ru> <874kcgeqwa.fsf@hm.sivalik.com> <4b30f49a-599d-a063-9923-44e59632a9f8@yandex.ru> <87v94v3c41.fsf@hm.sivalik.com> <831r7jvewf.fsf@gnu.org> Date: Tue, 27 Jul 2021 17:40:27 -0400 In-Reply-To: <831r7jvewf.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 27 Jul 2021 20:35:12 +0300") Message-ID: <875ywvzb90.fsf@hm.sivalik.com> MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49682 Cc: larsi@gnus.org, 49682@debbugs.gnu.org, dgutov@yandex.ru X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) It seems to be a bug- a similar bug was fixed recently. http://git.savannah.gnu.org/cgit/emacs.git/commit/src/process.c?id=1773679af3241919a85d6174b1554070a63cca79 On Tue, 27 Jul 2021 at 8:35 PM +0300, Eli Zaretskii wrote: #+begin_quote > Disposition-Notification-To: rajeev.jnk@sivalik.com > From: Rajeev N > Cc: Lars Ingebrigtsen , 49682@debbugs.gnu.org, Eli > Zaretskii > Date: Tue, 27 Jul 2021 13:22:54 -0400 > > Another input that may help resolve the issue: > > In the pselect loop- file descriptor 19 is show in CLOSE_WAIT state by lsof. > > lsof: > > emacs 66152 rajeev 19u IPv4 2567759 0t0 TCP hp:37994->wildebeest.gnu.org:https (CLOSE_WAIT) If the remote host closed the connection, why isn't our sentinel being called and the connection closed? #+end_quote From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 28 12:13:12 2021 Received: (at 49682) by debbugs.gnu.org; 28 Jul 2021 16:13:12 +0000 Received: from localhost ([127.0.0.1]:55720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8mBD-0001Ib-Sz for submit@debbugs.gnu.org; Wed, 28 Jul 2021 12:13:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8mBC-0001IO-Cl for 49682@debbugs.gnu.org; Wed, 28 Jul 2021 12:13:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60190) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8mB6-0004vI-VO; Wed, 28 Jul 2021 12:13:04 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2828 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8mB2-0002Tb-OL; Wed, 28 Jul 2021 12:13:04 -0400 Date: Wed, 28 Jul 2021 19:12:58 +0300 Message-Id: <83a6m6to1h.fsf@gnu.org> From: Eli Zaretskii To: Rajeev N In-Reply-To: <875ywvzb90.fsf@hm.sivalik.com> (message from Rajeev N on Tue, 27 Jul 2021 17:40:27 -0400) Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> <87k0ljpulj.fsf@gnus.org> <87czrbve2s.fsf@hm.sivalik.com> <87sg07od34.fsf@gnus.org> <874kclkls1.fsf@hm.sivalik.com> <895868e4-4f20-ba77-f4e5-7ea2715d18f0@yandex.ru> <87y29s7svx.fsf@hm.sivalik.com> <27f2f996-5cb2-acf2-4f94-b964a7f1d32a@yandex.ru> <874kcgeqwa.fsf@hm.sivalik.com> <4b30f49a-599d-a063-9923-44e59632a9f8@yandex.ru> <87v94v3c41.fsf@hm.sivalik.com> <831r7jvewf.fsf@gnu.org> <875ywvzb90.fsf@hm.sivalik.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49682 Cc: larsi@gnus.org, 49682@debbugs.gnu.org, dgutov@yandex.ru X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Disposition-Notification-To: rajeev.jnk@sivalik.com > From: Rajeev N > Cc: dgutov@yandex.ru, larsi@gnus.org, 49682@debbugs.gnu.org > Date: Tue, 27 Jul 2021 17:40:27 -0400 > > It seems to be a bug- a similar bug was fixed recently. It might be a bug, but we need a more detailed understanding of how this happens. I also very much wonder why many people are unable to reproduce this problem on very similar if not identical systems. Could this be a kernel or a library bug specific to your system? From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 28 13:12:40 2021 Received: (at 49682) by debbugs.gnu.org; 28 Jul 2021 17:12:40 +0000 Received: from localhost ([127.0.0.1]:55769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8n6l-0000mO-TG for submit@debbugs.gnu.org; Wed, 28 Jul 2021 13:12:40 -0400 Received: from vr0.sivalik.com ([104.238.130.12]:53672 helo=smtp.sivalik.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8n6k-0000mB-Lc for 49682@debbugs.gnu.org; Wed, 28 Jul 2021 13:12:39 -0400 Received: from hp (pool-96-242-220-29.nwrknj.fios.verizon.net [96.242.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: rajeev@sivalik.com) by smtp.sivalik.com (Postfix) with ESMTPSA id 53B95611D7; Wed, 28 Jul 2021 13:12:33 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sivalik.com; s=svlk; t=1627492353; bh=Y9w6CfJPK9oGzC7CSiKbitcwFPGEYje5Rd3srnYJbyM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=mEJe1xduUjMXLepk21pPCCEEIMin2WwyFDpExvOuqXWlBftOy1zzqyHye1EPIYo8m 70FbEQ3SAwhuivUnPn7V0pqUuMzpBvf/Sgv3DAYh/7+SZzEa4nH48NSTC6zdG29ABp evNGz5iZJwlnDolxJyZ4pF8nvPBRwCwbB+VYTecI= X-No-Archive: yes From: Rajeev N To: Eli Zaretskii Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> <87k0ljpulj.fsf@gnus.org> <87czrbve2s.fsf@hm.sivalik.com> <87sg07od34.fsf@gnus.org> <874kclkls1.fsf@hm.sivalik.com> <895868e4-4f20-ba77-f4e5-7ea2715d18f0@yandex.ru> <87y29s7svx.fsf@hm.sivalik.com> <27f2f996-5cb2-acf2-4f94-b964a7f1d32a@yandex.ru> <874kcgeqwa.fsf@hm.sivalik.com> <4b30f49a-599d-a063-9923-44e59632a9f8@yandex.ru> <87v94v3c41.fsf@hm.sivalik.com> <831r7jvewf.fsf@gnu.org> <875ywvzb90.fsf@hm.sivalik.com> <83a6m6to1h.fsf@gnu.org> Date: Wed, 28 Jul 2021 13:12:32 -0400 In-Reply-To: <83a6m6to1h.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 28 Jul 2021 19:12:58 +0300") Message-ID: <87czr2jrb3.fsf@hm.sivalik.com> MIME-Version: 1.0 Content-Type: text/html Content-Disposition: inline X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 49682 Cc: larsi@gnus.org, 49682@debbugs.gnu.org, dgutov@yandex.ru X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/)

I wonder why others are not able to reproduce the bug too (my system is debian/bullseye)- for now I am using the following workaorund to avoid emacs hang.

(defun rn-adv-wto (fn &rest args)
  (with-timeout (13 (signal 'error (format "adv-wto: %s" args)))
    (apply fn args)))
(advice-add 'accept-process-output :around #'rn-adv-wto)

On Wed, 28 Jul 2021 at 7:12 pm +0300, Eli Zaretskii wrote:

It might be a bug, but we need a more detailed understanding of how this happens.

I also very much wonder why many people are unable to reproduce this problem on very similar if not identical systems. Could this be a kernel or a library bug specific to your system?

From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 06 12:55:33 2021 Received: (at 49682) by debbugs.gnu.org; 6 Aug 2021 16:55:33 +0000 Received: from localhost ([127.0.0.1]:51241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mC388-0007LG-Tt for submit@debbugs.gnu.org; Fri, 06 Aug 2021 12:55:33 -0400 Received: from mail-wr1-f52.google.com ([209.85.221.52]:45609) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mC383-0007Kw-Ut for 49682@debbugs.gnu.org; Fri, 06 Aug 2021 12:55:31 -0400 Received: by mail-wr1-f52.google.com with SMTP id m12so11876085wru.12 for <49682@debbugs.gnu.org>; Fri, 06 Aug 2021 09:55:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=jehfAMFr2HX2sG2Of48O/t6Tg6N1wUo1dsw487fEnZ4=; b=rZDP5rpncFOVJaSTsTi7lU3NNL0H9TRc9gxWy7UJn6hG3sBkpTpT5ODpgFoORSCsdu Wto8O3m1g89QuuGgVjpPSZLC/5+7Sbn6YqfEIrcBUKjJAdYTOcMHccCKvexIa0Oa1Ajf dNjiMRH+vw58WBxI1ZPB/MP1XhbKzRpEwBW7PB+u4LCqgAoIG27Y/dVWrB4n8tyfXowQ gVnU5FtOUIJb0md8Aa4tRkttJFu6UJwr3NNTE6zNFVfvTiwK9L0rDHX97iaV0pNOeRLq ePeTjxuD3lwTykPDRd4bevpGfeVBwHsQ6vFwXiYIpIrSwp6WkTmCJiFHCyvvd/45TIqL yrmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=jehfAMFr2HX2sG2Of48O/t6Tg6N1wUo1dsw487fEnZ4=; b=ZO80da0LuEsUKxrWiO3Vb2Zdy+RiWtwKBEib+KelfQR63OMRHZXu/NOOEvAEHRQ7kW U6fp5P/vTegOeFm+gt30ctfMsc9NIjT1xATj3SXpZNMF8lb3tbytUPwgrwJsqAKjqY/J rztPjQGzBclwrnfAIuRnOfWptoorLjqtVbzmVIdWsSfyTf5UkTvaq3Jks23p3CNO4LwD ACdPH4dSxg8ZjmnW1dXzRNbiO9XT/XUzJ1Pqjp463wCU3KCuxjOTedgK9wZFt4Ydo5PJ 76K/GMSJ8mxvu5PpEd9SVjOoKtOHf/0YGZI3zUNr41ld38+rddAr8N6PBmAedzpnDbLq utfA== X-Gm-Message-State: AOAM532RHeQWc2k7DzmFGZTUsX8IvooybzWawTb9HvOZspvxqRV0WEfU X0uQjlamLUurbapBZRcA4qU= X-Google-Smtp-Source: ABdhPJwSzaLgO7+FmTK0gHzfAdkNVPUEVqkXkuIbqxCHcnxXx+1iPNZx+pc5+mAd8u2NG3xuVSlsGw== X-Received: by 2002:adf:e550:: with SMTP id z16mr12302102wrm.250.1628268921751; Fri, 06 Aug 2021 09:55:21 -0700 (PDT) Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id u15sm2448656wmq.33.2021.08.06.09.55.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Aug 2021 09:55:20 -0700 (PDT) From: Robert Pluim To: Eli Zaretskii Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> <87k0ljpulj.fsf@gnus.org> <87czrbve2s.fsf@hm.sivalik.com> <87sg07od34.fsf@gnus.org> <874kclkls1.fsf@hm.sivalik.com> <895868e4-4f20-ba77-f4e5-7ea2715d18f0@yandex.ru> <87y29s7svx.fsf@hm.sivalik.com> <27f2f996-5cb2-acf2-4f94-b964a7f1d32a@yandex.ru> <874kcgeqwa.fsf@hm.sivalik.com> <4b30f49a-599d-a063-9923-44e59632a9f8@yandex.ru> <87v94v3c41.fsf@hm.sivalik.com> <831r7jvewf.fsf@gnu.org> <875ywvzb90.fsf@hm.sivalik.com> <83a6m6to1h.fsf@gnu.org> Date: Fri, 06 Aug 2021 18:55:19 +0200 In-Reply-To: <83a6m6to1h.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 28 Jul 2021 19:12:58 +0300") Message-ID: <87sfzmsebs.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 49682 Cc: Rajeev N , 49682@debbugs.gnu.org, larsi@gnus.org, dgutov@yandex.ru X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Wed, 28 Jul 2021 19:12:58 +0300, Eli Zaretskii said: >> Disposition-Notification-To: rajeev.jnk@sivalik.com >> From: Rajeev N >> Cc: dgutov@yandex.ru, larsi@gnus.org, 49682@debbugs.gnu.org >> Date: Tue, 27 Jul 2021 17:40:27 -0400 >>=20 >> It seems to be a bug- a similar bug was fixed recently. Eli> It might be a bug, but we need a more detailed understanding of how Eli> this happens. Eli> I also very much wonder why many people are unable to reproduce th= is Eli> problem on very similar if not identical systems. Could this be a Eli> kernel or a library bug specific to your system? I can reproduce it from 'emacs -Q -nw' on my Debian bullseye system, but not from 'emacs -Q' SIGUSR2 backtrace: Debugger entered--Lisp error: (quit) accept-process-output(# 0.05) network-stream-get-response(# 250 "^[0-9]+ .*\15\n") network-stream-command(# "EHLO www.gnu.org\15\n" "^[0-9]= + .*\15\n") network-stream-open-starttls("testing" # "smtp.gmail.com"= 587 (:type starttls :return-list t :warn-unless-encrypted t :capability-co= mmand "EHLO www.gnu.org\15\n" :end-of-command "^[0-9]+ .*\15\n" :success "^= 2.*\n" :always-query-capabilities t :starttls-function (lambda (capabilitie= s) (and (string-match "[ -]STARTTLS" capabilities) "STARTTLS\15\n")) :clien= t-certificate t :use-starttls-if-possible t)) open-network-stream("testing" # "smtp.gmail.com" 587 :typ= e starttls :return-list t :warn-unless-encrypted t :capability-command "EHL= O www.gnu.org\15\n" :end-of-command "^[0-9]+ .*\15\n" :success "^2.*\n" :al= ways-query-capabilities t :starttls-function (lambda (capabilities) (and (s= tring-match "[ -]STARTTLS" capabilities) "STARTTLS\15\n")) :client-certific= ate t :use-starttls-if-possible t) apply(open-network-stream ("testing" # "smtp.gmail.com" 5= 87 :type starttls :return-list t :warn-unless-encrypted t :capability-comma= nd "EHLO www.gnu.org\15\n" :end-of-command "^[0-9]+ .*\15\n" :success "^2.*= \n" :always-query-capabilities t :starttls-function (lambda (capabilities) = (and (string-match "[ -]STARTTLS" capabilities) "STARTTLS\15\n")) :client-c= ertificate t :use-starttls-if-possible t)) timer-event-handler([t 24845 26710 703698 nil open-network-stream ("testi= ng" # "smtp.gmail.com" 587 :type starttls :return-list t :w= arn-unless-encrypted t :capability-command "EHLO www.gnu.org\15\n" :end-of-= command "^[0-9]+ .*\15\n" :success "^2.*\n" :always-query-capabilities t :s= tarttls-function (lambda (capabilities) (and (string-match "[ -]STARTTLS" c= apabilities) "STARTTLS\15\n")) :client-certificate t :use-starttls-if-possi= ble t) nil 536000]) I=CA=BCd debug further, but I have other Emacs plans this weekend Robert --=20 From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 06 12:15:17 2023 Received: (at 49682) by debbugs.gnu.org; 6 Nov 2023 17:15:17 +0000 Received: from localhost ([127.0.0.1]:40540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r03C1-0005FG-5Q for submit@debbugs.gnu.org; Mon, 06 Nov 2023 12:15:17 -0500 Received: from out162-62-58-211.mail.qq.com ([162.62.58.211]:38623) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r03Bv-0005Ew-Rf for 49682@debbugs.gnu.org; Mon, 06 Nov 2023 12:15:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1699290863; bh=6G1a32JtgcqrP7+PBgGIG8LhdkVE8zL1Csa/xb8o148=; h=Date:From:To:Subject; b=jB+NOZzuiFAW+GZ9PfvxiPfbRBOZmYEs6rX77M3mPix+iFW+b8Yr+FTWv8OTu3a1E kMUW5I7oW7HoWCY3RLEknc3JLcpzMeep+rEKYSp4YyHddoNnE+Ge2B76Zzixx+obxA eb1HdvbxRBnHFlYCdX3Aq8gyJxh/d7dyz/7M4ImY= Received: from 172-12-5-160.lightspeed.sgnwmi.sbcglobal.net ([68.117.253.195]) by newxmesmtplogicsvrszc5-0.qq.com (NewEsmtp) with SMTP id 39429843; Tue, 07 Nov 2023 01:14:20 +0800 X-QQ-mid: xmsmtpt1699290860tazevw2o2 Message-ID: X-QQ-XMAILINFO: NLNuKjcZ2ePXzvT9rlemEgpQr/17v4AZSNB21KzgqxRGFvlbT3DxLJD89bTuhQ u0VMAJaQanXloeE6nig6at6fealf+oiRisFhEEFTT9l4Rr6XIcho1s+0DwqJslw198wLdE8IGx6x Rok25AEvQtL4/mKSpUhntk8B/EFiXP7TD+9eS92BowmUNL7wepHfGC44/KKy7zg2wwX7qjAV/7po 3ABNabTiZunkCO7H2aVs/7HnzFAr1KxqsKfE8a6KSqtBCIx8hwuJ7vTHx/JHg/oj+qvv82G5L3ot lk/xOxhYfBz0+gB1d8JBHyyApBGXjzd5GJFM80xfHZlpfv+36+R+eoIMc8llN7oYyGfYTsI/u4+v 7kw6JOA7qgeBzjvX3dPgZ1xNNbhWF/JTf1QcgBRkdHeswzQ/8SQMMFFkkQsxMBlDqxHnZIZG/Nsv 9MkFn2MADUdb2mCEChs+I/Z1OmflpMmGV5RHWiSWEmi89hbjJ7sDLjDR3qXDFgvOjPQZ03CYwSsD BV+vAUtSDQbuWmXse4zFAFoaOuKacQkCQm8FzjmNkNXX63mw6z5XaddtFXnH5AkQt1uelKiFAiuB PMaSJrluVMFXjGO33fq1DXbwa7rcaW4MIXDAtsHog1V4RsLWj4/8o9+Rgg58a7kpn8+qP9tp1CvB J55SzUpzcZNjmL6BCw3srRjsECQ4yn6ney+C6GIMQIF+u436KjIPBZ5mYesk7AEwnGRwsd45seDV End9C6yF6bkOvPkapYKqj8uGEfNl8G1ce/bgywJPyeaSfNGcUaI7tR6Yenxs52xiZ1MLAOr2tpm+ oXS5BD3dHwLrzG4NnCVASiG3CSW+Vg7tFCrXW1Iv7YKC70UAAGX8hAM/CXqnsD91mZ6LAh03NDvn v5ErPuB6RSZSRP9H5gshkGE8k9iH4aGtAEefwIvvA4aCIMNT9UywHgjgcZbhV9gKWILVkjngvL7W 0yxNoFsJ0= X-QQ-XMRINFO: NS+P29fieYNw95Bth2bWPxk= Received: by 172-12-5-160.lightspeed.sgnwmi.sbcglobal.net (Postfix, from userid 501) id 1C3C3205B44421; Mon, 6 Nov 2023 11:14:18 -0600 (CST) Date: Mon, 06 Nov 2023 11:14:18 -0600 X-OQ-MSGID: From: LdBeth To: 49682@debbugs.gnu.org Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.1 (x86_64-apple-darwin20.6.0) MULE/6.0 (HANACHIRUSATO) X-Face: %[!P\u/BKFRGn_9h9|yO"ho?C0ej^LmM}WMb-`Jfj8OsS^^AKmHYGlD@^|7SEA3UzOGPFbB"OFczY?'\JtJ\lR'@&Y5j; s8{$&|3D>^i.U4l2h?1qpD.+{[$~j]vBeHZf^|BGyL8{/`4 X-Attribution: ldb MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This bug seems happened many times to me (on Emacs 29.1 macOS, with Mitsuharu's patches if that matters) whenever I open an multipart email that contains HTML that has several image links through IMAP [...] Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [162.62.58.211 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andpuke[at]foxmail.com) 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [162.62.58.211 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) X-Debbugs-Envelope-To: 49682 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This bug seems happened many times to me (on Emacs 29.1 macOS, with Mitsuharu's patches if that matters) whenever I open an multipart email that contains HTML that has several image links through IMAP [...] Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [162.62.58.211 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [162.62.58.211 listed in wl.mailspike.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andpuke[at]foxmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) This bug seems happened many times to me (on Emacs 29.1 macOS, with Mitsuharu's patches if that matters) whenever I open an multipart email that contains HTML that has several image links through IMAP in the Wanderlust email reader since I start to enable HTML images in the email reader. (And for some reason C-g seems not able to interrupt the hang) The shr library uses url-queue to asynchronously download images and Wanderlust also use `accept-process-output' call to handle IMAP. For this particular case I used a dirty hack (define-advice accept-process-output (:before (&rest _) sync-queue) (when (fboundp 'url-queue-check-progress) (funcall #'url-queue-check-progress))) However, could we make `accept-process-output' atomic so the timer won't interrupt it? Or there is no reliable method yet to make any atomic operations in Emacs yet? --- ldbeth From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 06 12:40:58 2023 Received: (at 49682) by debbugs.gnu.org; 6 Nov 2023 17:40:58 +0000 Received: from localhost ([127.0.0.1]:40663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r03as-00062Z-1e for submit@debbugs.gnu.org; Mon, 06 Nov 2023 12:40:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r03ap-00062L-Rv for 49682@debbugs.gnu.org; Mon, 06 Nov 2023 12:40:56 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r03a9-0005fb-0q; Mon, 06 Nov 2023 12:40:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ZW+3vIdfl9PHR4XeoGjG1S7Je5bhlHOlkKnOpyUBIvI=; b=n+W8bSCqTX80 3BIIzaK8jrLPerpGWWxWQ+HRRgD2/Ak2VRCjpjxzOPfG7em+6ke1oufcsjUu9rQajxzxVwLkPjkMK y+vWkEPTx0NWb+9j8WrbTpRBM1QzG156PXWl4gGOCVqT58lef+Q9519/i4MRQvR8igaeyZSKpfjqf RZSbUW0NkOkIjMlZaz91S5CROFcIQx+qDw/AolJkjBoN0536aObepsD2G6yZNBBPHL1sadDWx7u/g WDP0SwOI3DvVGEMfT+te3LOdjSgOT1DBX6HUREIxTXJO0Mpxg+/bSm4AIDRe9Q/zEWqNvH4LdzAYG N3TnHKE6ozo5jLPs3sob+A==; Date: Mon, 06 Nov 2023 19:39:53 +0200 Message-Id: <83a5rq3hna.fsf@gnu.org> From: Eli Zaretskii To: LdBeth In-Reply-To: (message from LdBeth on Mon, 06 Nov 2023 11:14:18 -0600) Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49682 Cc: 49682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Mon, 06 Nov 2023 11:14:18 -0600 > From: LdBeth > > This bug seems happened many times to me (on Emacs 29.1 macOS, with > Mitsuharu's patches if that matters) whenever I open an multipart > email that contains HTML that has several image links through IMAP in > the Wanderlust email reader since I start to enable HTML images in the > email reader. (And for some reason C-g seems not able to interrupt the > hang) > > The shr library uses url-queue to asynchronously download images > and Wanderlust also use `accept-process-output' call to handle IMAP. > > For this particular case I used a dirty hack > > (define-advice accept-process-output > (:before (&rest _) sync-queue) > (when (fboundp 'url-queue-check-progress) > (funcall #'url-queue-check-progress))) > > However, could we make `accept-process-output' atomic so > the timer won't interrupt it? Or there is no reliable > method yet to make any atomic operations in Emacs yet? If a Lisp program wants to avoid timers during the call to accept-process-output, could perhaps temporarily bind timer-list to nil or something? From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 06 15:28:04 2023 Received: (at 49682) by debbugs.gnu.org; 6 Nov 2023 20:28:04 +0000 Received: from localhost ([127.0.0.1]:40751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r06CZ-00023a-Se for submit@debbugs.gnu.org; Mon, 06 Nov 2023 15:28:04 -0500 Received: from out203-205-221-191.mail.qq.com ([203.205.221.191]:36504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r06CV-00022z-JD for 49682@debbugs.gnu.org; Mon, 06 Nov 2023 15:28:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1699302428; bh=cDz5p33P1T64+r9M6JnGeo/B5bAh7aBGlY6xEDok7Ro=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=vIkVEAXSUMl5Z7je+J/EptNqey1sMxYPpoGUNuu0pgy7GI2gtffk20op2CPtkPz2p IQ+WHQaE5f+//rto8gjQpNFnaEUkDW5FVTxL02SuSzKe32CYpWgGLhgLjw/wZ040iY tnrGl7VbGhK8cf2KPgiaP9fOGviplEpIAoYzsxTk= Received: from Costume-Party.local ([131.204.254.86]) by newxmesmtplogicsvrszb1-0.qq.com (NewEsmtp) with SMTP id 6C4B023E; Tue, 07 Nov 2023 04:27:04 +0800 X-QQ-mid: xmsmtpt1699302424tuk9v7que Message-ID: X-QQ-XMAILINFO: MIAHdi1iQo+zD8vL2bYajLiUy7iS0sBLnJINLr9Io0YthLgyaqfz6zcIj8IY69 xEn+iuymFPYLpbnhPExumyyUeaCMLfZ2IwRqEE1KZ6ffB4rHRwDI/zET4vaLaGD7/j159MEgHJ48 /HCcIhwqM6IVXXj+bRMMLA3xl8p7Zr4WMm0AmzbXH+yeD4Kt4rGLaBVL/8OrKjqcv5NSno5kY/Gt 31IahfOJK4DvXyP/rH20i/Y3WDxQj3/SdyZjhNXvU5bbdxUtK2uIoPwL6zZ7MnB/FGnyFRbzB7iO CslLT7LycUK+5mcbi4VVwlniQJvyhMKnvWWc4Y1yFwV/H7RmFHhIea2BRmii0mpzyKJu3dC4PSgb Pifvs5fW08dn1HviQ2rh8ap3s8/1M8o8HYujmkWeHLuBMGCACrksGT40IS92289oq8DRXJnTKS// vN7/kAR8WCmOrApr5IXfo0M+T0aYW67DUnLHPpZNetc7iMg1CFvvw/+LutjLA+qUMStbGlQaz158 4x+sp3pV4oEVdTBLbFXp7LK6eWgIVJC0c8CguTkl6DIPFq7/nwk1akJ/p4QvOvHiXYio/Z572jTX lu7Tt+XL8yAEea8A2nEWiIbaF/qmKEp/YtrLn/wWNEnPmRhIa0qTt0XAeQtok10gMDpngH4bYyhy hCczai70xQkiENRnzmpUDZ0SGK1K14YrD75/3sJSYoF69g52JTBdci5KEsUMt4czLZd2vrSkq+gJ GUZYfJL6nQUmOPQ5Pcuck/lfLac85ZLezw2XqglIxHNBsnY9qhBqXYf3PKo1MQKeZexWC9IyBBpx kBtEw0k1uAHeHiwmoXEmEshtqI1vDd+EO4lHspV7tU4WhJBOyag29EjCsnd02AZyOj4rP2fm0AjG qyTVBHG8+6VAoaN2ZoFRgnkE92iWsMUCcMyJ4hqOV73N9Ak7cxcGD889S9woXnky7WW0mxvG4ojW 0U8oRu3aD2HiV+6Tu23xa+SWlm4j+qm+W+6Nist90= X-QQ-XMRINFO: MSVp+SPm3vtS1Vd6Y4Mggwc= Received: by Costume-Party.local (Postfix, from userid 501) id 5169E205B468FE; Mon, 6 Nov 2023 14:27:03 -0600 (CST) Date: Mon, 06 Nov 2023 14:27:02 -0600 X-OQ-MSGID: From: LdBeth To: Eli Zaretskii Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs In-Reply-To: <83a5rq3hna.fsf@gnu.org> References: <87mtqfzpbl.fsf@hm.sivalik.com> <83a5rq3hna.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.1 (x86_64-apple-darwin20.6.0) MULE/6.0 (HANACHIRUSATO) X-Face: %[!P\u/BKFRGn_9h9|yO"ho?C0ej^LmM}WMb-`Jfj8OsS^^AKmHYGlD@^|7SEA3UzOGPFbB"OFczY?'\JtJ\lR'@&Y5j; s8{$&|3D>^i.U4l2h?1qpD.+{[$~j]vBeHZf^|BGyL8{/`4 X-Attribution: ldb MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: >>>>> In >>>>> Eli Zaretskii wrote: ldb> The shr library uses url-queue to asynchronously download images ldb> and Wanderlust also use `accept-process-output' call to handle ldb> IMAP. ldb> ldb> For this particular case I used a dirty h [...] Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [203.205.221.191 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andpuke[at]foxmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) X-Debbugs-Envelope-To: 49682 Cc: 49682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: >>>>> In >>>>> Eli Zaretskii wrote: ldb> The shr library uses url-queue to asynchronously download images ldb> and Wanderlust also use `accept-process-output' call to handle ldb> IMAP. ldb> ldb> For this particular case I used a dirty h [...] Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [203.205.221.191 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andpuke[at]foxmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) >>>>> In <83a5rq3hna.fsf@gnu.org> >>>>> Eli Zaretskii wrote: ldb> The shr library uses url-queue to asynchronously download images ldb> and Wanderlust also use `accept-process-output' call to handle ldb> IMAP. ldb> ldb> For this particular case I used a dirty hack ldb> ldb> (define-advice accept-process-output ldb> (:before (&rest _) sync-queue) ldb> (when (fboundp 'url-queue-check-progress) ldb> (funcall #'url-queue-check-progress))) ldb> ldb> However, could we make `accept-process-output' atomic so the ldb> timer won't interrupt it? Or there is no reliable method yet to ldb> make any atomic operations in Emacs yet? Eli> If a Lisp program wants to avoid timers during the call to Eli> accept-process-output, could perhaps temporarily bind timer-list Eli> to nil or something? Thank you, let Wanderlust maintainers know and figure out changes needed to fix the problem. --- ldbeth From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 07 04:25:03 2023 Received: (at 49682) by debbugs.gnu.org; 7 Nov 2023 09:25:03 +0000 Received: from localhost ([127.0.0.1]:41312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0IKU-0003EA-Vo for submit@debbugs.gnu.org; Tue, 07 Nov 2023 04:25:03 -0500 Received: from mout.gmx.net ([212.227.15.18]:60055) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0IKR-0003Dq-Bo for 49682@debbugs.gnu.org; Tue, 07 Nov 2023 04:25:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1699349049; x=1699953849; i=michael.albinus@gmx.de; bh=Ylw/AFEG41CtFAFUiy14EkOFdRspho1yDOq+n2QjIgA=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=sFac4d5G4r5e6CswPme2kzhMpJcAcDgNF2CZ7iC4iqRmqG6/LlrZqHwa/Z/ggHhr 9HBKtkUijeigEdF0ag9Sj6lH0wG2Fcy0phF2Xw8rLNq07iYFUVYVrvsQ92dS2h4UP 1TDRNUw/7itBOnApvy0Tds4B4Gr867jtXwU6HHqdOt/nYMUWiJaZ+Mw24L/BpSiDL Qloi5DO90VIthmdQhOcdCmIKf2jpln7BkC1DfWEcL62EmrqC1OOfq29pSVO1mWKA4 G8YsWP3Rw8kQ0KyjbLtGxlwjiQr4exE11dAWKB3lZWJrc5XAdV5MGKLDbBnvUXR4/ H3BwHhGfqTjcJ1nuJQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.30]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N49lD-1rRD5M0aHp-0102KS; Tue, 07 Nov 2023 10:24:09 +0100 From: Michael Albinus To: LdBeth Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs In-Reply-To: (LdBeth's message of "Mon, 06 Nov 2023 14:27:02 -0600") References: <87mtqfzpbl.fsf@hm.sivalik.com> <83a5rq3hna.fsf@gnu.org> Date: Tue, 07 Nov 2023 10:24:08 +0100 Message-ID: <87sf5hex1j.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:zN0uRgV8ZVK1j6osxIwbFob6D5+BC/a5KXlww0DFWBnEzCZw/Ub vWKgEixc15zNNZ23SqRRHthq2JEeomVKI/uCRr6ci7I6C81HB+9ybhg+wDb+JxmrZW1O20M Xyq67feh2ZqVjM07Bkjehn7l4wc38pf7MdgyVb24WYfYepaOQJW6YIm/j0wPmUF67MDyr7z QTjWVUVb4O+d3QWoQszCQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:oGXGcF3lSP4=;gX2FqiFrammjmzgUd+orhaJv+iF kUpCnBeytbRInVmRjcOcysjh07ThjqCAQHK0o0oojVoXYeKll6hWqGYWEk068DWEAsKbae3a9 M3yXTdLjVAkIDtUKCv1T0zV6Gx5xEMWppyij0sTJc0kA0ZWZ8r6J2cdLq/elQ7jW9vCG9ogpQ He1Qy46wgpyOmedH0WCKqrNvyalqhSN93EIFcgUflUznFq31QXq+Nc6WVIXOu7c26i8LoS1ID qYyXcM/tfmt7Ztx5kLdAM2GGUJfJRj+UIVEzn/DCKGQZ4IjFfVfEZ/qV4jgH4Zg/kwpMvFs2r fvL328bgnFzDw3ahIzfTQcSa5Lz8lbVPmdgMSEqJ6M/wFcQVE3cMI82j0tQn7J7TmW3OiZuds Q/vAphTcM4YMKEQtxNCFff3UUIj1uRzFZ3CQtRUACQVtAGDvyHJ6hzmxsxC7roeL3d9298+bL jwovwKErc7uk8iUhVe1JKwmiTVlF2td+RiVlU589BcKRiZMtoEqJY2MDSIRydUhnRZWf61mfJ Adh06eay8eLB0dhQ95BaRzw2SrGpJ9EBFkc0B+jAW1SlRPPJ6D5EqT8yMQWysuo9yWhcU0o6W rdjKKb4NCFNaIri1OfrWsWfHZHWw6pjcl67L56dVO0A4hpw1qEHJHpt+I78tRiiZ4EP1TJlUc d7bpTxjqVH3uF6FLmbnPZyOsqXgdc8mv8gfkz/01oaRCVPh7Y4ZySfD7NPTfnbzfYn7zd2zjQ qFsO3CQYipy22D4N3w2Jt9ylQhGd1q/P/Kj4HBUzx+t7v9ww0vF6ihG7itmgB9pOsaloqM8c0 7PVeOkhZ5d2kZuI81TElL/nRuGk8+svThpV0D6aJh4E2obigU6eavu8ZCijUTmE4MFtBVMPrz NfacZzg3AfsEWB4XX0RyULisSVn63ntBk8pAQwy673HN0nmAOlZRF/Za9UTEPg5RrH7NI5Wup QPysR3Q3yeWzPCSB+skKWtB73lWowDnpMbQeFjoSF5PiTSdP X-Spam-Score: 2.4 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: LdBeth writes: Hi, > Eli> If a Lisp program wants to avoid timers during the call to > Eli> accept-process-output, could perhaps temporarily bind timer-list > Eli> to nil or something? > > Thank you, let Wanderlust main [...] Content analysis details: (2.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.89.39.30 listed in zen.spamhaus.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (michael.albinus[at]gmx.de) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.5 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.15.18 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.18 listed in list.dnswl.org] X-Debbugs-Envelope-To: 49682 Cc: Eli Zaretskii , 49682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: LdBeth writes: Hi, > Eli> If a Lisp program wants to avoid timers during the call to > Eli> accept-process-output, could perhaps temporarily bind timer-list > Eli> to nil or something? > > Thank you, let Wanderlust main [...] Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.89.39.30 listed in zen.spamhaus.org] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.18 listed in list.dnswl.org] -0.5 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.15.18 listed in wl.mailspike.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (michael.albinus[at]gmx.de) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager LdBeth writes: Hi, > Eli> If a Lisp program wants to avoid timers during the call to > Eli> accept-process-output, could perhaps temporarily bind timer-list > Eli> to nil or something? > > Thank you, let Wanderlust maintainers know and figure out > changes needed to fix the problem. FTR, you could check tramp.el in the Emacs git repository. There is the macro with-tramp-suspended-timers, which is used in tramp-accept-process-output. Just as example. > ldbeth Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 08 10:51:22 2023 Received: (at 49682) by debbugs.gnu.org; 8 Nov 2023 15:51:23 +0000 Received: from localhost ([127.0.0.1]:46188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0kpu-0004mn-KN for submit@debbugs.gnu.org; Wed, 08 Nov 2023 10:51:22 -0500 Received: from snd00013.auone-net.jp ([111.86.247.13]:14275 helo=dmta0003.auone-net.jp) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0kpr-0004mc-0h for 49682@debbugs.gnu.org; Wed, 08 Nov 2023 10:51:21 -0500 Received: from kzhr.d1.dion.ne.jp by dmta0003.auone-net.jp with ESMTP id <20231108155037246.BQYF.44995.kzhr.d1.dion.ne.jp@dmta0003.auone-net.jp>; Thu, 9 Nov 2023 00:50:37 +0900 Date: Thu, 09 Nov 2023 00:50:37 +0900 Message-ID: <85edh0utv6.wl--xmue@d1.dion.ne.jp> From: Kazuhiro Ito To: LdBeth , Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs In-Reply-To: <83a5rq3hna.fsf@gnu.org> References: <87mtqfzpbl.fsf@hm.sivalik.com> <83a5rq3hna.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.0.50 (x86_64-w64-mingw32) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 49682 Cc: 49682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > If a Lisp program wants to avoid timers during the call to > accept-process-output, could perhaps temporarily bind timer-list to > nil or something? According to docstring, it seems that accept-process-output has option not to run timers. > (accept-process-output &optional PROCESS SECONDS MILLISEC > JUST-THIS-ONE) ... > If JUST-THIS-ONE is an integer, don=A2t run any timers either. Can Lisp programs use the feature? -- Kazuhiro Ito From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 08 11:38:58 2023 Received: (at 49682) by debbugs.gnu.org; 8 Nov 2023 16:38:59 +0000 Received: from localhost ([127.0.0.1]:46221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0lZy-00062J-K3 for submit@debbugs.gnu.org; Wed, 08 Nov 2023 11:38:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0lZw-000626-GU for 49682@debbugs.gnu.org; Wed, 08 Nov 2023 11:38:57 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r0lZA-0006NV-6f; Wed, 08 Nov 2023 11:38:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=JHBWC+WXhIrphnMLWFV5V+czj6amlayLlko38tf5MiQ=; b=JAiQfseOuXu45nYBud8l pS/5B1FbtybAHpB5N2kodlw+uu5dtqzkb1bSrQ1hbEQItgNvof9cPcggyU0x+xB5XAjA+bh52oIcC Kom9UfJEbJDn8YIMeWbVJsaRaFQ9E+5LPeTA3FDhMteJbPv7i5MPSWj6jm5s8ayHiYPsYZNAXRnNg ef68y6LXJG/0F8iu5rBgWXX4fMGCibCUCfy9tcNHakR9f2dHdy5z7JT8Q+vMuUkqGOExM1RdGaULG hzIdnTldj/qLjE3kYTwjlODdJq49wm4PK/WS50jBeMjK97BKsV6eMNaeaHcTouzipZIyCQes4SZxq deJRUfLqxCREaQ==; Date: Wed, 08 Nov 2023 18:37:59 +0200 Message-Id: <83cywk19qw.fsf@gnu.org> From: Eli Zaretskii To: Kazuhiro Ito In-Reply-To: <85edh0utv6.wl--xmue@d1.dion.ne.jp> (message from Kazuhiro Ito on Thu, 09 Nov 2023 00:50:37 +0900) Subject: Re: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs References: <87mtqfzpbl.fsf@hm.sivalik.com> <83a5rq3hna.fsf@gnu.org> <85edh0utv6.wl--xmue@d1.dion.ne.jp> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-7 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49682 Cc: andpuke@foxmail.com, 49682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Thu, 09 Nov 2023 00:50:37 +0900 > From: Kazuhiro Ito > Cc: 49682@debbugs.gnu.org > > > If a Lisp program wants to avoid timers during the call to > > accept-process-output, could perhaps temporarily bind timer-list to > > nil or something? > > According to docstring, it seems that accept-process-output has option > not to run timers. > > > (accept-process-output &optional PROCESS SECONDS MILLISEC > > JUST-THIS-ONE) > ... > > If JUST-THIS-ONE is an integer, donąt run any timers either. > > Can Lisp programs use the feature? If they are okay with receiving output only from PROCESS, yes, they can.