From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#33018: 26.1.50; thread starvation with async processes and accept-process-output Date: Wed, 17 Oct 2018 19:05:59 +0100 Message-ID: <87o9bswirc.fsf@tcd.ie> References: <87r2gwbmma.fsf@tcd.ie> <875zy7cqzd.fsf@gmx.de> <878t30h823.fsf@tcd.ie> <87sh177i36.fsf@gmx.de> <877eiipu8g.fsf@tcd.ie> <83k1mirl9n.fsf@gnu.org> <874ldkjwzn.fsf@tcd.ie> <83zhvcqwxc.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1539799512 30817 195.159.176.226 (17 Oct 2018 18:05:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Oct 2018 18:05:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: michael.albinus@gmx.de, 33018@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 17 20:05:08 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCqBv-0007tR-8U for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Oct 2018 20:05:07 +0200 Original-Received: from localhost ([::1]:38476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCqE1-0006xS-5a for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Oct 2018 14:07:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCqDr-0006sd-1n for bug-gnu-emacs@gnu.org; Wed, 17 Oct 2018 14:07:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCqDn-0000es-RK for bug-gnu-emacs@gnu.org; Wed, 17 Oct 2018 14:07:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51341) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gCqDm-0000Xz-Lo for bug-gnu-emacs@gnu.org; Wed, 17 Oct 2018 14:07:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gCqDm-0000fz-62 for bug-gnu-emacs@gnu.org; Wed, 17 Oct 2018 14:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Oct 2018 18:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33018 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33018-submit@debbugs.gnu.org id=B33018.15397995682527 (code B ref 33018); Wed, 17 Oct 2018 18:07:02 +0000 Original-Received: (at 33018) by debbugs.gnu.org; 17 Oct 2018 18:06:08 +0000 Original-Received: from localhost ([127.0.0.1]:55599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCqCu-0000eh-7n for submit@debbugs.gnu.org; Wed, 17 Oct 2018 14:06:08 -0400 Original-Received: from mail-ed1-f45.google.com ([209.85.208.45]:40057) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCqCt-0000eI-5B for 33018@debbugs.gnu.org; Wed, 17 Oct 2018 14:06:07 -0400 Original-Received: by mail-ed1-f45.google.com with SMTP id r1-v6so25767875edd.7 for <33018@debbugs.gnu.org>; Wed, 17 Oct 2018 11:06:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=cdjYCVYWXprgtT1Yt2FyTzUtqTPAFHOriGREOju9mfI=; b=H/H/pPwYxZ+uOVUnb6K6C7UsyAQCIP0QmEMfWtg3AV4sUC/uLqPnGSlREXxg3xKXHn x1HS740wbjYz1Cya5XVUHlPYk91KyOaclk2Ab0ZIVFLnVYDZYzZmmeBm7TpW0T9hDSz5 j/90yg4g7HhlCuw7IRTarz09ik8sugAWdFwNJfIUPbzbO/SP6fXEOEdJX+qH9CAyZJCn hFTED0Vpqw21STBw2Cdpn3Z5TqiRwTs4esXbcg9KB8sgdrZVygk+VMR1+MOaCJr7++lG kRHOpUVQuaG3kzQ7aILskBznL28FdouKoVq3U2qhG722ZLeZbe2kCrdhtspWNdE++Bl+ MXYg== 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:user-agent:mime-version; bh=cdjYCVYWXprgtT1Yt2FyTzUtqTPAFHOriGREOju9mfI=; b=BUYi0oR9aa6fgN6Yz6TFFZ6p27PrhAQWfdUOAmto21bhpD9EiftteuloIjDRDmZ9Ub aTWSe6393VuFBChU+ptS6ms8XXiziLW9IdVvFCH3px307+vIKY7ii3z77s5ewp/X6cAG aZcRAfUFEvtOxAerl5Ow06u34i1YTGLZtoB7mOEk10U4l0BSaDb3h6zWZMznWbXXbnqD 4YJzB/UWGUf98p1HdZWuyU7YnZoafNgpsZZD3BZWXldITaEEW0POQc6J4CNNnCIPyztn 0jkhKhkbmiOx/xU6YSDxtLHPMv9L116KT4sGTLLhy34dE3C39EK2E61iQItawqrelVCD jrkw== X-Gm-Message-State: ABuFfohQwHKQe9S/OWbnhuMZhboWL16TyNCVMozeVNQZNZTBvPXVCsDn uXIa0mShMTXA8hSmbJ+Tlm+l2w== X-Google-Smtp-Source: ACcGV601p46nbghJc+SQtDHbtE8isKuuIm34H0TgfSS0GWrAOKEsr+ggNsvaLJjZ+yhrBk+nvVGaTw== X-Received: by 2002:a50:b8a5:: with SMTP id l34-v6mr1284036ede.273.1539799561495; Wed, 17 Oct 2018 11:06:01 -0700 (PDT) Original-Received: from localhost ([213.233.155.132]) by smtp.gmail.com with ESMTPSA id e21-v6sm7969509edb.22.2018.10.17.11.06.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Oct 2018 11:06:00 -0700 (PDT) In-Reply-To: <83zhvcqwxc.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 17 Oct 2018 20:56:31 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151352 Archived-At: Eli Zaretskii writes: >> From: "Basil L. Contovounesios" >> Cc: , <33018@debbugs.gnu.org> >> Date: Wed, 17 Oct 2018 18:37:00 +0100 >> >> #0 0x00007ffff766a2a4 in __GI___libc_write (fd=1, buf=0x5555559c1b30, nbytes=4096) >> at ../sysdeps/unix/sysv/linux/write.c:27 >> #1 0x00007ffff75fb56d in _IO_new_file_write (f=0x7ffff7739760 <_IO_2_1_stdout_>, >> data=0x5555559c1b30, n=4096) at fileops.c:1203 >> #2 0x00007ffff75fa88f in new_do_write (fp=0x7ffff7739760 <_IO_2_1_stdout_>, >> data=0x5555559c1b30 "pan>\n

