From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Anonymous Newsgroups: gmane.emacs.bugs Subject: bug#43152: 28.0.50; when building emacs 28.0.50 ./temacs is stopped with core Date: Wed, 2 Sep 2020 12:00:25 +0200 Message-ID: References: <83eenlwoy7.fsf@gnu.org> <838sdtwhim.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------E7B65093B4D786C9082DB75F" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21924"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 Cc: 43152@debbugs.gnu.org To: Stefan Kangas , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 02 13:10:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kDQeX-0005TK-3F for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Sep 2020 13:10:09 +0200 Original-Received: from localhost ([::1]:34586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDQeW-0003uH-2J for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Sep 2020 07:10:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDQeQ-0003u7-26 for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2020 07:10:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46940) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDQeP-00017c-P1 for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2020 07:10:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kDQeP-0000qr-Id for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2020 07:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Anonymous Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Sep 2020 11:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43152 X-GNU-PR-Package: emacs Original-Received: via spool by 43152-submit@debbugs.gnu.org id=B43152.15990449733233 (code B ref 43152); Wed, 02 Sep 2020 11:10:01 +0000 Original-Received: (at 43152) by debbugs.gnu.org; 2 Sep 2020 11:09:33 +0000 Original-Received: from localhost ([127.0.0.1]:58486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDQdw-0000q4-EQ for submit@debbugs.gnu.org; Wed, 02 Sep 2020 07:09:33 -0400 Original-Received: from smtp02.smtpout.orange.fr ([80.12.242.124]:24014 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDPZA-0007Wk-Pc for 43152@debbugs.gnu.org; Wed, 02 Sep 2020 06:00:35 -0400 Original-Received: from spungen.home ([90.1.198.53]) by mwinf5d03 with ME id Ny0R2300519ciUi03y0RPP; Wed, 02 Sep 2020 12:00:26 +0200 X-ME-Helo: spungen.home X-ME-Auth: YW5uLm9ueW1vdXNAd2FuYWRvby5mcg== X-ME-Date: Wed, 02 Sep 2020 12:00:26 +0200 X-ME-IP: 90.1.198.53 In-Reply-To: Content-Language: fr X-Mailman-Approved-At: Wed, 02 Sep 2020 07:09:31 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186925 Archived-At: This is a multi-part message in MIME format. --------------E7B65093B4D786C9082DB75F Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Le 01/09/2020 à 19:15, Stefan Kangas a écrit : > Eli Zaretskii writes: > >>>     Unable to find Mach task port for process-id 19495: (os/kern) >>> failure (0x5). >> This is macOS, where one cannot use GDB without some jumping through >> hoops, sigh. > It's not too bad, IMHO. Here are the instructions from etc/DEBUG: > > Running GDB on macOS sometimes brings an error message like this: > > Unable to find Mach task port for process-id NNN: (os/kern) failure (0x5). > > To overcome this, search the Internet for the phrase "Unable to find > Mach task port for process-id", and you will find detailed > instructions to follow. > > Best regards, > Stefan Kangas Here is backtrace running with gdb     spungen:src $ gdb ./temacs     GNU gdb (GDB) 8.0.1     Copyright (C) 2017 Free Software Foundation, Inc.     License GPLv3+: GNU GPL version 3 or later     This is free software: you are free to change and redistribute it.     There is NO WARRANTY, to the extent permitted by law.  Type "show copying"     and "show warranty" for details.     This GDB was configured as "x86_64-apple-darwin17.0.0".     Type "show configuration" for configuration details.     For bug reporting instructions, please see:     .     Find the GDB manual and other documentation resources online at:     .     For help, type "help".     Type "apropos word" to search for commands related to "word"...     Reading symbols from ./temacs...     warning: can't find symbol 'l_OBJC_PROTOCOL_$_NSMenuDelegate' in minsymtab     warning: can't find symbol 'l_OBJC_PROTOCOL_$_NSObject' in minsymtab     warning: can't find symbol 'l_OBJC_PROTOCOL_$_NSToolbarDelegate' in minsymtab     warning: can't find symbol 'l_OBJC_PROTOCOL_$_NSWindowDelegate' in minsymtab     done.     SIGINT is used by the debugger.     Are you sure you want to change it? (y or n) [answered Y; input not from terminal]     DISPLAY = /private/tmp/com.apple.launchd.NmbcYXYKys/org.macosforge.xquartz:0     TERM = xterm-color     Breakpoint 1 at 0x1000d1562: file emacs.c, line 378.     (gdb) run --batch  -l loadup --temacs=pbootstrap     Starting program: /usr/local/src/emacs/src/temacs --batch  -l loadup --temacs=pbootstrap     [New Thread 0x1903 of process 507]     warning: unhandled dyld version (15)     [New Thread 0x1a03 of process 507]     [New Thread 0x2603 of process 507]     [New Thread 0x2807 of process 507]     Thread 2 received signal SIGSEGV, Segmentation fault.     0x00007fff7bc4498d in ?? ()     (gdb) where     #0  0x00007fff7bc4498d in ?? ()     #1  0x000000003272002e in ?? ()     #2  0x0000000102c05380 in ?? ()     #3  0x00007ffeefbff5c0 in ?? ()     #4  0x000000010010908e in Ffile_name_as_directory (file=XIL(0x102c05384)) at fileio.c:563     Backtrace stopped: previous frame inner to this frame (corrupt stack?)     (gdb) quit     A debugging session is active.     Inferior 1 [process 507] will be killed.     Quit anyway? (y or n) y I rebuild with more options to configure :     --enable-checking='yes,glyphs' --enable-check-lisp-object-type \         CFLAGS='-O0 -g3 with same backtrace. Best regards -- Philippe Spiesser --------------E7B65093B4D786C9082DB75F Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
Le 01/09/2020 à 19:15, Stefan Kangas a écrit :
Eli Zaretskii <eliz@gnu.org> writes:

     Unable to find Mach task port for process-id 19495: (os/kern)
