From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22789: 25.1.50; In last master build https connections stop working Date: Sat, 05 Mar 2016 15:24:23 +0200 Message-ID: <83d1r9xdko.fsf@gnu.org> References: <864mcyo14y.fsf@Lenovo-PC.i-did-not-set--mail-host-address--so-tickle-me> <871t7xhj7t.fsf@gnus.org> <86oab1vjm9.fsf@realize.ch> <86d1rhpvcq.fsf@realize.ch> <834mctbitq.fsf@gnu.org> <868u25p3m2.fsf@realize.ch> <83io18ahya.fsf@gnu.org> <86y4a3on6f.fsf@realize.ch> <87oaazg7fv.fsf@gnus.org> <86twkro0vr.fsf@realize.ch> <87mvqjgqqg.fsf@gnus.org> <86k2lnnlwy.fsf@realize.ch> <831t7u9826.fsf@gnu.org> <87vb56vkti.fsf@gnus.org> <83ziui6w1s.fsf@gnu.org> <87d1rcrc36.fsf@gnus.org> <83twko64y7.fsf@gnu.org> <87lh60nnh4.fsf@gnus.org> <83egbqzkvd.fsf@gnu.org> <87a8me32ah.fsf@gnus.org> <831t7qz4c3.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1457184333 25559 80.91.229.3 (5 Mar 2016 13:25:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Mar 2016 13:25:33 +0000 (UTC) Cc: j_l_domenech@yahoo.com, a.s@realize.ch, 22789@debbugs.gnu.org To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 05 14:25:17 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1acCCp-0005Ni-GO for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Mar 2016 14:25:15 +0100 Original-Received: from localhost ([::1]:46513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acCCo-0005Ur-Io for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Mar 2016 08:25:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acCCg-0005QF-Mj for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2016 08:25:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acCCc-0007ad-Mo for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2016 08:25:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acCCc-0007aJ-Ji for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2016 08:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1acCCc-0001x1-DU for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2016 08:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Mar 2016 13:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22789 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22789-submit@debbugs.gnu.org id=B22789.14571842747453 (code B ref 22789); Sat, 05 Mar 2016 13:25:02 +0000 Original-Received: (at 22789) by debbugs.gnu.org; 5 Mar 2016 13:24:34 +0000 Original-Received: from localhost ([127.0.0.1]:34358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1acCCA-0001w9-3O for submit@debbugs.gnu.org; Sat, 05 Mar 2016 08:24:34 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60797) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1acCC8-0001vw-Ey for 22789@debbugs.gnu.org; Sat, 05 Mar 2016 08:24:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acCBz-0007Wi-BN for 22789@debbugs.gnu.org; Sat, 05 Mar 2016 08:24:27 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acCBz-0007We-7f; Sat, 05 Mar 2016 08:24:23 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1432 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1acCBy-0002Ur-Du; Sat, 05 Mar 2016 08:24:22 -0500 In-reply-to: (message from Lars Magne Ingebrigtsen on Sat, 05 Mar 2016 13:26:50 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114448 Archived-At: > From: Lars Magne Ingebrigtsen > Cc: a.s@realize.ch, j_l_domenech@yahoo.com, 22789@debbugs.gnu.org > Date: Sat, 05 Mar 2016 13:26:50 +0100 > > This is probably totally unrelated, but I saw a "hang" in Emacs for the > first time in weeks. shr was downloading an image over https, and Emacs > became unresponsive. strace showed the following: > > [pid 12890] pselect6(39, [3 6 7 12 13 14 15 16 17 18 19 20 38], [], NULL, {0, 0}, {NULL, 8}) = 2 (in [18 19], left {0, 0}) > [pid 12890] pselect6(39, [3 6 7 12 13 14 15 16 17 18 19 20 38], [], NULL, {0, 0}, {NULL, 8}) = 2 (in [18 19], left {0, 0}) > [pid 12890] pselect6(39, [3 6 7 12 13 14 15 16 17 18 19 20 38], [], NULL, {0, 0}, {NULL, 8}) = 2 (in [18 19], left {0, 0}) > [pid 12890] pselect6(39, [3 6 7 12 13 14 15 16 17 18 19 20 38], [], NULL, {0, 0}, {NULL, 8}) = 2 (in [18 19], left {0, 0}) > [pid 12890] pselect6(39, [3 6 7 12 13 14 15 16 17 18 19 20 38], [], NULL, {0, 0}, {NULL, 8}) = 2 (in [18 19], left {0, 0}) > [pid 12890] pselect6(39, [3 6 7 12 13 14 15 16 17 18 19 20 38], [], NULL, {0, 0}, {NULL, 8}) = 2 (in [18 19], left {0, 0}) > [pid 12890] pselect6(39, [3 6 7 12 13 14 15 16 17 18 19 20 38], [], NULL, {0, 0}, {NULL, 8}) = 2 (in [18 19], left {0, 0}) > [pid 12890] pselect6(39, [3 6 7 12 13 14 15 16 17 18 19 20 38], [], NULL, {0, 0}, {NULL, 8}) = 2 (in [18 19], left {0, 0}) > [pid 12890] pselect6(39, [3 6 7 12 13 14 15 16 17 18 19 20 38], [], NULL, {0, 0}, {NULL, 8}) = 2 (in [18 19], left {0, 0}) > > This went on for perhaps 30 seconds? (Hm. Which is what I have > `url-queue-timeout' set to... Hm...) Then it stopped without > downloading the image. Hard to say anything intelligent without knowing what are descriptors 18 and 19. > Now, the pselect6 call has a timeout of {0, 0}? If I'm reading the man > page right. > > I think it's probably this code? > > /* If status of something has changed, and no input is > available, notify the user of the change right away. After > this explicit check, we'll let the SIGCHLD handler zap > timeout to get our attention. */ > if (update_tick != process_tick) > { > fd_set Atemp; > fd_set Ctemp; > > if (kbd_on_hold_p ()) > FD_ZERO (&Atemp); > else > Atemp = input_wait_mask; > Ctemp = write_mask; > > timeout = make_timespec (0, 0); > if ((pselect (max (max_process_desc, max_input_desc) + 1, > &Atemp, > #ifdef NON_BLOCKING_CONNECT > (num_pending_connects > 0 ? &Ctemp : NULL), > #else > NULL, > #endif > NULL, &timeout, NULL) > <= 0)) > > I'm not quite sure what it's trying to do... Hm... The comment above seems to explain what it does, no?