From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#55832: 28.1; Emacs crashes when using tramp from helm in emacs-29 Date: Tue, 07 Jun 2022 19:20:39 +0000 Message-ID: <87a6aop93i.fsf@posteo.net> References: <837d5s78xs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19234"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55832@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 07 21:28:31 2022 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 1nyesL-0004XY-4n for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Jun 2022 21:28:25 +0200 Original-Received: from localhost ([::1]:56284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyesF-0008QR-Qc for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Jun 2022 15:28:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyery-0008Nw-2u for bug-gnu-emacs@gnu.org; Tue, 07 Jun 2022 15:28:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyerx-0004rM-OW for bug-gnu-emacs@gnu.org; Tue, 07 Jun 2022 15:28:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nyerx-0002xC-JP for bug-gnu-emacs@gnu.org; Tue, 07 Jun 2022 15:28:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Jun 2022 19:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55832 X-GNU-PR-Package: emacs Original-Received: via spool by 55832-submit@debbugs.gnu.org id=B55832.165463007911346 (code B ref 55832); Tue, 07 Jun 2022 19:28:01 +0000 Original-Received: (at 55832) by debbugs.gnu.org; 7 Jun 2022 19:27:59 +0000 Original-Received: from localhost ([127.0.0.1]:41583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyerv-0002wv-0w for submit@debbugs.gnu.org; Tue, 07 Jun 2022 15:27:59 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:37433) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyerr-0002wh-42 for 55832@debbugs.gnu.org; Tue, 07 Jun 2022 15:27:57 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 875FE240107 for <55832@debbugs.gnu.org>; Tue, 7 Jun 2022 21:27:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1654630069; bh=TTSJaBUQ6uX3sbQL9uswRVFh/tLVVJaSdMd69ZNs9xk=; h=From:To:Cc:Subject:Date:Autocrypt:From; b=Q954QHVke0Ccyc37DIU+SolTkgeSXmIBoAQl4jEy4Y/b2f9JAjG3v5NtgDjIoY6QT nHDuvp0g+B31p0OAGIMeW/U4duJvMtlQFkHl3lta+2ooIKsGK/bGHwusEEw7iZQwmB CXfMUgKy/Btea/50aGlv5rKHCfVxPKCSb/JOeCMLguAAp5u5fSgifu7p+MZj6c7BRT uWHdDeGuwyZUUg70LeW6stwfEqALTgWpi4tAr0o1LY0tp6RMyo+j/XOcpjmJUScwKp qwOdygAX5iP03hnC2uHOvUIaCy7rmvCjw9Q6PQI3JGXO08xUtdXiPM99LmSFM0/KFX kSnla+ArA67qQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LHgP029lBz6tnV; Tue, 7 Jun 2022 21:27:47 +0200 (CEST) In-reply-to: <837d5s78xs.fsf@gnu.org> Autocrypt: addr=thievol@posteo.net; prefer-encrypt=mutual; keydata= mQGNBF8ylcIBDADG+hy+zR6L4/vbdDDZuSaMmSrU3A5QZJpeBCvxTr7MpzzruZbhLPW1K3R6N2MA edi8Y+C8o27FVRIjpdbaKMGu9je7JV/TbUQYo3SOwCK1vM4LUn4V6ZLzSYkuiEt4eyMoiDdyvN0p kcK6P9x9DCetcEVszXzQg+yzCVrQ2hXWDXWT4M18EC3wtO7RHPouMqGiwBFhBAYErCqFWFxQHkfb tG/4yGyJ58rglb65O3qijjMWvYwcWZun9/7qm8Z4/4mHopmo2zgU+OrptnLSZfkZGz3Y7Uf452xQ GVq0Fv75NPvQru7y+DYVhuVXXyAmGxt+vf4rIiixMBbhKEPjcxEPAa2LTzex2IsTZR+QVG9uDnqC WcgaOEQ58fzXNvNhtwwF/Rgio2XWAJVdmFWS59/k9W58CIUSNKBMZh2XeGdEmtHvDtCxW3z6FJha 36RzOM3fMNNiAGdFZJA84gcdloJR+sHCDTTPT3784fjr+V8An7sI581NGFzkRQqPvEQCZbUAEQEA AbQSdGhpZXZvbEBwb3N0ZW8ubmV0iQHUBBMBCgA+FiEEI9twfRN7r3nig/xwDsVtFB0W75MFAl8y lcICGwMFCQPCZwAFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQDsVtFB0W75MB3QwAlTsVzFmr +S/tMKwwwOibjhNPi/OZiUC2AYfaqfVAiIHDT3RbzDe03sAJoomJkJnYVjGzQZwibCMO2+ITkMPV 2wvrd4CbgS1KCVbrltwcuK/nxPCBaHytOCZUIInnhJo5PE/h03K 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:233933 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: >> From: Thierry Volpiatto >> Date: Tue, 07 Jun 2022 15:16:36 +0000 >>=20 >>=20 >> I can't reproduce from emacs -Q using M-x find-file, but the bug happens >> with Helm when using M-x helm-find-files /sudo:: >> Emacs freeze and then in gdb: >>=20 >> Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. >> 0x0000555555837be7 in doprnt.part () >>=20 >> In all previous emacs this worked normally, working fine here in >> emacs-28.1. >> This is a followup of bug #55555. >>=20 >> I can send more infos from gdb if you give me instructions, I tried bt >> but the output is huge. > > The first step is to figure out what was the immediate reason for the > segfault, and in which source line it happened. > > Your build is heavily optimized, so I suggest to rebuild with the > following additional compiler options: > > -gdwarf-4 -g3 I have now rebuilded with: ./configure CFLAGS=3D'-08 -gdwarf-4 -g3' --with-native-compilation First try with /sudo:: I couldn't reproduce, then I waited the native-compilation fully finish and could reproduce. When fixing other warnings this morning I saw this warning in *Warnings* buffer: /usr/local/share/emacs/site-lisp/helm/helm-files.el: Error: Wrong type argument sequencep But couldn't figure out what is this error, I have no error or warnings when compiling and everything work fine in emacs-28, don't know if this could be related to this crash. > Then run Emacs under GDB, and when it crashes, type > > (gdb) thread 1 > (gdb) bt -full 5 > > and post the results. [...] [Detaching after vfork from child process 229481] Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. 0x0000555555837be7 in doprnt (buffer=3D0x7fffff6702c0 "", bufsize=3D4000, f= ormat=3D0x5555558af29a "Bytecode stack overflow", ap=3D0x7fffff670250, form= at_end=3D) at doprnt.c:186 186 doprnt (char *buffer, ptrdiff_t bufsize, const char *format, (gdb) thread 1 [Switching to thread 1 (Thread 0x7ffff07ce3c0 (LWP 226687))] #0 0x0000555555837be7 in doprnt (buffer=3D0x7fffff6702c0 "", bufsize=3D400= 0, format=3D0x5555558af29a "Bytecode stack overflow", ap=3D0x7fffff670250, = format_end=3D) at doprnt.c:186 186 doprnt (char *buffer, ptrdiff_t bufsize, const char *format, (gdb) bt -full 5 #0 0x0000555555837be7 in doprnt (buffer=3D0x7fffff6702c0 "", bufsize=3D400= 0, format=3D0x5555558af29a "Bytecode stack overflow", ap=3D0x7fffff670250, = format_end=3D) at doprnt.c:186 fmt =3D bufptr =3D tembuf =3D '\000' size_allocated =3D sprintf_buffer =3D big_buffer =3D quoting_style =3D #1 0x0000555555838a57 in doprnt (ap=3D0x7fffff670250, format_end=3D0x0, fo= rmat=3D0x5555558af29a "Bytecode stack overflow", bufsize=3D,= buffer=3D) at doprnt.c:590 modifier_len =3D "\000\001\001\001\001" nbytes =3D ap_copy =3D {{gp_offset =3D 8, fp_offset =3D 48, overflow_arg_area = =3D 0x7fffff671380, reg_save_area =3D 0x7fffff6712c0}} #2 evxprintf (buf=3Dbuf@entry=3D0x7fffff6702b8, bufsize=3Dbufsize@entry=3D0x7fffff67= 02b0, nonheapbuf=3Dnonheapbuf@entry=3D0x7fffff6702c0 "", bufsize_max=3Dbufs= ize_max@entry=3D2305843009213693952, format=3D0x5555558af29a "Bytecode stac= k overflow", ap=3Dap@entry=3D0x7fffff6712a0) at doprnt.c:590 nbytes =3D ap_copy =3D {{gp_offset =3D 8, fp_offset =3D 48, overflow_arg_area = =3D 0x7fffff671380, reg_save_area =3D 0x7fffff6712c0}} #3 0x00005555557aa5f3 in vformat_string (m=3D, ap=3Dap@entr= y=3D0x7fffff6712a0) at eval.c:2029 buf =3D '\000' ... size =3D 4000 buffer =3D 0x7fffff6702c0 "" used =3D string =3D #4 0x00005555555aac6f in verror (m=3D, ap=3Dap@entry=3D0x7f= ffff6712a0) at eval.c:2041 (More stack frames follow...) =2D-=20 Thierry --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHHBAEBCgAxFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmKfprETHHRoaWV2b2xA cG9zdGVvLm5ldAAKCRAOxW0UHRbvkzqSC/9wOJSVVfbQSJPmg5Wgat6IQSDf+JSe j1aRHMRsqqYeZa+ro/GTAV7g744OTtFNYWiMb1SaT1oNcNvgvxlZFjW7baP6Qxvy zeiwvmZmBH16l1AHquKYxY8lKNLX0ah8z/lHb+OIhRdty5ujhKhEFK7CETe2GoBO mjBN+bk1GlNiuN8Nvsuk+r8mVgygaH1bugGFPfeDpcam8cqtVaOOqDx8avyGEf/7 jjl1Bfyrru5R27ZLlf605gKZ67f1vgNsS008m9H8NIZ930ZCkvrXVu51Ez8JITU4 dH3zM12397TJsccyhnYjfJXMxLdx/BvnzPI24g3oCSPwMzQSak6ogQ9qbhrRfUQI 8wRwBUDnzlpWifw27SEMLIMRbVSFOPo88pIWS+H4mOddcITOdkWB9Y05b67DwnVZ D1dca5BTWOzAH9R01qJoYLW3ifM6RFv4LFptALwZD9CnZRCjIoDEnr2m9DGGBPMv QoH2S+hRlqgh/M9dCzNK4rK8l1c/Z1BFJZs= =/WmB -----END PGP SIGNATURE----- --=-=-=--