From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#47094: 27.1; emacs dies with XBM display Date: Sat, 13 Mar 2021 09:19:17 +0200 Message-ID: <83im5vjzbe.fsf@gnu.org> References: <86czw4hdxn.fsf@gmail.com> <83ft10lf0j.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29534"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ynyaaa@gmail.com, 47094@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 13 08:20:10 2021 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 1lKyZG-0007bG-4D for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Mar 2021 08:20:10 +0100 Original-Received: from localhost ([::1]:46574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKyZE-0000Q7-PE for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Mar 2021 02:20:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKyZ8-0000Px-Q1 for bug-gnu-emacs@gnu.org; Sat, 13 Mar 2021 02:20:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47406) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKyZ8-0003oJ-IH for bug-gnu-emacs@gnu.org; Sat, 13 Mar 2021 02:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKyZ8-0000Xy-D1 for bug-gnu-emacs@gnu.org; Sat, 13 Mar 2021 02:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Mar 2021 07:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47094 X-GNU-PR-Package: emacs Original-Received: via spool by 47094-submit@debbugs.gnu.org id=B47094.16156199612038 (code B ref 47094); Sat, 13 Mar 2021 07:20:02 +0000 Original-Received: (at 47094) by debbugs.gnu.org; 13 Mar 2021 07:19:21 +0000 Original-Received: from localhost ([127.0.0.1]:58952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKyYT-0000Wo-5L for submit@debbugs.gnu.org; Sat, 13 Mar 2021 02:19:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKyYR-0000Wa-3X for 47094@debbugs.gnu.org; Sat, 13 Mar 2021 02:19:19 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59283) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKyYL-0003Ob-Ea; Sat, 13 Mar 2021 02:19:13 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1413 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lKyYK-0001NY-P4; Sat, 13 Mar 2021 02:19:13 -0500 In-Reply-To: (message from Alan Third on Fri, 12 Mar 2021 22:08:10 +0000) 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:202231 Archived-At: > Date: Fri, 12 Mar 2021 22:08:10 +0000 > From: Alan Third > > > > (let* ((w 256) > > > (h 256) > > > (s (make-string (* (/ w 8) h) #x55))) > > > (insert-image (create-image s 'xbm t :width w :height h))) > > > > I can reproduce in Emacs 27, but not on the current master branch. So > > I guess this has been fixed already, and I'm closing the bug. > > I can reproduce on the master branch. It looks like a stack overflow > in xbm_read_bitmap_data. I did indeed get an infinite recursion on the emacs-27 branch, but not on master. > I tried it in a debugger, but the backtrace looks truncated. Before or after SIGSEGV? If it's after, then it isn't surprising you get a truncated backtrace. I think if you see the infinite recursion we should understand why it happens in the first place, and try to prevent it.