From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#20802: Segfault when showing non-GTK+ tooltip Date: Sat, 13 Jun 2015 16:28:47 +0200 Message-ID: <557C3E1F.6030305@gmx.at> References: <1434187118.10061.4.camel@gmx.de> <83381wq76d.fsf@gnu.org> <557C0526.5050607@gmx.at> <831thfri91.fsf@gnu.org> <557C2EF2.5030308@gmx.at> <83vberpv07.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1434205828 3253 80.91.229.3 (13 Jun 2015 14:30:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Jun 2015 14:30:28 +0000 (UTC) Cc: tobias.getzner@gmx.de, 20802@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 13 16:30:18 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 1Z3mRt-0002AP-P7 for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Jun 2015 16:30:18 +0200 Original-Received: from localhost ([::1]:56188 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3mRt-0001Ky-9O for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Jun 2015 10:30:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3mRp-0001Kt-C1 for bug-gnu-emacs@gnu.org; Sat, 13 Jun 2015 10:30:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3mRk-0008SC-Ct for bug-gnu-emacs@gnu.org; Sat, 13 Jun 2015 10:30:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3mRk-0008S6-Ak for bug-gnu-emacs@gnu.org; Sat, 13 Jun 2015 10:30:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z3mRi-0005nT-V8 for bug-gnu-emacs@gnu.org; Sat, 13 Jun 2015 10:30:07 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Jun 2015 14:30:06 +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.143420574622192 (code B ref 20802); Sat, 13 Jun 2015 14:30:06 +0000 Original-Received: (at 20802) by debbugs.gnu.org; 13 Jun 2015 14:29:06 +0000 Original-Received: from localhost ([127.0.0.1]:52819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z3mQj-0005ls-EQ for submit@debbugs.gnu.org; Sat, 13 Jun 2015 10:29:06 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:65154) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z3mQh-0005lJ-AC for 20802@debbugs.gnu.org; Sat, 13 Jun 2015 10:29:04 -0400 Original-Received: from [178.190.161.122] ([178.190.161.122]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MaaOf-1YkJlZ2aFd-00K7Nb; Sat, 13 Jun 2015 16:28:56 +0200 In-Reply-To: <83vberpv07.fsf@gnu.org> X-Provags-ID: V03:K0:2P9it5LOblp2qQ4gvgXkPt/gLm17EvTLvApjeCE95LsaHlwGmpl Vn4Plqz2AqqjP5+HMY3u5V42TjfGvnv5nzHY+oRMrAi9rydiXsn8+XLvFG9C5DnQSsjdiNr W6ONiaD8/+VNqVg1r7E2gs9v3l3ghmrEJHozol7nwm9ePhi1LMQcCMwjyA/qn0S9dy+R15k VZA7diHLVffBHQ3mnCx4Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:Z0v80EP0pEI=:liTTJ+tgEJmYAKSNoPZ7OM slNzEQrEkGn+0frCRW32l0MW0KlMnhawqwi6AeMRR32L2RhjjYIiQtnxRWdAZYxZvLDo/RMYS MnF3LCjBN4MEQfJQBMaOgmvJATSJkc3Mk1y1JD75tLIxIdzmVIs/gxa0HbmxTyX6jgVh+waL4 ukSfmPExLfDmw5ezw2xCPekhU9EO25eWZKYcdhQEomBFKDH9QtZIGVOxjNGt2mpu6mZeww52n Sc+eYFD0zIzQL2g2MqihN8cdWhUPRGMN5ETK0Va2EhQSAgxK5vLzKOKS214XGMNsXdN0cx350 Jr8b2ufCvCHWDHI/qkan5O7xd5MafMypN6TlQzekF3tV098/NrdRuWkOaMRIX1oF6H5hVx2Gm 6jhvbrxHDU2sossbNZbbLtr+Q8b4bgJxWoz6coXIMgG4Byufl0LJh3XN7vkudHbWMO5u/ei08 LHvYhdsJr/KeRrX+H6LQeOUBXd3YkjodFqzezme/d5n0I9NtYvXRrfXqyXq2tYt0Nj7cK5f9t qA+YtnMEx4gzPqiYDsSgyCeceCkts5rK3WrDDpx7QcpFd1JTQjyzb1UqbucFvoPkehgGY5tNb qdLrb5BpVEXF4+cWY3zTq+nayJG3FaiqXgN81msfE/fT+YwuzNX70V/x7h0E2MVkZWBMQaxS/ 1biBnm9W9CI6a+tBtAmWRwRl+2SEbJB7T9T8ZUrsNM3qa7Q7P+FOoAUnTY6/dhX9KBPo= 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:103896 Archived-At: > So FRAME_IMAGE_CACHE returns a NULL pointer, I guess. But how did > that happen? We allocate the cache in xfaces.c:init_frame_faces. I > could understand why init_frame_faces was not yet called for the tip > frame we were trying to create, but the crash happens because of a > different frame. Look: > > #37 0x000000000054c091 in x_decode_color (f=3D0x24d2c30, color_name= =3D..., mono_color=3D16777215) at ../../src/xfns.c:495 > #38 0x000000000054c566 in x_set_background_color (f=3D0x24d2c30, ar= g=3D..., oldval=3D...) at ../../src/xfns.c:638 > #39 0x000000000042d45d in x_set_frame_parameters (f=3D0x24d2c30, al= ist=3D...) at ../../src/frame.c:3152 > #40 0x0000000000431ce6 in x_default_parameter (f=3D0x24d2c30, alist= =3D..., prop=3D..., deflt=3D..., xprop=3D0x6fd49d "background", xclass=3D= 0x6fd908 "Background", type=3DRES_TYPE_STRING) at ../../src/frame.c:4374 > #41 0x000000000055549d in x_create_tip_frame (dpyinfo=3D0x1621ee0, = parms=3D..., text=3D...) at ../../src/xfns.c:5173 > > This is the tip frame we are creating, its pointer is 0x24d2c30. But > when we crash, it's for a different frame, whose pointer is 0x13a7e00:= > > #0 0x00000000006c9b5c in cache_image (f=3D0x13a7e00, img=3D0x249e0= 10) at ../../src/image.c:1775 > #1 0x00000000006c96e3 in lookup_image (f=3D0x13a7e00, spec=3D...) = at ../../src/image.c:1686 As I mentioned earlier this seems to be due to the fact that the debugger intervenes in some recursive fashion. The crash happens after the backtrace window popped up and when I try to =E2=80=98switch-to-prev-= buffer=E2=80=99 in the window where the tooltip should have appeared. Without that I'm _not_ able to reproduce the crash. > Can you see what is that frame, and why we didn't call > init_frame_faces for it? What makes you think this is not my normal frame in the first place and why init_frame_faces was not called for it? Hmmm, I see, nothing can stop make_image_cache apparently. I'll look into this later - sounds like a thunderstorm approaching and I'll rather switch off my machine. > Also, which image are we trying to display > here? How would I know? I never see one because I build without image support. > Something on the toolbar, perhaps? Did you move mouse pointer > over a tool-bar button to trigger a tooltip that failed? The toolbar is disabled with my customizations. martin