From unknown Tue Sep 23 19:07:59 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16925: 24.3.50: Failed select: resource temporarily unavailable Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Mar 2014 10:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16925 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 16925@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.139384264913272 (code B ref -1); Mon, 03 Mar 2014 10:31:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Mar 2014 10:30:49 +0000 Received: from localhost ([127.0.0.1]:48542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WKQ92-0003Rx-Rb for submit@debbugs.gnu.org; Mon, 03 Mar 2014 05:30:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38674) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WKQ8y-0003Ri-42 for submit@debbugs.gnu.org; Mon, 03 Mar 2014 05:30:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WKQ8r-0000Nk-Cz for submit@debbugs.gnu.org; Mon, 03 Mar 2014 05:30:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKQ8r-0000Ne-9R for submit@debbugs.gnu.org; Mon, 03 Mar 2014 05:30:37 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKQ8k-00042M-V4 for bug-gnu-emacs@gnu.org; Mon, 03 Mar 2014 05:30:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WKQ8e-0000J4-IE for bug-gnu-emacs@gnu.org; Mon, 03 Mar 2014 05:30:30 -0500 Received: from forward2h.mail.yandex.net ([84.201.187.147]:47720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKQ8d-0000IX-UZ for bug-gnu-emacs@gnu.org; Mon, 03 Mar 2014 05:30:24 -0500 Received: from smtp4h.mail.yandex.net (smtp4h.mail.yandex.net [84.201.186.21]) by forward2h.mail.yandex.net (Yandex) with ESMTP id E53957008D8 for ; Mon, 3 Mar 2014 14:30:11 +0400 (MSK) Received: from smtp4h.mail.yandex.net (localhost [127.0.0.1]) by smtp4h.mail.yandex.net (Yandex) with ESMTP id ABE242C33C3 for ; Mon, 3 Mar 2014 14:30:11 +0400 (MSK) Received: from unknown (unknown [37.139.80.10]) by smtp4h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id xxnvsAjq0e-UBT4oiXn; Mon, 3 Mar 2014 14:30:11 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 56dc4a1a-24cd-4df0-a028-05343fc8da27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1393842611; bh=s8BJfV+1dEVaWcteE6uNi740X1+ukw3Z/6CRjd9LDy8=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Content-Transfer-Encoding; b=BSc+2sfUJp6i8Ek+YiCIZ7S1gd8JRpBvXCuXA0mmKsRjMjQSKEi2slIJip/zLwNvT 4npofmaiHkt2VXnouJpYH5q4vpWZTbYx+0CynUj2rJCD4M3PXZoYB/H/F7EKAJWnhM shw9HsQiXgdaGojeirN3fJN0OufPqm83JXrua82w= Authentication-Results: smtp4h.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <531459B3.2080605@yandex.ru> Date: Mon, 03 Mar 2014 14:30:11 +0400 From: Dmitry Antipov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) While working on http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16069, I've used the following test function: (defun bloat-font-frame () (interactive) (while t (let ((fonts (progn (select-frame (make-frame-on-display ":0.0")) (x-list-fonts "*")))) (while fonts (delete-frame) (select-frame (make-frame-on-display ":0.0")) (with-current-buffer "*scratch*" (erase-buffer) (condition-case nil (progn (set-frame-font (car fonts)) (set-frame-size nil 40 20)) (error nil)) (insert (format "This is %S" (car fonts)))) (setq fonts (cdr fonts)) (redisplay) (sleep-for 1.0))))) Running with: ./src/emacs -Q -nw -l ../misc/bloat-font-frame.el and then M-x bloat-font-frame, this works as expected with GTK and --with-x-toolkit=no builds. But with Lucid/Motif, it always fails with error message "Failed select: resource temporarily unavailable", which happens at process.c:4664 (as of trunk revision 116642). 100% reproducible, with the backtrace pointed to Fsleep_for. In GNU Emacs 24.3.50.2 (x86_64-unknown-linux-gnu, Motif Version 2.3.4) of 2014-03-03 on localhost.localdomain Repository revision: 116642 dmantipov@yandex.ru-20140303082758-a6p93v3jhm6yjy7k Windowing system distributor `Fedora Project', version 11.0.11404000 System Description: Fedora release 20 (Heisenbug) Configured using: `configure --prefix=/not/exists --with-x-toolkit=motif --enable-checking 'CFLAGS=-O0 -g3'' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-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 line-number-mode: t transient-mark-mode: t Recent input: ESC x b l o a t - f o TAB RET M-x r e p o r Recent messages: ("/home/dima/work/emacs/build-motif/src/emacs" "-l" "../misc/bloat-font-frame.el") For information about GNU Emacs and the GNU system, type C-h C-a. while: Failed select: resource temporarily unavailable Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting motif x-toolkit x multi-tty emacs) From unknown Tue Sep 23 19:07:59 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Dmitry Antipov Subject: bug#16925: closed (Re: 24.3.50: Failed select: resource temporarily unavailable) Message-ID: References: <5316C569.8030005@cs.ucla.edu> <531459B3.2080605@yandex.ru> X-Gnu-PR-Message: they-closed 16925 X-Gnu-PR-Package: emacs Reply-To: 16925@debbugs.gnu.org Date: Wed, 05 Mar 2014 06:35:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1394001303-3537-1" This is a multi-part message in MIME format... ------------=_1394001303-3537-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #16925: 24.3.50: Failed select: resource temporarily unavailable which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 16925@debbugs.gnu.org. --=20 16925: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D16925 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1394001303-3537-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 16925-done) by debbugs.gnu.org; 5 Mar 2014 06:34:22 +0000 Received: from localhost ([127.0.0.1]:51001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WL5PJ-0000tq-Lq for submit@debbugs.gnu.org; Wed, 05 Mar 2014 01:34:21 -0500 Received: from smtp.cs.ucla.edu ([131.179.128.62]:52474) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WL5PG-0000te-Gt for 16925-done@debbugs.gnu.org; Wed, 05 Mar 2014 01:34:19 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id B52F4A60003 for <16925-done@debbugs.gnu.org>; Tue, 4 Mar 2014 22:34:17 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GarvK1+yUFI5 for <16925-done@debbugs.gnu.org>; Tue, 4 Mar 2014 22:34:17 -0800 (PST) Received: from [192.168.1.9] (pool-108-0-233-62.lsanca.fios.verizon.net [108.0.233.62]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 62415A60002 for <16925-done@debbugs.gnu.org>; Tue, 4 Mar 2014 22:34:17 -0800 (PST) Message-ID: <5316C569.8030005@cs.ucla.edu> Date: Tue, 04 Mar 2014 22:34:17 -0800 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: 16925-done@debbugs.gnu.org Subject: Re: 24.3.50: Failed select: resource temporarily unavailable Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 16925-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (--) Thanks for reporting this. I reproduced the bug on my platform (Fedora 20 x86-64) and installed a patch that worked for me as trunk bzr 115987. ------------=_1394001303-3537-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Mar 2014 10:30:49 +0000 Received: from localhost ([127.0.0.1]:48542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WKQ92-0003Rx-Rb for submit@debbugs.gnu.org; Mon, 03 Mar 2014 05:30:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38674) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WKQ8y-0003Ri-42 for submit@debbugs.gnu.org; Mon, 03 Mar 2014 05:30:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WKQ8r-0000Nk-Cz for submit@debbugs.gnu.org; Mon, 03 Mar 2014 05:30:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKQ8r-0000Ne-9R for submit@debbugs.gnu.org; Mon, 03 Mar 2014 05:30:37 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKQ8k-00042M-V4 for bug-gnu-emacs@gnu.org; Mon, 03 Mar 2014 05:30:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WKQ8e-0000J4-IE for bug-gnu-emacs@gnu.org; Mon, 03 Mar 2014 05:30:30 -0500 Received: from forward2h.mail.yandex.net ([84.201.187.147]:47720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKQ8d-0000IX-UZ for bug-gnu-emacs@gnu.org; Mon, 03 Mar 2014 05:30:24 -0500 Received: from smtp4h.mail.yandex.net (smtp4h.mail.yandex.net [84.201.186.21]) by forward2h.mail.yandex.net (Yandex) with ESMTP id E53957008D8 for ; Mon, 3 Mar 2014 14:30:11 +0400 (MSK) Received: from smtp4h.mail.yandex.net (localhost [127.0.0.1]) by smtp4h.mail.yandex.net (Yandex) with ESMTP id ABE242C33C3 for ; Mon, 3 Mar 2014 14:30:11 +0400 (MSK) Received: from unknown (unknown [37.139.80.10]) by smtp4h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id xxnvsAjq0e-UBT4oiXn; Mon, 3 Mar 2014 14:30:11 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 56dc4a1a-24cd-4df0-a028-05343fc8da27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1393842611; bh=s8BJfV+1dEVaWcteE6uNi740X1+ukw3Z/6CRjd9LDy8=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Content-Transfer-Encoding; b=BSc+2sfUJp6i8Ek+YiCIZ7S1gd8JRpBvXCuXA0mmKsRjMjQSKEi2slIJip/zLwNvT 4npofmaiHkt2VXnouJpYH5q4vpWZTbYx+0CynUj2rJCD4M3PXZoYB/H/F7EKAJWnhM shw9HsQiXgdaGojeirN3fJN0OufPqm83JXrua82w= Authentication-Results: smtp4h.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <531459B3.2080605@yandex.ru> Date: Mon, 03 Mar 2014 14:30:11 +0400 From: Dmitry Antipov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.3.50: Failed select: resource temporarily unavailable Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) While working on http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16069, I've used the following test function: (defun bloat-font-frame () (interactive) (while t (let ((fonts (progn (select-frame (make-frame-on-display ":0.0")) (x-list-fonts "*")))) (while fonts (delete-frame) (select-frame (make-frame-on-display ":0.0")) (with-current-buffer "*scratch*" (erase-buffer) (condition-case nil (progn (set-frame-font (car fonts)) (set-frame-size nil 40 20)) (error nil)) (insert (format "This is %S" (car fonts)))) (setq fonts (cdr fonts)) (redisplay) (sleep-for 1.0))))) Running with: ./src/emacs -Q -nw -l ../misc/bloat-font-frame.el and then M-x bloat-font-frame, this works as expected with GTK and --with-x-toolkit=no builds. But with Lucid/Motif, it always fails with error message "Failed select: resource temporarily unavailable", which happens at process.c:4664 (as of trunk revision 116642). 100% reproducible, with the backtrace pointed to Fsleep_for. In GNU Emacs 24.3.50.2 (x86_64-unknown-linux-gnu, Motif Version 2.3.4) of 2014-03-03 on localhost.localdomain Repository revision: 116642 dmantipov@yandex.ru-20140303082758-a6p93v3jhm6yjy7k Windowing system distributor `Fedora Project', version 11.0.11404000 System Description: Fedora release 20 (Heisenbug) Configured using: `configure --prefix=/not/exists --with-x-toolkit=motif --enable-checking 'CFLAGS=-O0 -g3'' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-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 line-number-mode: t transient-mark-mode: t Recent input: ESC x b l o a t - f o TAB RET M-x r e p o r Recent messages: ("/home/dima/work/emacs/build-motif/src/emacs" "-l" "../misc/bloat-font-frame.el") For information about GNU Emacs and the GNU system, type C-h C-a. while: Failed select: resource temporarily unavailable Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting motif x-toolkit x multi-tty emacs) ------------=_1394001303-3537-1--