From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: Emacs segfaults when handling wrong_type_argument backtrace Date: Thu, 30 Mar 2023 09:36:25 +0000 Message-ID: References: <2c65531c-2d9c-3c1d-bc2a-5666a7de0a38@sft.lol> <83zg7u6cs3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10036"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Jonas Jelten , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 30 11:37:36 2023 Return-path: Envelope-to: ged-emacs-devel@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 1phois-0002PJ-RH for ged-emacs-devel@m.gmane-mx.org; Thu, 30 Mar 2023 11:37:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phoiU-0001w4-8k; Thu, 30 Mar 2023 05:37:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phoiR-0001vc-HB for emacs-devel@gnu.org; Thu, 30 Mar 2023 05:37:07 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phoiP-0002Lp-CF; Thu, 30 Mar 2023 05:37:07 -0400 Original-Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.16.1/8.14.5) with ESMTPS id 32U9aPxX000955 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Thu, 30 Mar 2023 09:36:35 GMT In-Reply-To: <83zg7u6cs3.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 30 Mar 2023 08:14:52 +0300") Received-SPF: pass client-ip=205.166.94.24; envelope-from=akrl@sdf.org; helo=mx.sdf.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304848 Archived-At: Eli Zaretskii writes: >> Date: Wed, 29 Mar 2023 23:54:19 +0200 >> From: Jonas Jelten >> >> Hi! >> >> I'm using emacs-29 at ab4273056e0ab68a27fe807b16e2995bf84b72ec with Doom Emacs with on Gentoo. >> >> configured with: >> ./configure --prefix=/usr --build=x86_64-pc-linux-gnu >> --host=x86_64-pc-linux-gnu --mandir=/usr/share/man >> --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc >> --localstatedir=/var/lib --datarootdir=/usr/share >> --disable-silent-rules --docdir=/usr/share/doc/emacs-29.0.9999-r1 >> --htmldir=/usr/share/doc/emacs-29.0.9999-r1/html --libdir=/usr/lib64 >> --program-suffix=-emacs-29-vcs >> --includedir=/usr/include/emacs-29-vcs >> --infodir=/usr/share/info/emacs-29-vcs --localstatedir=/var >> --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp >> --without-compress-install --without-hesiod --without-pop >> --with-file-notification=inotify --with-pdumper --enable-acl >> --with-dbus --with-modules --with-gameuser=:gamestat --with-libgmp >> --with-gpm --with-native-compilation=aot --with-json >> --with-kerberos --with-kerberos5 --with-lcms2 --with-xml2 >> --with-mailutils --without-selinux --with-sqlite3 --with-gnutls >> --with-libsystemd --with-threads --without-tree-sitter >> --without-wide-int --with-sound=alsa --with-zlib --with-x >> --without-pgtk --without-ns --without-gconf --with-gsettings >> --with-toolkit-scroll-bars --with-xpm --with-xft --with-cairo >> --with-harfbuzz --without-libotf >> --without-m17n-flt --with-x-toolkit=gtk3 --without-xwidgets >> --with-gif --with-jpeg --with-png --with-rsvg --with-tiff >> --with-webp --with-imagemagick --with-dumping=pdumper >> >> Launch with GDB: >> gdb --args emacs --debug-init >> >> = gdb>> source emacs/src/.gdbinit >> >> >> When yasnippet triggers a backtrace, Emacs crashes: >> >> Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. >> 0x000055555579d2a4 in PSEUDOVECTORP (code=, a=) at data.c:495 >> 495 DEFUN ("byte-code-function-p", Fbyte_code_function_p, Sbyte_code_function_p, >> >> = gdb>> disassemble >> Dump of assembler code for function Fbyte_code_function_p: >> 0x000055555579d290 <+0>: lea edx,[rdi-0x5] >> 0x000055555579d293 <+3>: xor eax,eax >> 0x000055555579d295 <+5>: and edx,0x7 >> 0x000055555579d298 <+8>: jne 0x55555579d2be >> 0x000055555579d29a <+10>: movabs rdx,0x400000003f000000 >> => 0x000055555579d2a4 <+20>: and rdx,QWORD PTR [rdi-0x5] >> 0x000055555579d2a8 <+24>: movabs rcx,0x400000001e000000 >> 0x000055555579d2b2 <+34>: cmp rdx,rcx >> 0x000055555579d2b5 <+37>: mov edx,0x30 >> 0x000055555579d2ba <+42>: cmove rax,rdx >> 0x000055555579d2be <+46>: ret >> End of assembler dump. > > Please always report bugs, including crashes, using report-emacs-bug, > so that they get a bug ID and get recorded by our bug tracker. > > CC'ing Andrea, who made a recent change in that area. Thanks, I guess this should be fixed. Jonas could you please try again after having cleaned the eln-cache directory and report? Eli if we want to avoid spurious bug reports due to stale eln-cache we can also increment ABI_VERSION in comp.c. Not sure is something we want to do tho. Please let me know if you think is appropriate in this case. Thanks Andrea