GNU bug report logs - #33709
Hang when compiled with --coverage and gcc 7.3

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Glenn Morris <rgm@HIDDEN>; dated Tue, 11 Dec 2018 19:00:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 33709 <at> debbugs.gnu.org:


Received: (at 33709) by debbugs.gnu.org; 28 Dec 2018 04:07:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 27 23:07:09 2018
Received: from localhost ([127.0.0.1]:39649 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gcjQT-0000VL-7B
	for submit <at> debbugs.gnu.org; Thu, 27 Dec 2018 23:07:09 -0500
Received: from sonic317-21.consmr.mail.gq1.yahoo.com ([98.137.66.147]:38274)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <paul.eggert@HIDDEN>) id 1gcjQR-0000Um-Bz
 for 33709 <at> debbugs.gnu.org; Thu, 27 Dec 2018 23:07:07 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1545970021; bh=Fl9sHHlreAPq3niB/IcDcqtQu5/mQsRnFlNrHfwE6Vo=;
 h=To:Cc:From:Subject:Date:From:Subject;
 b=kxnjMdC9xLPv6O68E4qT1BlGVDa922p4hmpRDPJST7hz7zXXZPv8SCl9Q28tcBR5ukjU9Dr8Dpg7eTILe6NC5ce4oi6c6IRCJukERhTMmpGg0DCugEcYVG+2pZ+RiLkGAmIVe7BnlR35gKQuY3TBebYwvt3RCHtAvoXImXW0w/FUmHp8xolhFbTYgX7ksM5gtppu+cpomIFH0Y+BS4Rh9Uu/duJP3YKUG+4vF25Gw0l7nWnVBZCdBhrcWcjQNh6Gl5Fs0L0EEUzo6YBrKsLpBGSZL704VKvp7tWbHUSOfLN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7rBPkRatZgDIJxX3UZTlso8FS6daXH1HPNx0JO1JY7rYits_p
 VY15_EqHgei4ZVkES2uXFHw6z7JIv2POivSlN2gohKE3PAsq7PQLIAA4pjzyz1krMnZk9W7Bm036
 UABE-
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic317.consmr.mail.gq1.yahoo.com with HTTP; Fri, 28 Dec 2018 04:07:01 +0000
Received: from cpe-23-242-74-103.socal.res.rr.com (EHLO [192.168.1.9])
 ([23.242.74.103])
 by smtp413.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID
 913e17988a8306ea42475d251ceccce2; 
 Fri, 28 Dec 2018 04:06:57 +0000 (UTC)
To: Glenn Morris <rgm@HIDDEN>
From: Paul Eggert <paul.eggert@HIDDEN>
Subject: Hang when compiled with --coverage and gcc 7.3
Openpgp: preference=signencrypt
Autocrypt: addr=paul.eggert@HIDDEN; prefer-encrypt=mutual; keydata=
 xsFNBEyAcmQBEADAAyH2xoTu7ppG5D3a8FMZEon74dCvc4+q1XA2J2tBy2pwaTqfhpxxdGA9
 Jj50UJ3PD4bSUEgN8tLZ0san47l5XTAFLi2456ciSl5m8sKaHlGdt9XmAAtmXqeZVIYX/UFS
 96fDzf4xhEmm/y7LbYEPQdUdxu47xA5KhTYp5bltF3WYDz1Ygd7gx07Auwp7iw7eNvnoDTAl
 KAl8KYDZzbDNCQGEbpY3efZIvPdeI+FWQN4W+kghy+P6au6PrIIhYraeua7XDdb2LS1en3Ss
 mE3QjqfRqI/A2ue8JMwsvXe/WK38Ezs6x74iTaqI3AFH6ilAhDqpMnd/msSESNFt76DiO1ZK
 QMr9amVPknjfPmJISqdhgB1DlEdw34sROf6V8mZw0xfqT6PKE46LcFefzs0kbg4GORf8vjG2
 Sf1tk5eU8MBiyN/bZ03bKNjNYMpODDQQwuP84kYLkX2wBxxMAhBxwbDVZudzxDZJ1C2VXujC
 OJVxq2kljBM9ETYuUGqd75AW2LXrLw6+MuIsHFAYAgRr7+KcwDgBAf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dHrqHH767jaDaTB1+Talp/2AMKwc
 XNOdiklGxbmHVG6YGl6g8Lrbsu9NZEI4yLlHzuikthJWgz+3vZhVGyNlt+HNIoF6CjDL2omu
 5cEq4RDHM44QqPk6l7O0pUvN1mT4B+S1b08RKpqm/ff015E37HNV/piIvJlxGAYz8PSfuGCB
 1thMYqlmgdhd9/BabGFbGGYHA6U4/T5zqU+f6xHy1SsAQZ1MSKlLwekBIT+4/cLRGqCHjnV0
 q5H/T6a7t5mPkbzSrOLSo4puj+IToNjYyYIDBWzhlA19avOa+rvUjmHtD3sFN7cXWtkGoi8b
 uNcby4U=