Emacs is primarily a > href=\"/wiki/Text_editor\" title=\"Text editor\">text editor and is >> designed for manipulating pieces of text, although it is capable of formatting >> and print"..., to_do=to_do@entry=4096) at fileops.c:457 >> #3 0x00007ffff75fc6f9 in _IO_new_do_write (fp=, data=, >> to_do=4096) at fileops.c:433 >> #4 0x00007ffff75fa6d8 in _IO_new_file_sync (fp=0x7ffff7739760 <_IO_2_1_stdout_>) >> at fileops.c:813 >> #5 0x00007ffff75ef6ed in __GI__IO_fflush (fp=0x7ffff7739760 <_IO_2_1_stdout_>) >> at iofflush.c:40 >> #6 0x00005555555918bb in write_data (out=0x7ffff7739760 <_IO_2_1_stdout_>, out2=0x0, >> buf=0x5555559a9590 "pan>\n

Emacs is primarily a > href=\"/wiki/Text_editor\" title=\"Text editor\">text editor and is >> designed for manipulating pieces of text, although it is capable of formatting >> and print"..., bufsize=4096, skip=0x7fffffffd0e8, >> written=0x7fffffffd0e0) at retr.c:207 >> #7 0x000055555559204f in fd_read_body (downloaded_filename=0x5555555e18a0 "-", fd=4, >> out=0x7ffff7739760 <_IO_2_1_stdout_>, toread=198224, startpos=0, qtyread=0x7fffffffda20, >> qtywritten=0x7fffffffd9d0, elapsed=0x7fffffffda28, flags=1, out2=0x0) at retr.c:498 > > Looks like the buffer of the pipe through which Emacs reads the stuff > is full, and wget waits for some space there? Would that imply that different threads/processes are (re)using the same buffer/pipe? FWIW, strace -p gives: pselect6(14, [6 7], [], NULL, {tv_sec=99975, tv_nsec=320947003}, {NULL, 8} and strace -p gives: write(1, ">]\n

Emacs i"..., 4096 The former reminded me of bug#24201: https://debbugs.gnu.org/24201 -- Basil