failure (0x5).
This is macOS, where one cannot use GDB without some jumping through
hoops, sigh.
It's not too bad, IMHO.  Here are the instructions from etc/DEBUG:

    Running GDB on macOS sometimes brings an error message like this:

      Unable to find Mach task port for process-id NNN: (os/kern) failure (0x5).

    To overcome this, search the Internet for the phrase "Unable to find
    Mach task port for process-id", and you will find detailed
    instructions to follow.

Best regards,
Stefan Kangas

Here is backtrace running with gdb

    spungen:src $ gdb ./temacs
    GNU gdb (GDB) 8.0.1
    Copyright (C) 2017 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-apple-darwin17.0.0".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.
    For help, type "help".
    Type "apropos word" to search for commands related to "word"...
    Reading symbols from ./temacs...
    warning: can't find symbol 'l_OBJC_PROTOCOL_$_NSMenuDelegate' in minsymtab

    warning: can't find symbol 'l_OBJC_PROTOCOL_$_NSObject' in minsymtab

    warning: can't find symbol 'l_OBJC_PROTOCOL_$_NSToolbarDelegate' in minsymtab

    warning: can't find symbol 'l_OBJC_PROTOCOL_$_NSWindowDelegate' in minsymtab
    done.
    SIGINT is used by the debugger.
    Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
    DISPLAY = /private/tmp/com.apple.launchd.NmbcYXYKys/org.macosforge.xquartz:0
    TERM = xterm-color
    Breakpoint 1 at 0x1000d1562: file emacs.c, line 378.
    (gdb) run --batch  -l loadup --temacs=pbootstrap
    Starting program: /usr/local/src/emacs/src/temacs --batch  -l loadup --temacs=pbootstrap
    [New Thread 0x1903 of process 507]
    warning: unhandled dyld version (15)
    [New Thread 0x1a03 of process 507]
    [New Thread 0x2603 of process 507]
    [New Thread 0x2807 of process 507]

    Thread 2 received signal SIGSEGV, Segmentation fault.
    0x00007fff7bc4498d in ?? ()
    (gdb) where
    #0  0x00007fff7bc4498d in ?? ()
    #1  0x000000003272002e in ?? ()
    #2  0x0000000102c05380 in ?? ()
    #3  0x00007ffeefbff5c0 in ?? ()
    #4  0x000000010010908e in Ffile_name_as_directory (file=XIL(0x102c05384)) at fileio.c:563
    Backtrace stopped: previous frame inner to this frame (corrupt stack?)
    (gdb) quit
    A debugging session is active.

    Inferior 1 [process 507] will be killed.

    Quit anyway? (y or n) y

I rebuild with more options to configure :

    --enable-checking='yes,glyphs' --enable-check-lisp-object-type \
        CFLAGS='-O0 -g3

with same backtrace.

Best regards

-- 

	Philippe Spiesser
--------------E7B65093B4D786C9082DB75F--