Message-ID: <b6cdab6b-0794-7eeb-d37e-84d6a3e6afb4@HIDDEN>
Date: Thu, 27 Dec 2018 20:06:56 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.2.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 33709
Cc: 33709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

I'm surprised that --coverage ever worked in a dumped emacs. I think libgcov 
uses the dynamic linker's malloc (so Emacs has *three* malloc implementations) 
and our trick for switching from the Emacs malloc in temacs to the system malloc 
in bootstrap-emacs won't work for memory allocated for --coverage. 
Unfortunately, the libgcov actions do not seem to be easy to disable in temacs 
and re-enable in bootstrap-emacs.

I suggest that we just say this combination isn't supported; if you want to 
build Emacs with gcc --coverage you can configure with CANNOT_DUMP=yes.

If the portable dumper ever gets working, --coverage should be easy to support, 
of course.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#33709; Package emacs. Full text available.

Message received at 33709 <at> debbugs.gnu.org:


Received: (at 33709) by debbugs.gnu.org; 13 Dec 2018 19:54:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 13 14:54:54 2018
Received: from localhost ([127.0.0.1]:46779 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gXX4M-0008DB-8V
	for submit <at> debbugs.gnu.org; Thu, 13 Dec 2018 14:54:53 -0500
Received: from eggs.gnu.org ([208.118.235.92]:37584)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1gXX4I-0008Cv-RR
 for 33709 <at> debbugs.gnu.org; Thu, 13 Dec 2018 14:54:47 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1gXX48-0003yu-KA
 for 33709 <at> debbugs.gnu.org; Thu, 13 Dec 2018 14:54:41 -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.0 required=5.0 tests=BAYES_20 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40407)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1gXX48-0003yo-GP
 for 33709 <at> debbugs.gnu.org; Thu, 13 Dec 2018 14:54:36 -0500
