From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#28319: emacsclient tests interfere with running Emacs, hang Date: Wed, 06 Sep 2017 19:02:09 +0300 Message-ID: <83pob324u6.fsf@gnu.org> References: <9swp5iqsmt.fsf@fencepost.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1504713908 29891 195.159.176.226 (6 Sep 2017 16:05:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 6 Sep 2017 16:05:08 +0000 (UTC) Cc: 28319@debbugs.gnu.org To: Reuben Thomas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 06 18:04:57 2017 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 1dpcoy-0007Hr-90 for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Sep 2017 18:04:56 +0200 Original-Received: from localhost ([::1]:36952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpcp5-0007sl-Bp for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Sep 2017 12:05:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpcnE-0006j0-Gg for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2017 12:03:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpcn8-0005Bo-Jm for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2017 12:03:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44546) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dpcn8-0005Bk-GQ for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2017 12:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dpcn8-0003Py-8B for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2017 12:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Sep 2017 16:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28319 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28319-submit@debbugs.gnu.org id=B28319.150471374213088 (code B ref 28319); Wed, 06 Sep 2017 16:03:02 +0000 Original-Received: (at 28319) by debbugs.gnu.org; 6 Sep 2017 16:02:22 +0000 Original-Received: from localhost ([127.0.0.1]:53227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpcmU-0003P2-DY for submit@debbugs.gnu.org; Wed, 06 Sep 2017 12:02:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49395) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpcmT-0003Oo-3I for 28319@debbugs.gnu.org; Wed, 06 Sep 2017 12:02:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpcmJ-0004kD-8b for 28319@debbugs.gnu.org; Wed, 06 Sep 2017 12:02:15 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpcmJ-0004k9-5v; Wed, 06 Sep 2017 12:02:11 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4851 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dpcmI-0006Aq-2w; Wed, 06 Sep 2017 12:02:10 -0400 In-reply-to: (message from Reuben Thomas on Tue, 5 Sep 2017 22:11:15 +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" Xref: news.gmane.org gmane.emacs.bugs:136638 Archived-At: > From: Reuben Thomas > Date: Tue, 5 Sep 2017 22:11:15 +0100 > Cc: 28319@debbugs.gnu.org > > I see that Emacs, in src/sysdep.c, sets SIGPROF's handler to SIG_IGN. So Emacs ignores the signal, but > clearly from the call-process return value, it's being delivered to the emacsclient child process. What Emacs does in sysdep.c doesn't sound relevant, as the problem happens also when only emacsclient is built with -pg. So I think SIGPROF that matters happens in emacsclient, not in Emacs. > The main thing I don't understand is why this behavior isn't a problem for other tests that use call-process, Most probably because the programs they invoke aren't built with -pg. > except that they don't seem to check the return value; but unlike the emacsclient test, at least some of them > rely on some action having been taken by the called process, so presumably it must have completed > successfully before receiving SIGPROF? If this is indeed the case, then the emacsclient test could simply > allow the error message to signal success. > > Can you enlighten me any further? Could it be that SIGPROF triggered by the profiling code interrupts some system call made by emacsclient, and emacsclient doesn't have code to recover from that? In any case, why are we running the test suite with Emacs compiled with profiling? Is there a good reason for doing that? Does that bring us some useful data? If not, simply building without profiling might easily fix this problem.