From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#37299: 26.3; Emacs on OSX crashes when clicking menu items while using tramp Date: Thu, 05 Sep 2019 11:33:20 +0200 Message-ID: References: <8fybezmuflkli1.fsf@C02RR684G8WP.i-did-not-set--mail-host-address--so-tickle-me> <87v9u8qymz.fsf@gmx.de> <87d0gfq0w0.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="239344"; mail-complaints-to="usenet@blaine.gmane.org" Cc: kiran.dasoju@broadcom.com, 37299@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 05 11:34:55 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i5oAE-00102B-VI for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Sep 2019 11:34:51 +0200 Original-Received: from localhost ([::1]:43748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5oAD-0000ug-80 for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Sep 2019 05:34:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46410) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5o9W-0000A1-76 for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2019 05:34:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5o9T-0002Pr-T6 for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2019 05:34:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54249) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i5o9T-0002Pm-PX for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2019 05:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i5o9S-0002X8-5p for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2019 05:34:03 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <8fybezmuflkli1.fsf@C02RR684G8WP.i-did-not-set--mail-host-address--so-tickle-me> Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Sep 2019 09:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37299 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 37299-submit@debbugs.gnu.org id=B37299.15676760139702 (code B ref 37299); Thu, 05 Sep 2019 09:34:02 +0000 Original-Received: (at 37299) by debbugs.gnu.org; 5 Sep 2019 09:33:33 +0000 Original-Received: from localhost ([127.0.0.1]:34837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i5o8z-0002WQ-Ff for submit@debbugs.gnu.org; Thu, 05 Sep 2019 05:33:33 -0400 Original-Received: from mail-wr1-f41.google.com ([209.85.221.41]:45507) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i5o8x-0002WB-LP for 37299@debbugs.gnu.org; Thu, 05 Sep 2019 05:33:32 -0400 Original-Received: by mail-wr1-f41.google.com with SMTP id l16so1849309wrv.12 for <37299@debbugs.gnu.org>; Thu, 05 Sep 2019 02:33:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:message-id:mime-version :content-transfer-encoding; bh=pXZCNLVG4b3sEbeUA8KVP8xqcQWjkWjBsdkQkc3vADc=; b=hN8y7tFwbd8sY4f5Kn6yFWnRbuBENez5MaBsJ7vZ2shyk0uzQLj1drZRJwPi5Cri71 L2VTZV7IdvOMK+8KAQfehm8qBj6X1TY3LeceM+mYE9ahD/QzuWZefuXYv5O2Q4N1cli8 M5xxKEgnE31kotMizi7zEyNte6ugQGITr0aT4RB25G9ezXE9pcy7mvMLJj3GZNY8sI9w jogJPNTMvwao3SEEeMZVMNEMMGgnEye4NoaXwF9XoXRYCgQiDS2HLuYDAZahCQq/65BR xgNx6nS1skrfFa4WXdVPdIB6VYnxRMnVz4Nq08QSEQG6M7nkiYqGyws9CHSV+Yv1Z8jO gdSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:message-id :mime-version:content-transfer-encoding; bh=pXZCNLVG4b3sEbeUA8KVP8xqcQWjkWjBsdkQkc3vADc=; b=LxanPohatzwjLfLYXlNsFNW8uCRJ+RfJQyMe+02qu6Yf1lkMV759Dua5MPwCfrVivo wudcHdNkRgNvNPPmopx7yIy+3BH0n383rkR070i7wG3qYqpgRg4WH/j8vqeLxS9gVgG7 9kd+Wzegk3m7QfQXtJd2izp1mTmhN3/kRFSfxpdIu4A9NXNbQ4W6ndp4+HqQo8u231bZ 07SjgT/GBr6Zrwbb3ncfjwMJioyFc0vB80TB5wuE8qq/JTilnJm44JdOYaq5pG5CwgYB erz01t/gMHjGTWTtRYQjWSeqCBdvT4Gsg9Z4yw+Jj5xtfvTNpE0+2AWfQ+hAfxSZzIei SYKw== X-Gm-Message-State: APjAAAXW0VTv0qqLPTEDRFDzVG5Tl7FCMQE9b7OFmzMajuI/J/+f30Hk b/TL64vN6gxv/C55trfXQV82HL67oR0= X-Google-Smtp-Source: APXvYqxSa3BpCzWt0hMzuku/wSWEsEq3ticUD+8l2X0nbpjp7qP5g0SRuxfxK6F2bNaY/ZoWBcdJ7w== X-Received: by 2002:a5d:6b0b:: with SMTP id v11mr1510180wrw.10.1567676004885; Thu, 05 Sep 2019 02:33:24 -0700 (PDT) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id n14sm3937355wra.75.2019.09.05.02.33.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2019 02:33:21 -0700 (PDT) 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: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:166223 Archived-At: >>>>> On Wed, 04 Sep 2019 22:09:35 +0200, Michael Albinus said: Michael> Robert Pluim writes: Michael> Hi Robert, Michael> Unfortunately, there's no solution yet. Personally, I Michael> don't use macOS, Michael> so I cannot investigate. >>=20 >> I=CA=BCve stared at the code, and I can=CA=BCt see anything wrong wi= th it. What >> kind of debug would you want? Michael> Nothing, because I believe it is rather an error related to ma= cOS. Tramp Michael> is just the trigger, but I cannot see any reason how Tramp cou= ld trigger Michael> Emacs to crash. Michael> Maybe you try to reproduce the problem, and check the traces i= n gdb then? I can reproduce it, but it doesn=CA=BCt really help: * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D signal SIGA= BRT * frame #0: 0x00007fff5c41a016 libsystem_kernel.dylib`__abort_with_payloa= d + 10 frame #1: 0x00007fff5c4155db libsystem_kernel.dylib`abort_with_payload_= wrapper_internal + 82 frame #2: 0x00007fff5c415589 libsystem_kernel.dylib`abort_with_reason += 22 frame #3: 0x00007fff5aafb8dd libobjc.A.dylib`_objc_fatalv(unsigned long= long, unsigned long long, char const*, __va_list_tag*) + 108 frame #4: 0x00007fff5aafb78f libobjc.A.dylib`_objc_fatal(char const*, .= ..) + 135 frame #5: 0x00007fff5aaee563 libobjc.A.dylib`(anonymous namespace)::Aut= oreleasePoolPage::pop(void*) + 941 frame #6: 0x00007fff303415ea CoreFoundation`_CFAutoreleasePoolPop + 22 frame #7: 0x00007fff325ba0e3 Foundation`-[NSAutoreleasePool release] + = 144 frame #8: 0x00000001001e8635 emacs`ns_update_menubar(f=3D,= deep_p=3D, submenu=3D) at nsmenu.m:0:5 [opt] frame #9: 0x00000001001e867e emacs`ns_activate_menubar(f=3D) at nsmenu.m:476:3 [opt] frame #10: 0x00000001000c880e emacs`read_char at keyboard.c:3894:6 [opt] frame #11: 0x00000001000c7ff8 emacs`read_char [inlined] read_event_from= _main_queue(end_time=3D0x0000000000000000, local_getcjmp=3D0x00000001051ba0= a0, used_mouse_menu=3D0x00007ffeefbff1db) at keyboard.c:2136 [opt] frame #12: 0x00000001000c7e88 emacs`read_char at keyboard.c:2200 [opt] frame #13: 0x00000001000c7e4d emacs`read_char(commandflag=3D1, map=3D0x= 00000001039609a3, prev_event=3D0x0000000000000000, used_mouse_menu=3D0x0000= 7ffeefbff1db, end_time=3D0x0000000000000000) at keyboard.c:2808 [opt] frame #14: 0x00000001000c4b1b emacs`read_key_sequence(keybuf=3D, prompt=3D0x0000000000000000, dont_downcase_last=3Dfalse, can_return_= switch_frame=3Dtrue, fix_current_buffer=3Dtrue, prevent_redisplay=3D) at keyboard.c:9125:12 [opt] frame #15: 0x00000001000c32dc emacs`command_loop_1 at keyboard.c:1345:1= 5 [opt] frame #16: 0x000000010014a029 emacs`internal_condition_case(bfun=3D(ema= cs`command_loop_1 at keyboard.c:1236), handlers=3D0x0000000000000090, hfun= =3D) at eval.c:1355:25 [opt] frame #17: 0x00000001000d25b0 emacs`command_loop_2(ignore=3D) at keyboard.c:1091:11 [opt] frame #18: 0x00000001001496f7 emacs`internal_catch(tag=3D0x000000000000= c4b0, func=3D(emacs`command_loop_2 at keyboard.c:1087), arg=3D0x00000000000= 00000) at eval.c:1116:25 [opt] frame #19: 0x00000001000c22ee emacs`command_loop at keyboard.c:1070:2 [= opt] frame #20: 0x00000001000c2203 emacs`recursive_edit_1 at keyboard.c:714:= 9 [opt] frame #21: 0x00000001000c24ab emacs`Frecursive_edit at keyboard.c:786:3= [opt] frame #22: 0x00000001000c0bd2 emacs`main(argc=3D, argv=3D0= x00007ffeefbff668) at emacs.c:2086:3 [opt] frame #23: 0x00007fff5c2c73d5 libdyld.dylib`start + 1 frame #24: 0x00007fff5c2c73d5 libdyld.dylib`start + 1 Which just tells us that /* set main menu */ if (needsSet) [NSApp setMainMenu: menu]; [pool release]; <=3D This causes the crash unblock_input (); but not what object is at fault. Removing that [pool release] fixes the crash, but probably means leaking memory. Robert