From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20802: Segfault when showing non-GTK+ tooltip Date: Sat, 13 Jun 2015 13:54:18 +0300 Message-ID: <831thfri91.fsf@gnu.org> References: <1434187118.10061.4.camel@gmx.de> <83381wq76d.fsf@gnu.org> <557C0526.5050607@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1434192921 11352 80.91.229.3 (13 Jun 2015 10:55:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Jun 2015 10:55:21 +0000 (UTC) Cc: tobias.getzner@gmx.de, 20802@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 13 12:55:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z3j5j-0006E0-9h for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Jun 2015 12:55:11 +0200 Original-Received: from localhost ([::1]:55473 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3j5i-0007Ln-KC for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Jun 2015 06:55:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3j5f-0007JU-Bh for bug-gnu-emacs@gnu.org; Sat, 13 Jun 2015 06:55:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3j5b-00046p-Nx for bug-gnu-emacs@gnu.org; Sat, 13 Jun 2015 06:55:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3j5b-00045v-C6 for bug-gnu-emacs@gnu.org; Sat, 13 Jun 2015 06:55:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z3j5a-0007b3-Uv for bug-gnu-emacs@gnu.org; Sat, 13 Jun 2015 06:55:03 -0400 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 Jun 2015 10:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20802 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20802-submit@debbugs.gnu.org id=B20802.143419287029154 (code B ref 20802); Sat, 13 Jun 2015 10:55:02 +0000 Original-Received: (at 20802) by debbugs.gnu.org; 13 Jun 2015 10:54:30 +0000 Original-Received: from localhost ([127.0.0.1]:52409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z3j54-0007a9-7m for submit@debbugs.gnu.org; Sat, 13 Jun 2015 06:54:30 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:37514) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z3j51-0007Zv-CD for 20802@debbugs.gnu.org; Sat, 13 Jun 2015 06:54:28 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NPV00G00PNDIW00@a-mtaout22.012.net.il> for 20802@debbugs.gnu.org; Sat, 13 Jun 2015 13:54:20 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NPV00GLBQAKKZ00@a-mtaout22.012.net.il>; Sat, 13 Jun 2015 13:54:20 +0300 (IDT) In-reply-to: <557C0526.5050607@gmx.at> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:103888 Archived-At: > Date: Sat, 13 Jun 2015 12:25:42 +0200 > From: martin rudalics > CC: 20802@debbugs.gnu.org > > Below is a bt after setting an invalid background color. Tooltips are > shown via ‘x-show-tip’ and the crash triggers after the backtrace buffer > complaining about the invalid color popped up and I tried to switch to > another buffer. I have no idea whether it's the OP's original issue. Thanks, but I still cannot reproduce this. (On what OS did you reproduce it?) I also see no backtrace buffers, just a silent message in *Messages* about its being unable to load the bogus color I specified. Can you help by showing values of variables involved in the crash? > #0 0x00000000006c9b5c in cache_image (f=0x13a7e00, img=0x198ee20) at ../../src/image.c:1775 Is this in v24.5 or in the current master? If the latter, line 1775 of image.c is this: else if (EQ (ascent, Qcenter)) img->ascent = CENTERED_IMAGE_ASCENT; <<<<<<<<<<<<< So is value of img a NULL pointer? (The argument img in the call above indicates it's non-NULL, but maybe your GDB shows only the value at entry?) If it's not NULL, and this is the correct line, then what caused the crash? (I'm also puzzled what does this have to do with tooltips, since we show no images in the tooltips, and customizing faces for the tooltip frames should not affect showing images in other frames.) Thanks.