From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: emacs locked when internet connection is cut... Date: Wed, 02 May 2018 18:28:06 +0300 Message-ID: <83tvrqoz5l.fsf@gnu.org> References: <83r2mvqvaq.fsf@gnu.org> <4260C366-2B75-4501-BD7A-7D224C9C50A7@gmail.com> <8336zaqf7b.fsf@gnu.org> <5A1AAAAB-27BE-4FF1-B37B-890CF19A6609@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1525274781 24551 195.159.176.226 (2 May 2018 15:26:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 May 2018 15:26:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jean-Christophe Helary Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 02 17:26:17 2018 Return-path: Envelope-to: ged-emacs-devel@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 1fDte3-0006G4-Va for ged-emacs-devel@m.gmane.org; Wed, 02 May 2018 17:26:16 +0200 Original-Received: from localhost ([::1]:51078 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDtgA-0006a5-Hw for ged-emacs-devel@m.gmane.org; Wed, 02 May 2018 11:28:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDtg3-0006Zx-An for emacs-devel@gnu.org; Wed, 02 May 2018 11:28:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDtfy-00078Y-AP for emacs-devel@gnu.org; Wed, 02 May 2018 11:28:19 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDtfy-00078Q-6B; Wed, 02 May 2018 11:28:14 -0400 Original-Received: from [176.228.60.248] (port=4635 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fDtfx-0007aF-1y; Wed, 02 May 2018 11:28:13 -0400 In-reply-to: <5A1AAAAB-27BE-4FF1-B37B-890CF19A6609@gmail.com> (message from Jean-Christophe Helary on Thu, 3 May 2018 00:06:07 +0900) 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-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:225034 Archived-At: > From: Jean-Christophe Helary > Date: Thu, 3 May 2018 00:06:07 +0900 > > When I attach emacs to gdb from Emacs I get this: > > Attaching to process 42692 > Unable to find Mach task port for process-id 42692: (os/kern) failure (0x5). > (please check gdb is codesigned - see taskgated(8)) > (gdb) thread.c:1555: internal-error: scoped_restore_current_thread::scoped_restore_current_thread(): Assertion `tp != NULL' failed. > A problem internal to GDB has been detected, > further debugging may prove unreliable. I didn't realize this was an Apple system... > After investigating a bit it looks like running gdb as sudo fixes the thing (I could not create a certificate for it) but I still get this: > > Attaching to process 42692 > [New Thread 0x1503 of process 42692] > [New Thread 0x1603 of process 42692] > [New Thread 0x1703 of process 42692] > [New Thread 0x1803 of process 42692] > [New Thread 0x2803 of process 42692] > [New Thread 0x2903 of process 42692] > Reading symbols from /Users/suzume/Documents/Code/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs...done. > Error while mapping shared library sections: > `/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit': not a shared-library: File format not recognized > Error while mapping shared library sections: > `/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit': not a shared-library: File format not recognized > Error while mapping shared library sections: > `/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon': not a shared-library: File format not recognized > Error while mapping shared library sections: > `/usr/lib/libSystem.B.dylib': not a shared-library: File format not recognized > Error while mapping shared library sections: > `/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation': not a shared-library: File format not recognized > Error while mapping shared library sections: > `/usr/lib/libxml2.2.dylib': not a shared-library: File format not recognized > > and a big bunch of other similar errors. Do these errors, when you run as sudo, prevent GDB from displaying a backtrace? If so, I guess you will have to use LLDB instead.