From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86864 invoked by alias); 1 Oct 2016 12:08:57 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 86852 invoked by uid 89); 1 Oct 2016 12:08:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=Hx-languages-length:1450, During, Trust, H*F:D*be X-HELO: smtp1.ugent.be Received: from smtp1.ugent.be (HELO smtp1.ugent.be) (157.193.71.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 01 Oct 2016 12:08:54 +0000 Received: from localhost (mcheck3.ugent.be [157.193.71.89]) by smtp1.ugent.be (Postfix) with ESMTP id CA470A0475 for ; Sat, 1 Oct 2016 14:08:51 +0200 (CEST) Received: from smtp1.ugent.be ([157.193.71.182]) by localhost (mcheck3.ugent.be [157.193.43.11]) (amavisd-new, port 10024) with ESMTP id KKt5eZpFdfSd for ; Sat, 1 Oct 2016 14:08:51 +0200 (CEST) Received: from mail.elis.ugent.be (ea06s497.ugent.be [157.193.213.46]) by smtp1.ugent.be (Postfix) with ESMTP id 799BEA0441 for ; Sat, 1 Oct 2016 14:08:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.elis.ugent.be (Postfix) with ESMTP id 5051F918F3C for ; Sat, 1 Oct 2016 14:08:51 +0200 (CEST) Received: from mail.elis.ugent.be ([127.0.0.1]) by localhost (mail.elis.ugent.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ue3uI824b1Mq for ; Sat, 1 Oct 2016 14:08:51 +0200 (CEST) Received: by mail.elis.ugent.be (Postfix, from userid 48) id 00230AA30048; Sat, 1 Oct 2016 14:08:50 +0200 (CEST) Received: from ip-213-49-51-225.dsl.scarlet.be (ip-213-49-51-225.dsl.scarlet.be [213.49.51.225]) by mail.elis.ugent.be (Horde Framework) with HTTP; Sat, 01 Oct 2016 14:08:50 +0200 Date: Sat, 01 Oct 2016 12:08:00 -0000 Message-ID: <20161001140850.Horde.5Pxfey2wqn5X76dSpncV3uA@mail.elis.ugent.be> From: Jonas Maebe To: gdb@sourceware.org Subject: gdb on macOS 10.12 "Sierra" User-Agent: Internet Messaging Program (IMP) H4 (5.0.23) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-j-chkmail-Enveloppe: 57EFA753.000 from ea06s497.ugent.be/ea06s497.ugent.be/157.193.213.46/mail.elis.ugent.be/ X-j-chkmail-Score: MSGID : 57EFA753.000 on smtp1.ugent.be : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: Ham X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00001.txt.bz2 Hi, Has anyone succeeded yet in getting gdb to work on macOS 10.12? Reportedly, it works when you disable SIP (which is understandable, given https://developer.apple.com/library/content/documentation/Security/Conceptual/System_Integrity_Protection_Guide/RuntimeProtections/RuntimeProtections.html ), but plain code signing no longer seems to cut it. With gdb 7.11.1, I occasionally get this when I try to start an inferior: During startup program terminated with signal SIG113, Real-time event 113. and usually (with darwin_debug_flag set to 100 -- didn't manage to get the SIG113 anymore after I recompiled gdb with that variable set to 100): *** Starting program: textthr [632 inferior]: inferior task: 0x300b, pid: 701 [632 inferior]: new_ix:0/1, old_ix:0/0, new_id:0x3203 old_id:0x0 [632 inferior]: darwin_wait: waiting for a message pid=701 thread=0 [701 inferior]: ptrace (PT_TRACE_ME, 0, 0x0, 0): 0 (no error) [701 inferior]: ptrace (PT_SIGEXC, 0, 0x0, 0): 0 (no error) message header: bits: 0x1200 size: 0x24 remote-port: 0x0 local-port: 0xf87 reserved: 0x0 id: 0x48 data: 00000000 00000001 0000300b [632 inferior]: darwin_wait: pid=701 exit, status=0x5 [632 inferior]: task=0x300b, prev=0x0, notify_port=0xf87 During startup program terminated with signal SIGTRAP, Trace/breakpoint trap. *** gdb is code signed, the code signing certificate is the System keychain and set to "Trust always". Thanks, Jonas