From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Gustafsson Newsgroups: gmane.emacs.bugs Subject: bug#22790: 24.5; Infinite loop involving malloc called from signal handler Date: Wed, 24 Feb 2016 20:17:21 +0200 Message-ID: <22221.62385.110120.441486@guava.gson.org> References: <83povmgfnn.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1456337900 16072 80.91.229.3 (24 Feb 2016 18:18:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2016 18:18:20 +0000 (UTC) Cc: 22790@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 24 19:18:11 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 1aYe0o-0003HD-R2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Feb 2016 19:18:11 +0100 Original-Received: from localhost ([::1]:37546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYe0o-00085z-4a for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Feb 2016 13:18:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYe0k-00085l-8B for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 13:18:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYe0h-0007NN-2O for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 13:18:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYe0g-0007NH-Uj for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 13:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aYe0g-0002kh-R9 for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 13:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Gustafsson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Feb 2016 18:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22790 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 22790-submit@debbugs.gnu.org id=B22790.145633784910487 (code B ref 22790); Wed, 24 Feb 2016 18:18:02 +0000 Original-Received: (at 22790) by debbugs.gnu.org; 24 Feb 2016 18:17:29 +0000 Original-Received: from localhost ([127.0.0.1]:44130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYe08-0002j5-QQ for submit@debbugs.gnu.org; Wed, 24 Feb 2016 13:17:28 -0500 Original-Received: from gusto.araneus.fi ([185.55.84.130]:63938) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYe07-0002iw-Cz for 22790@debbugs.gnu.org; Wed, 24 Feb 2016 13:17:28 -0500 Original-Received: from guava.gson.org (unknown [10.0.1.240]) by gusto.araneus.fi (Postfix) with ESMTP id 4461A8BE639; Wed, 24 Feb 2016 18:17:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gson.org; s=mail; t=1456337845; bh=AIqU/sS6Tn5BsjnNZkQ2ZptqPw1VcXZ6WP58vMnseic=; h=Date:To:Cc:Subject:In-Reply-To:References:From; b=BMZ1Hcae8XFwHrZ+Fbn1cCP35Yq6oJAM4q5SGS8aKmwERjQpT9nsso6aigaY8KLvj wpr2oe6pQz77Agbm4Lv6KFLmQ3nT8zZaCVVMMMqKh7bBMm5P7tcOvbx05DCjEu+MDi n40n2EG43sbeCPaEp6peeZYCtnAoAr10pN80vkFs= Original-Received: by guava.gson.org (Postfix, from userid 101) id B2285745E1D; Wed, 24 Feb 2016 20:17:21 +0200 (EET) In-Reply-To: Re: <83povmgfnn.fsf@gnu.org> X-Mailer: VM 8.2.0b under 24.5.1 (x86_64--netbsd) 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:113732 Archived-At: Eli Zaretskii wrote: > Is the SIGINT interrupt that shows in the backtrace the result of your > typing C-c, or did it come from something else? I'm not sure. I don't recall typing C-c, but the process was sitting there for a few hours waiting to be debugged while I attended to some other work, and I may have done it accidentally during that time. Also, when an emacs operation takes too long, typing C-g (sic) has become something of a subconcious reflex after 30 years of use, so I can't say for sure whether I have done that or not, and will likely not be able to say the next time it happens, either. > In any case, when this happens next, please use the procedure > described in etc/DEBUG for locating the place where Emacs loops, and > post that information. Backtraces generated from an infloop > interrupted in a random place tend to be random and don't provide > enough information for finding out the reasons for the loop. To be clear, whether or not emacs was in an infinite loop when it received the SIGINT, it is in an infinite loop within libpthread now: (gdb) define s Type commands for definition of "s". End with a line saying just "end". >stepi >x/i $pc >end (gdb) s 0x00007f7ff6c08440 in ?? () from /usr/lib/libpthread.so.1 => 0x7f7ff6c08440: callq 0x7f7ff6c083e0 (gdb) s 0x00007f7ff6c083e0 in ?? () from /usr/lib/libpthread.so.1 => 0x7f7ff6c083e0: pause (gdb) s 0x00007f7ff6c083e2 in ?? () from /usr/lib/libpthread.so.1 => 0x7f7ff6c083e2: retq (gdb) s 0x00007f7ff6c08445 in ?? () from /usr/lib/libpthread.so.1 => 0x7f7ff6c08445: sub $0x1,%ebp (gdb) s 0x00007f7ff6c08448 in ?? () from /usr/lib/libpthread.so.1 => 0x7f7ff6c08448: jne 0x7f7ff6c08440 (gdb) s 0x00007f7ff6c08440 in ?? () from /usr/lib/libpthread.so.1 => 0x7f7ff6c08440: callq 0x7f7ff6c083e0 (gdb) -- Andreas Gustafsson, gson@gson.org