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 18:37:00 +0100 Message-ID: <874ldkjwzn.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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1539797789 6822 195.159.176.226 (17 Oct 2018 17:36:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Oct 2018 17:36:29 +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 19:36:25 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 1gCpk8-0001h1-Pb for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Oct 2018 19:36:25 +0200 Original-Received: from localhost ([::1]:38340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCpmD-00067L-0U for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Oct 2018 13:38:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCpln-0005ul-6K for bug-gnu-emacs@gnu.org; Wed, 17 Oct 2018 13:38:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCpli-00023n-7g for bug-gnu-emacs@gnu.org; Wed, 17 Oct 2018 13:38:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51309) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gCpli-00023h-3H for bug-gnu-emacs@gnu.org; Wed, 17 Oct 2018 13:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gCplh-0008LK-RQ for bug-gnu-emacs@gnu.org; Wed, 17 Oct 2018 13:38:01 -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 17:38:01 +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.153979783632011 (code B ref 33018); Wed, 17 Oct 2018 17:38:01 +0000 Original-Received: (at 33018) by debbugs.gnu.org; 17 Oct 2018 17:37:16 +0000 Original-Received: from localhost ([127.0.0.1]:55567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCpkx-0008KF-SW for submit@debbugs.gnu.org; Wed, 17 Oct 2018 13:37:16 -0400 Original-Received: from mail-ed1-f67.google.com ([209.85.208.67]:37725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCpkv-0008Jz-Lx for 33018@debbugs.gnu.org; Wed, 17 Oct 2018 13:37:14 -0400 Original-Received: by mail-ed1-f67.google.com with SMTP id c22-v6so25681938edc.4 for <33018@debbugs.gnu.org>; Wed, 17 Oct 2018 10:37:13 -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=UN44GWjQG0etD1hhH28egGDclowuoEeWETCHPiFMuas=; b=Q+W/p5NKRiyM07XoUaWlbHJSlc6xI2gsZGIbNV28ivXY+k0mZncPC9a+4hVmKhbgWy AzhrNsGLZU3Vel8s4V6POBqWK4tc9I0Lb8dtqq44PNhkzVC+N0tDLClxuJL8JSxhvv3c b9aLXbXVybUBp1JbTNJJzQAJQlO3u42nlyXtcLNFmJLSuTQeAqUpgQxODG6hiaAqI46Q Cahb+h/I4eCyi+sro0qcKQR5+9H3Ao8u6teJgph/DyJ1+uaOeUCreaAv3ODemzipV6j6 xkZRbtuxMFG7qAwdEm0aO+lu+NjOBrSKH/K6zuS6AOuEMM1ns7e+Z1Ft578ub/kErom5 NaAQ== 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=UN44GWjQG0etD1hhH28egGDclowuoEeWETCHPiFMuas=; b=SY/fDy6HcRq5I6Spk78DSyff8XbqIUWGZPChyZ0Ptf2FXJAJmyXUxENCcozsgnV7lP H4WKzCDqMYAADcLm/MJjuAuOkglHIaNAc/1qojC3gpuuMgbOn7dP3A/ViR6FoxRvX/cx GUeRvT8D2OgVAh7bNkA4FxUYzgPNQWxP7aby3e50EnMsJSI+VlZcersigQLVVYX7STGi Imp4wWbpo9ZA+sm00wr6A3nr4k5aI0v3/S0H/F2aybdN0n+N1052CRUoWKzTM0gNxoYS 4vpGbvwLrCEXwBxb3xGbkZfL9aJEewjFV0JyJ0QbfqMrp5L02klX7vVjiJKaJ+Vov23o EimQ== X-Gm-Message-State: ABuFfojxxqAjBzVqArEaE+Awa3zKnoUiJmllCBZ+D7v3bcVpL6dfcd/X 97Qss+hoSuCPzEWJOHC+5wdGTA== X-Google-Smtp-Source: ACcGV62bMpHUc6gpXDjKQ/PSXW0K+9aGxAhvuCF9p9SM9LYnt+7kyI++LjdROimYDYwfEfesIAN3HA== X-Received: by 2002:a17:906:3181:: with SMTP id 1-v6mr27152839ejy.80.1539797827591; Wed, 17 Oct 2018 10:37:07 -0700 (PDT) Original-Received: from localhost ([213.233.148.7]) by smtp.gmail.com with ESMTPSA id g48-v6sm7146967edc.93.2018.10.17.10.37.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Oct 2018 10:37:06 -0700 (PDT) In-Reply-To: <83k1mirl9n.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 16 Oct 2018 17:58:28 +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:151350 Archived-At: --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=gdb.txt #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 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 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 #8 0x000055555557d09d in read_response_body (hs=0x7fffffffd9d0, sock=4, fp=0x7ffff7739760 <_IO_2_1_stdout_>, contlen=198224, contrange=0, chunked_transfer_encoding=false, url=0x5555555ff920 "https://en.wikipedia.org/wiki/Emacs", warc_timestamp_str=0x7fffffffd470 "\f\335\377\377\377\177", warc_request_uuid=0x7fffffffd440 ",", warc_ip=0x0, type=0x5555559c8fc0 "text/html", statcode=200, head=0x5555559b35d0 "HTTP/1.1 200 OK\r\nDate: Wed, 17 Oct 2018 17:29:35 GMT\r\nContent-Type: text/html; charset=UTF-8\r\nContent-Length: 198224\r\nConnection: keep-alive\r\nServer: mw1325.eqiad.wmnet\r\nVary: Accept-Encoding,Cookie,A"...) at http.c:1717 #9 0x0000555555581b06 in gethttp (u=0x5555555ff8b0, original_url=0x5555555ff8b0, hs=0x7fffffffd9d0, dt=0x7fffffffdd0c, proxy=0x0, iri=0x5555555ff880, count=1) at http.c:4129 #10 0x0000555555582239 in http_loop (u=0x5555555ff8b0, original_url=0x5555555ff8b0, newloc=0x7fffffffdb68, local_file=0x7fffffffdb58, referer=0x0, dt=0x7fffffffdd0c, proxy=0x0, iri=0x5555555ff880) at http.c:4363 #11 0x0000555555592ca4 in retrieve_url (orig_parsed=0x5555555ff8b0, origurl=0x5555555ff490 "https://en.wikipedia.org/wiki/Emacs", file=0x7fffffffdd18, newloc=0x7fffffffdd10, refurl=0x0, dt=0x7fffffffdd0c, recursive=false, iri=0x5555555ff880, register_status=true) at retr.c:957 #12 0x000055555558b33e in main (argc=3, argv=0x7fffffffdef8) at main.c:2158 --=-=-= Content-Type: text/plain Eli Zaretskii writes: > Can you attach a debugger to the wget process that's stuck, and see > where it is stuck? You will probably need to rebuild wget with debug > info, or install one from your package repository (if they offer > such). This could give us hints for where to look further. I did the following: 0. Build wget 1.19.5 from Debian's repositories: apt-get build-dep wget apt-get source wget configure CC='ccache gcc' CFLAGS='-O0 -g3 -ggdb -gdwarf-4 -pipe' --config-cache --enable-assert --with-gnu-ld make 1. Substitute resulting wget file name in original test.el program 2. emacs26 -Q -l test.el -f test-threads 3. gdb -p 4. set logging on 5. bt I attach the resulting gdb.txt log file. Thanks, -- Basil --=-=-=--