From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tobias Getzner Newsgroups: gmane.emacs.bugs Subject: bug#20802: Segfault when showing non-GTK+ tooltip Date: Tue, 16 Jun 2015 09:21:04 +0200 Message-ID: <1434439264.2078.6.camel@gmx.de> References: <1434187118.10061.4.camel@gmx.de> <83381wq76d.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1434439348 22396 80.91.229.3 (16 Jun 2015 07:22:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jun 2015 07:22:28 +0000 (UTC) To: Eli Zaretskii , 20802@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 16 09:22:16 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 1Z4lCK-0003hd-DU for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Jun 2015 09:22:16 +0200 Original-Received: from localhost ([::1]:38294 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4lCJ-0005wE-J3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Jun 2015 03:22:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4lCE-0005vK-VZ for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2015 03:22:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4lC6-0006lZ-Nc for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2015 03:22:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4lC6-0006lT-KK for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2015 03:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z4lC6-0007gj-8v for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2015 03:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tobias Getzner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Jun 2015 07:22: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.143443927929501 (code B ref 20802); Tue, 16 Jun 2015 07:22:02 +0000 Original-Received: (at 20802) by debbugs.gnu.org; 16 Jun 2015 07:21:19 +0000 Original-Received: from localhost ([127.0.0.1]:55186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z4lBM-0007fj-Mk for submit@debbugs.gnu.org; Tue, 16 Jun 2015 03:21:18 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:49512) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z4lBI-0007fU-Nm for 20802@debbugs.gnu.org; Tue, 16 Jun 2015 03:21:14 -0400 Original-Received: from glenalbyn.linguistics.ruhr-uni-bochum.de ([134.147.14.84]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0Lp3Qu-1ZYKm52mWa-00er5M; Tue, 16 Jun 2015 09:21:05 +0200 In-Reply-To: <83381wq76d.fsf@gnu.org> X-Mailer: Evolution 3.16.3 X-Provags-ID: V03:K0:gkJKtsh/321X+sXrKUJUXrRrcQtxnpxFlPR/njz3nXyEdg10eGj AYb9YqQUGJCl/DtcHvxUp8JZ1AAUoN9To036y8aykFscSsorAmo+JVVOmAxo3Q5HtVcOTzF PCy11LU5uLrMorevkGz7oE5E0D2CfwjjfGBNmw41Z74HVsoidVDvPQbWi3Ew4/ZoHbJKdLU JJQB0lwn17j5ZTsDzzbag== X-UI-Out-Filterresults: notjunk:1; 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:103982 Archived-At: On Sa, 2015-06-13 at 12:38 +0300, Eli Zaretskii wrote: > > From: Tobias Getzner > > Date: Sat, 13 Jun 2015 11:18:38 +0200 > >=20 > > When x-gtk-use-system-tooltips is set to nil, and the tooltip face=20 > > is > > customized using an invalid color string such as #zz, Emacs will > > segfault when a tooltip is being drawn. >=20 > I cannot reproduce this on my system, so please show a backtrace from > running Emacs inside GDB. Also, please tell how you customized the > face color, exactly -- it could be that only some specific ways of > customizing it cause the problem. Thanks to Martin for reproducing. From what little I can infer, you seem to have made sense of this already, but just for the sake of completeness, below is my backtrace. The line numbers seem a bit different, but I guess it=E2=80=99s otherwise identical to Martin=E2=80=99s= ? This was after setting x-gtk-use-system-tooltip to nil and customizing the tooltip face to #qqq. Best, and thanks, TG Program received signal SIGSEGV, Segmentation fault. cache_image (f=3D0x1170a68, img=3D) at image.c:1782 1782 for (i =3D 0; i < c->used; ++i) (gdb) bt #0 cache_image (f=3D0x1170a68, img=3D) at image.c:1782 #1 lookup_image (f=3D0x1170a68, spec=3Dspec@entry=3D19521878) at image.c:1693 #2 0x00000000004393ff in handle_single_display_spec (it=3Dit@entry=3D0x7ff fffff7da0,=20 spec=3D, object=3Dobject@entry=3D31549445,=20 overlay=3Doverlay@entry=3D12308786,=20 position=3Dposition@entry=3D0x7fffffff7ed8, bufpos=3Dbufpos@entry=3D255= , display_replaced_p=3D0,=20 frame_window_p=3D1) at xdisp.c:5310 #3 0x0000000000439fd8 in handle_display_spec (it=3Dit@entry=3D0x7fffffff7d a0, spec=3D,=20 object=3Dobject@entry=3D31549445, overlay=3D12308786,=20 position=3Dposition@entry=3D0x7fffffff7ed8,=20 bufpos=3Dbufpos@entry=3D255, frame_window_p=3D1) at xdisp.c:4836 #4 0x000000000043a299 in handle_display_prop (it=3D0x7fffffff7da0) at xdisp.c:4759 #5 0x000000000043d002 in handle_stop (it=3Dit@entry=3D0x7fffffff7da0) at xdisp.c:3492 #6 0x00000000004463a2 in next_element_from_buffer (it=3D0x7fffffff7da0) at xdisp.c:8290 #7 0x0000000000441275 in get_next_display_element (it=3Dit@entry=3D0x7ffff fff7da0) at xdisp.c:6944 #8 0x0000000000447188 in display_line (it=3Dit@entry=3D0x7fffffff7da0) at xdisp.c:20241 #9 0x000000000044b6ea in try_window (window=3Dwindow@entry=3D18291325, pos=3D..., flags=3Dflags@entry=3D1) at xdisp.c:17007 #10 0x000000000046170e in redisplay_window (window=3D18291325,=20 just_this_one_p=3Djust_this_one_p@entry=3Dfalse) at xdisp.c:16486 #11 0x0000000000463aa3 in redisplay_window_0 (window=3Dwindow@entry=3D18291 325) at xdisp.c:14373 #12 0x000000000055b53b in internal_condition_case_1 ( bfun=3Dbfun@entry=3D0x463a70 , arg=3D18291325, handlers=3D,=20 hfun=3Dhfun@entry=3D0x42be50 ) at eval.c:1372 #13 0x0000000000430caf in redisplay_windows (window=3D18291325) at xdisp.c:14353 #14 0x0000000000450331 in redisplay_internal () at xdisp.c:13949 #15 0x0000000000452530 in redisplay_preserve_echo_area ( from_where=3Dfrom_where@entry=3D2) at xdisp.c:14206 #16 0x000000000041b065 in Fredisplay (force=3D12308786) at dispnew.c:5896 #17 0x000000000055d1a7 in Ffuncall (nargs=3D,=20 args=3Dargs@entry=3D0x7fffffffc1f0) at eval.c:2811 #18 0x00000000005927c3 in exec_byte_code (bytestr=3D, vector=3D8822021,=20 maxdepth=3D, args_template=3D,=20 nargs=3Dnargs@entry=3D1,=20 args=3D, args@entry=3D0x869ce1 ) at bytecode.c:916 #19 0x000000000055ccb7 in funcall_lambda (fun=3D140737488339872,=20 nargs=3Dnargs@entry=3D1,=20 arg_vector=3D0x869ce1 , arg_vector@entry=3D0x7fffffffc340) at eval.c:2978 #20 0x000000000055cfbb in Ffuncall (nargs=3D2, args=3Dargs@entry=3D0x7fffff= ff c338) at eval.c:2872 #21 0x00000000005927c3 in exec_byte_code (bytestr=3D, vector=3D10488933,=20 maxdepth=3D, args_template=3D, nargs=3D,=20 args=3D) at bytecode.c:916 #22 0x000000000055c4e3 in eval_sub (form=3D) at eval.c:2187 #23 0x000000000055fbc3 in Fprogn (body=3D10488838) at eval.c:462 #24 internal_lisp_condition_case (var=3D, bodyform=3D10488550,=20 handlers=3D) at eval.c:1306 #25 0x0000000000593bcf in exec_byte_code (bytestr=3D, vector=3D10488493,=20 maxdepth=3D, args_template=3D,=20 nargs=3Dnargs@entry=3D0,=20 args=3D, args@entry=3D0x0) at bytecode.c:1162 #26 0x000000000055cc1f in funcall_lambda (fun=3D10488365,=20 nargs=3Dnargs@entry=3D2,=20 arg_vector=3Darg_vector@entry=3D0x7fffffffc720) at eval.c:3044 #27 0x000000000055cfbb in Ffuncall (nargs=3D3, args=3Dargs@entry=3D0x7fffff= ff c718) at eval.c:2872 #28 0x00000000005927c3 in exec_byte_code (bytestr=3D, vector=3D10490901,=20 maxdepth=3D, args_template=3D,=20 nargs=3Dnargs@entry=3D0,=20 args=3D, args@entry=3D0x0) at bytecode.c:916 #29 0x000000000055cc1f in funcall_lambda (fun=3D10490821,=20 nargs=3Dnargs@entry=3D1,=20 arg_vector=3Darg_vector@entry=3D0x7fffffffc978) at eval.c:3044 #30 0x000000000055cfbb in Ffuncall (nargs=3D2, args=3D0x7fffffffc970) at eval.c:2872 #31 0x000000000055b89d in run_hook_with_args (nargs=3D2, args=3D0x7fffffffc970,=20 funcall=3D0x55cd90 ) at eval.c:2547 #32 0x000000000055d09a in Ffuncall (nargs=3D,=20 args=3Dargs@entry=3D0x7fffffffc968) at eval.c:2792 #33 0x00000000005927c3 in exec_byte_code (bytestr=3D, vector=3D10488085,=20 maxdepth=3D, args_template=3D,=20 nargs=3Dnargs@entry=3D0,=20 args=3D, args@entry=3D0x0) at bytecode.c:916 #34 0x000000000055cc1f in funcall_lambda (fun=3D10488021,=20 nargs=3Dnargs@entry=3D1,=20 arg_vector=3Darg_vector@entry=3D0x7fffffffcbf8) at eval.c:3044 #35 0x000000000055cfbb in Ffuncall (nargs=3Dnargs@entry=3D2,=20 args=3Dargs@entry=3D0x7fffffffcbf0) at eval.c:2872 #36 0x000000000055e6a2 in Fapply (nargs=3D2, args=3D0x7fffffffcbf0) at eval.c:2297 #37 0x000000000055d09a in Ffuncall (nargs=3D,=20 args=3Dargs@entry=3D0x7fffffffcbe8) at eval.c:2792 #38 0x00000000005927c3 in exec_byte_code (bytestr=3D, vector=3D10054405,=20 maxdepth=3D, args_template=3D, nargs=3D,=20 args=3D) at bytecode.c:916 #39 0x000000000055c4e3 in eval_sub (form=3Dform@entry=3D10054326) at eval.c:2187 #40 0x000000000055fade in internal_lisp_condition_case (var=3D, bodyform=3D10054326,=20 handlers=3D) at eval.c:1317 #41 0x0000000000593bcf in exec_byte_code (bytestr=3D, vector=3D10054093,=20 maxdepth=3D, args_template=3D,=20 nargs=3Dnargs@entry=3D0,=20 args=3D, args@entry=3D0x0) at bytecode.c:1162 #42 0x000000000055cc1f in funcall_lambda (fun=3D10054013,=20 nargs=3Dnargs@entry=3D1,=20 arg_vector=3Darg_vector@entry=3D0x7fffffffcfe8) at eval.c:3044 #43 0x000000000055cfbb in Ffuncall (nargs=3Dnargs@entry=3D2,=20 args=3Dargs@entry=3D0x7fffffffcfe0) at eval.c:2872 #44 0x000000000055d2da in call1 (fn=3D, arg1=3Darg1@entry=3D= 18 809933) at eval.c:2610 #45 0x00000000004ef218 in timer_check_2 (idle_timers=3D, timers=3D) at keyboard.c:4515 #46 timer_check () at keyboard.c:4582 #47 0x00000000004ef5d1 in readable_events (flags=3D1) at keyboard.c:3448 #48 0x00000000004f0c78 in get_input_pending (flags=3Dflags@entry=3D1) at keyboard.c:6766 #49 0x00000000004f3ea8 in detect_input_pending_run_timers ( do_display=3Ddo_display@entry=3Dtrue) at keyboard.c:9895 #50 0x000000000059cd8c in wait_reading_process_output ( time_limit=3Dtime_limit@entry=3D30,=20 nsecs=3Dnsecs@entry=3D0, read_kbd=3Dread_kbd@entry=3D-1,=20 do_display=3Ddo_display@entry=3Dtrue,=20 wait_for_cell=3D12308786, wait_proc=3Dwait_proc@entry=3D0x0, just_wait_proc=3D0) at process.c:4702 #51 0x00000000004221f3 in sit_for (timeout=3D,=20 reading=3Dreading@entry=3Dtrue,=20 display_option=3Ddisplay_option@entry=3D1) at dispnew.c:5867 #52 0x00000000004f4df4 in read_char (commandflag=3D1, map=3Dmap@entry=3D353= 25 094, prev_event=3D12308786,=20 used_mouse_menu=3Dused_mouse_menu@entry=3D0x7fffffffd7bb,=20 end_time=3Dend_time@entry=3D0x0) at keyboard.c:2810 #53 0x00000000004f5fcd in read_key_sequence (keybuf=3Dkeybuf@entry=3D0x7fff ffffd890, prompt=3D12308786,=20 dont_downcase_last=3Ddont_downcase_last@entry=3Dfalse,=20 can_return_switch_frame=3Dcan_return_switch_frame@entry=3Dtrue,=20 fix_current_buffer=3Dfix_current_buffer@entry=3Dtrue,=20 prevent_redisplay=3Dprevent_redisplay@entry=3Dfalse, bufsize=3D30) at keyboard.c:9089 #54 0x00000000004f7d30 in command_loop_1 () at keyboard.c:1453 #55 0x000000000055b417 in internal_condition_case (bfun=3Dbfun@entry=3D0x4f 7b30 ,=20 handlers=3D, hfun=3Dhfun@entry=3D0x4ee880 ) a= t eval.c:1348 #56 0x00000000004e9d6e in command_loop_2 (ignore=3Dignore@entry=3D12308786) at keyboard.c:1178 #57 0x000000000055b2fb in internal_catch (tag=3D12356258,=20 func=3Dfunc@entry=3D0x4e9d50 , arg=3D12308786) at eval.c:1112 #58 0x00000000004ee467 in command_loop () at keyboard.c:1157 #59 recursive_edit_1 () at keyboard.c:778 #60 0x00000000004ee7a8 in Frecursive_edit () at keyboard.c:849 #61 0x00000000004181a9 in main (argc=3D, argv=3D0x7fffffffdbf8) at emacs.c:1642