Received: from [176.228.60.248] (port=3106 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1gXX47-0004Vj-Dc; Thu, 13 Dec 2018 14:54:36 -0500
Date: Thu, 13 Dec 2018 21:54:29 +0200
Message-Id: <83mup9gq2y.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
In-reply-to: <y0zht9dxla.fsf@HIDDEN> (message from Glenn Morris on
 Thu, 13 Dec 2018 14:40:33 -0500)
Subject: Re: bug#33709: Hang when compiled with --coverage and gcc 7.3
References: <mid0q799ex.fsf@HIDDEN> <838t0v279w.fsf@HIDDEN>
 <1gr2enluc5.fsf@HIDDEN> <2s36r3ssuk.fsf@HIDDEN>
 <y0zht9dxla.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 33709
Cc: 33709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

> From: Glenn Morris <rgm@HIDDEN>
> Date: Thu, 13 Dec 2018 14:40:33 -0500
> 
> On hydra, I had to drop all the way back to gcc 4.8 for this issue to go
> away. It still hung with gcc 5.5.0 (https://hydra.nixos.org/build/85827904)
> and 6.4.0 (https://hydra.nixos.org/build/85827876).

Was GCC 4.8 the version used on hydra before you upgraded to 7.4?

I hope Paul will look at this, but personally I'm very surprised that
"--coverage" at all works in a dumped Emacs, given the way it's
triggered (ctors and dtors).  It would be nice to have it working, of
course, if that's feasible.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#33709; Package emacs. Full text available.

Message received at 33709 <at> debbugs.gnu.org:


Received: (at 33709) by debbugs.gnu.org; 13 Dec 2018 19:40:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 13 14:40:42 2018
Received: from localhost ([127.0.0.1]:46748 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gXWqg-0007qV-8F
	for submit <at> debbugs.gnu.org; Thu, 13 Dec 2018 14:40:42 -0500
Received: from eggs.gnu.org ([208.118.235.92]:32936)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1gXWqe-0007qH-Tc
 for 33709 <at> debbugs.gnu.org; Thu, 13 Dec 2018 14:40:41 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1gXWqY-0002Za-Nt
 for 33709 <at> debbugs.gnu.org; Thu, 13 Dec 2018 14:40:35 -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.6 required=5.0 tests=BAYES_00, UNRESOLVED_TEMPLATE
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40093)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1gXWqY-0002Yp-DO
 for 33709 <at> debbugs.gnu.org; Thu, 13 Dec 2018 14:40:34 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1gXWqY-0000KO-66; Thu, 13 Dec 2018 14:40:34 -0500
From: Glenn Morris <rgm@HIDDEN>
To: 33709 <at> debbugs.gnu.org
Subject: Re: bug#33709: Hang when compiled with --coverage and gcc 7.3
References: <mid0q799ex.fsf@HIDDEN> <838t0v279w.fsf@HIDDEN>
 <1gr2enluc5.fsf@HIDDEN> <2s36r3ssuk.fsf@HIDDEN>
X-Spook: Lightening Consular Swine Transportation Security
X-Ran: E;!6dX09b_I,YSlFd3LgSeYZ%MU_%%Xg9fA,p6i0O;|A3a*d~oHkJDDZgf+w@@vMTjh<b?
X-Hue: magenta
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Thu, 13 Dec 2018 14:40:33 -0500
In-Reply-To: <2s36r3ssuk.fsf@HIDDEN> (Glenn Morris's message of
 "Tue, 11 Dec 2018 15:37:07 -0500")
Message-ID: <y0zht9dxla.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -4.3 (----)
X-Debbugs-Envelope-To: 33709
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.3 (-----)


On hydra, I had to drop all the way back to gcc 4.8 for this issue to go
away. It still hung with gcc 5.5.0 (https://hydra.nixos.org/build/85827904)
and 6.4.0 (https://hydra.nixos.org/build/85827876).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#33709; Package emacs. Full text available.

Message received at 33709 <at> debbugs.gnu.org:


Received: (at 33709) by debbugs.gnu.org; 11 Dec 2018 20:37:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 11 15:37:19 2018
Received: from localhost ([127.0.0.1]:44227 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gWomL-0007XO-JN
	for submit <at> debbugs.gnu.org; Tue, 11 Dec 2018 15:37:17 -0500
Received: from eggs.gnu.org ([208.118.235.92]:52829)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1gWomK-0007X9-7x
 for 33709 <at> debbugs.gnu.org; Tue, 11 Dec 2018 15:37:16 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1gWomD-0006DY-AQ
 for 33709 <at> debbugs.gnu.org; Tue, 11 Dec 2018 15:37:10 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45276)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1gWomD-0006DL-3a
 for 33709 <at> debbugs.gnu.org; Tue, 11 Dec 2018 15:37:09 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1gWomC-0002kT-Qn; Tue, 11 Dec 2018 15:37:08 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#33709: Hang when compiled with --coverage and gcc 7.3
References: <mid0q799ex.fsf@HIDDEN> <838t0v279w.fsf@HIDDEN>
 <1gr2enluc5.fsf@HIDDEN>
X-Spook: Watergate Jyllandsposten InfoSec KGB Response ANC
X-Ran: nfvqCbRmD_;w~P6vyrmwg|dc#BGqn,60S8!\r3V\PTqiIqQW},Fi>u$|OPeg0Q51DhL,Kf
X-Hue: white
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Tue, 11 Dec 2018 15:37:07 -0500
In-Reply-To: <1gr2enluc5.fsf@HIDDEN> (Glenn Morris's message of
 "Tue, 11 Dec 2018 14:46:50 -0500")
Message-ID: <2s36r3ssuk.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 33709
Cc: 33709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)


No such issue with gcc 6.3.1.
Perhaps/probably it is a gcc bug.
I'm hoping Paul will stop by and work one of his "Port to gcc XXX"
wonders as a work around... :)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#33709; Package emacs. Full text available.

Message received at 33709 <at> debbugs.gnu.org:


Received: (at 33709) by debbugs.gnu.org; 11 Dec 2018 19:47:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 11 14:46:59 2018
Received: from localhost ([127.0.0.1]:44204 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gWnzf-0005c0-Li
	for submit <at> debbugs.gnu.org; Tue, 11 Dec 2018 14:46:59 -0500
Received: from eggs.gnu.org ([208.118.235.92]:40304)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1gWnze-0005bp-LM
 for 33709 <at> debbugs.gnu.org; Tue, 11 Dec 2018 14:46:59 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1gWnzW-0002lM-V7
 for 33709 <at> debbugs.gnu.org; Tue, 11 Dec 2018 14:46:52 -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 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44099)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1gWnzW-0002lC-QQ
 for 33709 <at> debbugs.gnu.org; Tue, 11 Dec 2018 14:46:50 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1gWnzW-0005al-2F; Tue, 11 Dec 2018 14:46:50 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#33709: Hang when compiled with --coverage and gcc 7.3
References: <mid0q799ex.fsf@HIDDEN> <838t0v279w.fsf@HIDDEN>
X-Spook: Contamination Croatian Flu Capricorn al-Qa'ida Homeland
X-Ran: b<gu*@RfuAGmx>ugrz[V.7+6_mT|Y^wR;Yy;P*i1P.<HmJ6"<~DLRoQk!'st]S2aCN)XqJ
X-Hue: cyan
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Tue, 11 Dec 2018 14:46:50 -0500
In-Reply-To: <838t0v279w.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 11 Dec
 2018 21:27:39 +0200")
Message-ID: <1gr2enluc5.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 33709
Cc: 33709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

Eli Zaretskii wrote:

> Why do we use --coverage when running the test suite?

I used the pre-existing, standard hydra "coverage" job for make check.
It goes on to make this kind of report.

https://hydra.nixos.org/build/85820625/download/2/coverage/

>> never exits. It prints the usage message, then hangs.
>
> "Hangs" as in "infloops"?  If so, where does it infloop?
> Or does "hangs" mean something else here?

I do give a recipe in the hope that others can investigate the issue.
Anyway, the Emacs process uses 100% CPU, apparently doing nothing.
strace shows nothing. I managed to get the following from gdb.
The only relevant link I found was
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83074
This is all above my pay grade.

#0  0x00000000007bd1b2 in gcov_do_dump ()
No symbol table info available.
#1  0x00000000007be562 in __gcov_exit ()
No symbol table info available.
#2  0x00000000007bc42c in _GLOBAL__sub_D_00100_1_set_permissions.c ()
    at set-permissions.c:847
No locals.
#3  0x00007ffff7de73b7 in _dl_fini ()
   from /nix/store/fg4yq8i8wd08xg3fy58l6q73cjy8hjr2-glibc-2.27/lib/ld-linux-x86-64.so.2
No symbol table info available.
#4  0x00007ffff6e2c351 in __run_exit_handlers ()
   from /nix/store/fg4yq8i8wd08xg3fy58l6q73cjy8hjr2-glibc-2.27/lib/libc.so.6
No symbol table info available.
#5  0x00007ffff6e2c43a in exit ()
   from /nix/store/fg4yq8i8wd08xg3fy58l6q73cjy8hjr2-glibc-2.27/lib/libc.so.6
No symbol table info available.
#6  0x00000000005768a7 in main (argc=2, argv=0x7fffffff3c58) at emacs.c:992
        i = 12
        stack_bottom_variable = 0xb01045 <pure+742821>
        do_initial_setlocale = true
        dumping = false
        skip_args = 1
        no_loadup = false
        junk = 0x0
        dname_arg = 0x0
        ch_to_dir = 0x0
        original_pwd = 0x0
        rlim = {rlim_cur = 33554432, rlim_max = 18446744073709551615}
        sockfd = 0




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#33709; Package emacs. Full text available.

Message received at 33709 <at> debbugs.gnu.org:


Received: (at 33709) by debbugs.gnu.org; 11 Dec 2018 19:28:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 11 14:28:00 2018
Received: from localhost ([127.0.0.1]:44192 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gWnhI-0004zK-7b
	for submit <at> debbugs.gnu.org; Tue, 11 Dec 2018 14:28:00 -0500
Received: from eggs.gnu.org ([208.118.235.92]:34741)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1gWnhG-0004z7-Eq
 for 33709 <at> debbugs.gnu.org; Tue, 11 Dec 2018 14:27:58 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1gWnh8-0004OE-2O
 for 33709 <at> debbugs.gnu.org; Tue, 11 Dec 2018 14:27:53 -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.0 required=5.0 tests=BAYES_40 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43664)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1gWnh7-0004OA-Uh
 for 33709 <at> debbugs.gnu.org; Tue, 11 Dec 2018 14:27:49 -0500
Received: from [176.228.60.248] (port=4247 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1gWnh7-0000tA-9M; Tue, 11 Dec 2018 14:27:49 -0500
Date: Tue, 11 Dec 2018 21:27:39 +0200
Message-Id: <838t0v279w.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
In-reply-to: <mid0q799ex.fsf@HIDDEN> (message from Glenn Morris on
 Tue, 11 Dec 2018 13:59:34 -0500)
Subject: Re: bug#33709: Hang when compiled with --coverage and gcc 7.3
References: <mid0q799ex.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 33709
Cc: 33709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

> From: Glenn Morris <rgm@HIDDEN>
> Date: Tue, 11 Dec 2018 13:59:34 -0500
> 
> The Emacs hydra jobset at https://hydra.nixos.org/jobset/gnu/emacs-trunk
> was recently updated to a more recent version of the Nix package
> collection. Ever since then, the "coverage" job (which is the one that
> runs "make check") has timed out after spending hours failing to
> compiled the first test .el file.

Why do we use --coverage when running the test suite?

> bootstrap as normal
> ./make-dist --snapshot --no-check --no-changelog --no-compress
> tar xvf ../emacs-27.0.50.tar
> cd emacs-27.0.50
> 
> scl enable devtoolset-7  # this enables gcc 7.3.1 as the default compiler
> export CFLAGS=--coverage
> ./configure --without-all --without-x --without-libgmp
> make -j8
> 
> The build completes fine, but now eg:
> 
> ./src/emacs --help
> 
> never exits. It prints the usage message, then hangs.

"Hangs" as in "infloops"?  If so, where does it infloop?
Or does "hangs" mean something else here?

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#33709; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 Dec 2018 18:59:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 11 13:59:45 2018
Received: from localhost ([127.0.0.1]:44184 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gWnFw-00045S-TC
	for submit <at> debbugs.gnu.org; Tue, 11 Dec 2018 13:59:45 -0500
Received: from eggs.gnu.org ([208.118.235.92]:52552)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1gWnFv-00045F-5L
 for submit <at> debbugs.gnu.org; Tue, 11 Dec 2018 13:59:43 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1gWnFo-0000va-3d
 for submit <at> debbugs.gnu.org; Tue, 11 Dec 2018 13:59:37 -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.0 required=5.0 tests=BAYES_40 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42996)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1gWnFn-0000vS-Sf
 for submit <at> debbugs.gnu.org; Tue, 11 Dec 2018 13:59:35 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1gWnFm-0004Qn-Aw; Tue, 11 Dec 2018 13:59:34 -0500
From: Glenn Morris <rgm@HIDDEN>
To: submit <at> debbugs.gnu.org
Subject: Hang when compiled with --coverage and gcc 7.3
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Tue, 11 Dec 2018 13:59:34 -0500
Message-ID: <mid0q799ex.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

Package: emacs
Version: 27.0.50

The Emacs hydra jobset at https://hydra.nixos.org/jobset/gnu/emacs-trunk
was recently updated to a more recent version of the Nix package
collection. Ever since then, the "coverage" job (which is the one that
runs "make check") has timed out after spending hours failing to
compiled the first test .el file.

I have reproduced the problem on RHEL 7.6 as follows:

bootstrap as normal
./make-dist --snapshot --no-check --no-changelog --no-compress
tar xvf ../emacs-27.0.50.tar
cd emacs-27.0.50

scl enable devtoolset-7  # this enables gcc 7.3.1 as the default compiler
export CFLAGS=--coverage
./configure --without-all --without-x --without-libgmp
make -j8

The build completes fine, but now eg:

./src/emacs --help

never exits. It prints the usage message, then hangs.




Report forwarded to bug-gnu-emacs@HIDDEN:
bug#33709; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.