From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#38774: crash in image_pix_context_get_pixel Date: Sat, 28 Dec 2019 19:20:21 +0200 Message-ID: <83o8vsnz8q.fsf@gnu.org> References: Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="160797"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38774@debbugs.gnu.org To: Madhu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 28 18:21:13 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 1ilFm5-000fiC-9h for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Dec 2019 18:21:13 +0100 Original-Received: from localhost ([::1]:45096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilFm4-00046i-1N for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Dec 2019 12:21:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46604) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilFly-00045y-Km for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2019 12:21:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilFlw-0000KI-EA for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2019 12:21:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52878) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ilFlu-0000HC-91 for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2019 12:21:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ilFlu-0005hA-4O for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2019 12:21: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, 28 Dec 2019 17:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38774 X-GNU-PR-Package: emacs Original-Received: via spool by 38774-submit@debbugs.gnu.org id=B38774.157755364121844 (code B ref 38774); Sat, 28 Dec 2019 17:21:02 +0000 Original-Received: (at 38774) by debbugs.gnu.org; 28 Dec 2019 17:20:41 +0000 Original-Received: from localhost ([127.0.0.1]:58851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilFlY-0005gG-VJ for submit@debbugs.gnu.org; Sat, 28 Dec 2019 12:20:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilFlW-0005g3-VF for 38774@debbugs.gnu.org; Sat, 28 Dec 2019 12:20:39 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ilFlR-0006wf-H8; Sat, 28 Dec 2019 12:20:33 -0500 Original-Received: from [176.228.60.248] (port=2768 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ilFlH-0000ij-RY; Sat, 28 Dec 2019 12:20:31 -0500 In-reply-to: (message from Madhu on Sat, 28 Dec 2019 19:57:06 +0530) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:173854 Archived-At: > From: Madhu > Date: Sat, 28 Dec 2019 19:57:06 +0530 > > Recent emacs configured with > > configure -C --without-all --with-xml2 --with-dbus --with-m17n-flt > --with-libotf --with-xft --with-x-toolkit=athena > --with-toolkit-scroll-bars --with-xaw3d --with-cairo --with-harfbuzz > --with-png > > crashes on startup. Thanks. Assuming that you sync with the Git repository from time to time, what was the last development version that worked for you? Was that version configured the same? Did you update your system's libraries since the last time Emacs worked? > Program received signal SIGSEGV, Segmentation fault. > 0x00000000005bf574 in image_pix_context_get_pixel (y=, x=0, > image=0xb3a210) at /7/gtk/emacs/src/image.c:183 Please show the contents of the 'image' argument, like this: (gdb) p *image And btw, why are the arguments shown in reverse order? The signature of image_pix_context_get_pixel is this: image_pix_context_get_pixel (Emacs_Pix_Context image, int x, int y) And also: #0 0x00000000005bf574 in image_pix_context_get_pixel (y=, x=0, image=0xb3a210) at /7/gtk/emacs/src/image.c:183 #1 image_pix_context_get_pixel (image=0xb3a210, x=0, y=) at /7/gtk/emacs/src/image.c:180 This claims that image_pix_context_get_pixel calls itself on line 180 of image.c, which is false. I guess the optimized build makes the backtrace corrupted. Can you build Emacs without optimizations and show the backtrace in that build? (Assuming the crash doesn't disappear if you do that.) > [BTW > Composing main Info directory...done > user-error: Info file emacs does not exist > ;; What nonsense! Of course it exists! in /7/gtk/emacs/info/emacs.info > ] Why did you assume Emacs will know to look in that directory?