From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?Q?andr=C3=A9s_ram=C3=ADrez?= Newsgroups: gmane.emacs.devel Subject: Re: wait_reading_process_ouput hangs in certain cases (w/ patches) Date: Tue, 27 Feb 2018 05:54:55 -0600 Organization: bien.comun.org Message-ID: <87k1uy8x68.fsf@gmail.com> References: <56e722a6-95a4-0e42-185c-f26845d4f4bf@binary-island.eu> <21237e45-a353-92f9-01ec-7b51640d2031@cs.ucla.edu> <83vaickfu2.fsf@gnu.org> <83tvxwkexg.fsf@gnu.org> <03261534-6bf5-1a5d-915f-d3c55aaa35e9@binary-island.eu> <206ebefa-7583-f049-140c-c8fd041b0719@cs.ucla.edu> <709614e8-1937-07c1-f554-b453ed4f3d4a@binary-island.eu> <7550438b-9fd4-d374-e571-8bb16456cad5@cs.ucla.edu> <797d0e16-1bae-50c2-35f8-05489ffce935@binary-island.eu> <83tvugdiu5.fsf@gnu.org> <877er5s0xv.fsf@gmail.com> <4e4c72bb-295d-81e1-e4ed-cad256bca83c@binary-island.eu> <87zi3v9461.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1519732430 17652 195.159.176.226 (27 Feb 2018 11:53:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Feb 2018 11:53:50 +0000 (UTC) Cc: Lars Ingebrigtsen , eggert@cs.ucla.edu, Eli Zaretskii , emacs-devel@gnu.org To: Matthias Dahl Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 27 12:53:46 2018 Return-path: Envelope-to: ged-emacs-devel@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 1eqdpJ-00040l-UD for ged-emacs-devel@m.gmane.org; Tue, 27 Feb 2018 12:53:46 +0100 Original-Received: from localhost ([::1]:36425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqdrM-0007sf-6c for ged-emacs-devel@m.gmane.org; Tue, 27 Feb 2018 06:55:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqdqd-0007nG-H9 for emacs-devel@gnu.org; Tue, 27 Feb 2018 06:55:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqdqd-0007HG-Jp for emacs-devel@gnu.org; Tue, 27 Feb 2018 06:55:07 -0500 Original-Received: from mail-ua0-x233.google.com ([2607:f8b0:400c:c08::233]:45621) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eqdqd-0007H6-DK; Tue, 27 Feb 2018 06:55:07 -0500 Original-Received: by mail-ua0-x233.google.com with SMTP id z3so12793394uae.12; Tue, 27 Feb 2018 03:55:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:organization:references:date :message-id:mime-version; bh=vRUejgk5BImNDNPqUMd9D16ZxTdCDEdFlHPHEf44UKU=; b=TBCRVhGJ82AgVYbxU7bgiIlrMHpE9ZHC9KiPOA9krs1aaLGHbnwibEWoeM6p1GzIsq VBDsohd0EwaWcNkVYoSSFU5syG6l1RkmN9tfuhnQ3eWOjYWNkDX700f2ecwmebL5sEOD bfu2qKD2ZijKo7+aM2JQKUCY72lqkPoG3osSpUo/4j8En12VFtHlBkDQzwHpQGTjtCXX Wb75QpgQjzD1B4IrP84IQE51KC1p8r9gQwsJDxCn4Ck54WePu/UpTy98j6w4asWcPYwF ttXOcoFLys1btDV6tpph8YzZYCszuFWk/4UAymySAOv1iW534ZA01XzkJ7XInih23P7k OB3w== 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:in-reply-to:organization :references:date:message-id:mime-version; bh=vRUejgk5BImNDNPqUMd9D16ZxTdCDEdFlHPHEf44UKU=; b=fuG9ef9suGwqfNmf4alG0KPUfFrFMuyy1/pgR/FeBW8GeOczZ0pMhaRJfd7LsS0dye o7og+6cBY+KMc8OTIFWyhqGvOtMMVxiUim2+NailIdkbquEzJOQKWsU8pi2o9WepyHJ2 /seqpyEK5FsWKrXvhuNkBLqd4jmk/di4qeX0MZc0hFt0mBaeCbwB936Hx30OZRE6hC5c fSQ3MfmLMfAXspERmo805O4H8hkxv+CMvlm6PWYNwE+RUPNjkrBORsM9+qe8cAoQkGpH NHDnUV91eIVhd/a8dRwFG6u/tEFzfiOEE7W3/eLC2cwePKQf0AzGBnzMhXekp+CubbeQ LGcQ== X-Gm-Message-State: APf1xPBn0Vlu4E02p8t7hP77gR4zunFIlmz3Ys7YfqXsh4en32MGLkiD D4avinRQogi9hTvJqwcI4VCtFA== X-Google-Smtp-Source: AG47ELu8GeXjeM60p9jOIGs+DnYUVr/I2Pmmgn1HHxanv/pJvD/3ojjATit0HFY/QfI3SVu3B3zkPA== X-Received: by 10.159.57.95 with SMTP id i31mr10504428uag.44.1519732506321; Tue, 27 Feb 2018 03:55:06 -0800 (PST) Original-Received: from chulpaca.n800.arm.processor.fastmail.fm ([181.64.192.63]) by smtp.gmail.com with ESMTPSA id x30sm7788620uah.30.2018.02.27.03.55.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Feb 2018 03:55:04 -0800 (PST) In-Reply-To: X-Attribution: INKA X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400c:c08::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223118 Archived-At: Hi Matthias > I know what you are trying to say but in this particular case I think > the risk is rather low of "breaking" someone's workflow. And if this > change does introduce some kind of valid breakage, it would be nice > to know about this sooner rather than later. I know 26 is already in > beta, but this is essentially a bug fix and the recent patch is also > smaller and more clearly laid-out which makes it easier to assess and > reduces its side-effects. I also think this patch is going to help with several cases and also bugs difficult to fix or repeat. > > Btw. Lars. Mentioned a hang. I have also got a hang a few minutes ago reading > > nntp news with an specific site > > Do you get those hangs with an Emacs version that had the bug fix? Yes. > have you been able to pinpoint where exactly Emacs hangs? (backtrace) > Also, is this a "cancelable" hang (hitting ctrl+g) or a real hang and > you need to kill Emacs altogether? It is|was cancelable. On emacs 26 I used to use a workaround: --8<---------------cut here---------------start------------->8--- (maphash (lambda (con &rest ignored) (when (and con (get-process (car con))) (delete-process (car con)))) url-http-open-connections) --8<---------------cut here---------------end--------------->8--- On master (with the patch included) the var url-http-open-connections is not present. With emacs-26 After applying the mentiode above workaround I could have restarted downloading news again . Also on master. I need to restart wanderlust to continue downloading news. If I do not restart wanderlust and I keep refreshing the news for the site emacs hangs again and again needing C-g. Question: I am going to see how to plug gdb to this server-session. Btw how were You able of debugging It?. I was not able of doing It in the last years.