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 17:34:05 +0200 Message-ID: <1434468845.21431.2.camel@gmx.de> References: <1434187118.10061.4.camel@gmx.de> <83381wq76d.fsf@gnu.org> <1434439264.2078.6.camel@gmx.de> <558024F4.5090205@gmx.at> 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 1434468934 29871 80.91.229.3 (16 Jun 2015 15:35:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jun 2015 15:35:34 +0000 (UTC) To: martin rudalics , 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 17:35:22 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 1Z4stU-0001JW-Dh for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Jun 2015 17:35:20 +0200 Original-Received: from localhost ([::1]:41011 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4stT-0004jE-S0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Jun 2015 11:35:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4stK-0004bq-Vk for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2015 11:35:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4stF-0001Bk-QM for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2015 11:35:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4stF-0001Bb-NG for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2015 11:35:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z4stF-0003zo-BV for bug-gnu-emacs@gnu.org; Tue, 16 Jun 2015 11:35:05 -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 15:35:04 +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.143446885715288 (code B ref 20802); Tue, 16 Jun 2015 15:35:04 +0000 Original-Received: (at 20802) by debbugs.gnu.org; 16 Jun 2015 15:34:17 +0000 Original-Received: from localhost ([127.0.0.1]:55984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z4ssS-0003yV-4a for submit@debbugs.gnu.org; Tue, 16 Jun 2015 11:34:17 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:50146) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z4ssP-0003xy-GI for 20802@debbugs.gnu.org; Tue, 16 Jun 2015 11:34:14 -0400 Original-Received: from glenalbyn.linguistics.ruhr-uni-bochum.de ([134.147.14.84]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MWQSM-1ZcQQ01B1O-00Xec8; Tue, 16 Jun 2015 17:34:06 +0200 In-Reply-To: <558024F4.5090205@gmx.at> X-Mailer: Evolution 3.16.3 X-Provags-ID: V03:K0:9C5aLq6Bq/T+Y5SZwrJuaVqvtdwFeOdkOgqCX6VJU+CW3YsHYPM TIR9yepnMtRbXVjCaX7UWN6o39DWd2mm9KxhEsyY/m9pXFCj1Z0CMVNWr7v/puJSkfEv+Rf ATEgh6BeWWSq9iKk1ksEKGKwOEsdyzO12QpSGbP57rnzq/lifl7lfVpp/Uxn8mPpGaMGWXi 7wOpGpKry1W1SAlO2jqsw== X-UI-Out-Filterresults: notjunk:1;V01:K0:vMPBw2StdF4=:p7hP0FvKl6w2eTN1EbI/oL 54evsB0CKInugBE07vMu/Idunex3oyYCBHA8D1w0NzqJQyakM2ZbdBFThoCyEnlSEbCyZhBbs qVzvR8dj+VEKd4g3wg0VGS0qS3c88q9xw/P7cTGj31bv4c+t9hOdGE+Fj3Q0FZcsqcxWZBXvz XYSSabkaWB0chX2bf4/EgWsa7qzJjxA6TYwGtfw2yjDEl7hiW3u59Jp4jG1nvmolJi/DLgiNz GhGz57xw9QtHHEh9VfEYebfca4zfLR+NWtEoIC/+RcaZ7cZIc09XDhJF8Xkuq5n8B1cQeR9KI m0aj1yckbDoUvIFv3wZsLtOgb5xQLZxwUTw2xMqISQv/NC3hkBAvKvw2Pq1ZWJKT3QfaC9eYu PjwXgq9AWVqTfbKFwUuZnUil79qgkW9+V+WqpsX7pxD89aK7yVVTzu0706PfXNFzBvoYGzwGU ASzEPh5f62RNnijX2fc4Y/T4nk6aJfZtcENr9Q4eLWgDnKoNhJfKnsH0+ELgrHZavkLDqgoCI kHEtoEEfYzxCNo4DZZikQSITnVPJpnf+kaD7ipgb06jlux4HIA4RofBjOv82a8uXZrbT2Yocc P4tbGurAPSXkhLvapBsHZhpX6xzghcLuTJoy0LeMtRAf04iqwsNL/UbvfI2LJuEV+FpMotVqz qDlXn2v+PEn2kSqJ6jLk4a08pntxDWXBQnjS1JOFW55xcz7F6gzYOibzk7e+ZFKCXgfQ= 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:103992 Archived-At: On Di, 2015-06-16 at 15:30 +0200, martin rudalics wrote: > > This was after setting x-gtk-use-system-tooltip to nil and=20 > customizing > > the tooltip face to #qqq. > [...] > > 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) >=20 > This should be indeed the same segfault I saw. Meanwhile I checked=20 > in a > fix on trunk/master. If you can build Emacs please try it. >=20 Thanks! I built from master (34a43ba), which includes your 93ae9f4. I=E2=80= =99m still seeing a segfault for the steps given above. Backtrace below. Best, TG=20 Program received signal SIGSEGV, Segmentation fault. lookup_image (f=3D0x1195480, spec=3Dspec@entry=3D16917427) at image.c:1744 1744 cache_image (f, img); (gdb) bt #0 lookup_image (f=3D0x1195480, spec=3Dspec@entry=3D16917427) at image.c:1= 744 #1 0x000000000043737f in calc_pixel_width_or_height (res=3Dres@entry=3D0x7= fffffff37c8, it=3Dit@entry=3D0x7fffffff72f0, prop=3D16917427, font=3Dfont@e= ntry=3D0x11986c0, width_p=3Dwidth_p@entry=3Dtrue,=20 align_to=3Dalign_to@entry=3D0x7fffffff3890) at xdisp.c:24019 #2 0x00000000004370e8 in calc_pixel_width_or_height (align_to=3D0x7fffffff= 3890, width_p=3D, font=3D0x11986c0, prop=3D, = it=3D0x7fffffff72f0, res=3D0x7fffffff37c8) at xdisp.c:24056 #3 calc_pixel_width_or_height (res=3Dres@entry=3D0x7fffffff3838, it=3Dit@e= ntry=3D0x7fffffff72f0, prop=3D16917347, font=3Dfont@entry=3D0x11986c0, widt= h_p=3Dwidth_p@entry=3Dtrue, align_to=3Dalign_to@entry=3D0x7fffffff3890) at xdisp.c:24058 #4 0x00000000004372e6 in calc_pixel_width_or_height (align_to=3D0x7fffffff= 3890, width_p=3Dtrue, font=3D0x11986c0, prop=3D, it=3D0x7fff= ffff72f0, res=3D0x7fffffff3838) at xdisp.c:23902 #5 calc_pixel_width_or_height (res=3Dres@entry=3D0x7fffffff3898, it=3Dit@e= ntry=3D0x7fffffff72f0, prop=3D, font=3Dfont@entry=3D0x11986c= 0, width_p=3Dwidth_p@entry=3Dtrue, align_to=3Dalign_to@entry=3D0x7fffffff38= 90) at xdisp.c:24033 #6 0x000000000045b4f1 in calc_pixel_width_or_height (align_to=3D0x7fffffff= 3890, width_p=3Dtrue, font=3D0x11986c0, prop=3D, it=3D0x7fff= ffff72f0, res=3D0x7fffffff3898) at xdisp.c:25909 #7 produce_stretch_glyph (it=3D0x7fffffff72f0) at xdisp.c:25910 #8 0x000000000045a415 in x_produce_glyphs (it=3D0x7fffffff72f0) at xdisp.c= :27136 #9 0x00000000004480ee in display_line (it=3Dit@entry=3D0x7fffffff72f0) at = xdisp.c:20223 #10 0x000000000044c6ca in try_window (window=3Dwindow@entry=3D18441365, pos= =3D..., flags=3Dflags@entry=3D1) at xdisp.c:16889 #11 0x00000000004627d2 in redisplay_window (window=3D18441365, just_this_on= e_p=3Djust_this_one_p@entry=3Dfalse) at xdisp.c:16362 #12 0x000000000046548b in redisplay_window_0 (window=3Dwindow@entry=3D18441= 365) at xdisp.c:14181 #13 0x000000000055765b in internal_condition_case_1 (bfun=3Dbfun@entry=3D0x= 465460 , arg=3D18441365, handlers=3D, hf= un=3Dhfun@entry=3D0x42c260 ) at eval.c:1372 #14 0x00000000004319df in redisplay_windows (window=3D18441365) at xdisp.c:= 14161 #15 0x0000000000452541 in redisplay_internal () at xdisp.c:13753 #16 0x000000000045469a in redisplay_preserve_echo_area (from_where=3Dfrom_w= here@entry=3D2) at xdisp.c:14014 #17 0x000000000041d6de in Fredisplay (force=3D0) at dispnew.c:5777 #18 0x0000000000558f5e in Ffuncall (nargs=3D1, args=3Dargs@entry=3D0x7fffff= ffc140) at eval.c:2718 #19 0x000000000058c273 in exec_byte_code (bytestr=3D, vector= =3D8816373, maxdepth=3D, args_template=3D, na= rgs=3Dnargs@entry=3D1, args=3D, args@entry=3D0x7fffffffc140) at bytecode.c:919 #20 0x0000000000558ad4 in funcall_lambda (fun=3D8816340, nargs=3Dnargs@entr= y=3D1, arg_vector=3D0x7fffffffc140, arg_vector@entry=3D0x7fffffffc2c0) at e= val.c:2885 #21 0x0000000000558d7b in Ffuncall (nargs=3D2, args=3Dargs@entry=3D0x7fffff= ffc2b8) at eval.c:2779 #22 0x000000000058c273 in exec_byte_code (bytestr=3D, vector= =3D10509325, maxdepth=3D, args_template=3Dargs_template@entr= y=3D0, nargs=3Dnargs@entry=3D0, args=3D, args@entry=3D0x0) at bytecode.c:919 #23 0x00000000005589af in funcall_lambda (fun=3D10509197, nargs=3Dnargs@ent= ry=3D2, arg_vector=3Darg_vector@entry=3D0x7fffffffc4c0) at eval.c:2951 #24 0x0000000000558d7b in Ffuncall (nargs=3D3, args=3Dargs@entry=3D0x7fffff= ffc4b8) at eval.c:2779 #25 0x000000000058c273 in exec_byte_code (bytestr=3D, vector= =3D10511429, maxdepth=3D, args_template=3Dargs_template@entr= y=3D0, nargs=3Dnargs@entry=3D0, args=3D, args@entry=3D0x0) at bytecode.c:919 #26 0x00000000005589af in funcall_lambda (fun=3D10511333, nargs=3Dnargs@ent= ry=3D1, arg_vector=3Darg_vector@entry=3D0x7fffffffc778) at eval.c:2951 #27 0x0000000000558d7b in Ffuncall (nargs=3D2, args=3D0x7fffffffc770) at ev= al.c:2779 #28 0x0000000000556f95 in run_hook_with_args (nargs=3D2, args=3D0x7fffffffc= 770, funcall=3D0x558ba0 ) at eval.c:2529 #29 0x0000000000558e69 in Ffuncall (nargs=3D3, args=3Dargs@entry=3D0x7fffff= ffc768) at eval.c:2698 #30 0x000000000058c273 in exec_byte_code (bytestr=3D, vector= =3D10508605, maxdepth=3D, args_template=3Dargs_template@entr= y=3D0, nargs=3Dnargs@entry=3D0, args=3D, args@entry=3D0x0) at bytecode.c:919 #31 0x00000000005589af in funcall_lambda (fun=3D10508541, nargs=3Dnargs@ent= ry=3D1, arg_vector=3Darg_vector@entry=3D0x7fffffffca48) at eval.c:2951 #32 0x0000000000558d7b in Ffuncall (nargs=3Dnargs@entry=3D2, args=3Dargs@en= try=3D0x7fffffffca40) at eval.c:2779 #33 0x000000000055a1f3 in Fapply (nargs=3D2, args=3D0x7fffffffca40) at eval= .c:2293 #34 0x0000000000558e69 in Ffuncall (nargs=3D3, args=3Dargs@entry=3D0x7fffff= ffca38) at eval.c:2698 #35 0x000000000058c273 in exec_byte_code (bytestr=3D, vector= =3D10064605, maxdepth=3D, args_template=3Dargs_template@entr= y=3D0, nargs=3Dnargs@entry=3D0, args=3D, args@entry=3D0x0) at bytecode.c:919 #36 0x00000000005589af in funcall_lambda (fun=3D10064525, nargs=3Dnargs@ent= ry=3D1, arg_vector=3Darg_vector@entry=3D0x7fffffffcc38) at eval.c:2951 #37 0x0000000000558d7b in Ffuncall (nargs=3Dnargs@entry=3D2, args=3Dargs@en= try=3D0x7fffffffcc30) at eval.c:2779 #38 0x000000000055904a in call1 (fn=3Dfn@entry=3D43776, arg1=3Darg1@entry= =3D23853549) at eval.c:2573 #39 0x00000000004ee838 in timer_check_2 (idle_timers=3D, tim= ers=3D) at keyboard.c:4536 #40 timer_check () at keyboard.c:4603 #41 0x00000000004eebe9 in readable_events (flags=3Dflags@entry=3D1) at keyb= oard.c:3437 #42 0x00000000004f0218 in get_input_pending (flags=3Dflags@entry=3D1) at ke= yboard.c:6821 #43 0x00000000004f2328 in detect_input_pending_run_timers (do_display=3Ddo_= display@entry=3Dtrue) at keyboard.c:9976 #44 0x000000000059719e in wait_reading_process_output (time_limit=3Dtime_li= mit@entry=3D30, nsecs=3D, nsecs@entry=3D0, read_kbd=3Dread_k= bd@entry=3D-1, do_display=3Ddo_display@entry=3Dtrue,=20 wait_for_cell=3Dwait_for_cell@entry=3D0, wait_proc=3Dwait_proc@entry=3D= 0x0, just_wait_proc=3D0) at process.c:5009 #45 0x00000000004221d2 in sit_for (timeout=3D, reading=3Drea= ding@entry=3Dtrue, display_option=3Ddisplay_option@entry=3D1) at dispnew.c:= 5748 #46 0x00000000004f48a4 in read_char (commandflag=3Dcommandflag@entry=3D1, m= ap=3Dmap@entry=3D34697955, prev_event=3D0, used_mouse_menu=3Dused_mouse_men= u@entry=3D0x7fffffffd82b, end_time=3Dend_time@entry=3D0x0) at keyboard.c:27= 84 #47 0x00000000004f542c in read_key_sequence (keybuf=3Dkeybuf@entry=3D0x7fff= ffffd900, prompt=3Dprompt@entry=3D0, dont_downcase_last=3Ddont_downcase_las= t@entry=3Dfalse,=20 can_return_switch_frame=3Dcan_return_switch_frame@entry=3Dtrue, fix_cur= rent_buffer=3Dfix_current_buffer@entry=3Dtrue, prevent_redisplay=3Dprevent_= redisplay@entry=3Dfalse, bufsize=3D30) at keyboard.c:9159 #48 0x00000000004f7051 in command_loop_1 () at keyboard.c:1407 #49 0x0000000000557537 in internal_condition_case (bfun=3Dbfun@entry=3D0x4f= 6e20 , handlers=3Dhandlers@entry=3D18624, hfun=3Dhfun@entry= =3D0x4edf70 ) at eval.c:1348 #50 0x00000000004e95fc in command_loop_2 (ignore=3Dignore@entry=3D0) at key= board.c:1139 #51 0x0000000000557413 in internal_catch (tag=3Dtag@entry=3D44352, func=3Df= unc@entry=3D0x4e95e0 , arg=3Darg@entry=3D0) at eval.c:1108 #52 0x00000000004e95b9 in command_loop () at keyboard.c:1118 #53 0x00000000004edb5b in recursive_edit_1 () at keyboard.c:728 #54 0x00000000004edea8 in Frecursive_edit () at keyboard.c:799 #55 0x0000000000418447 in main (argc=3D2, argv=3D0x7fffffffdc68) at emacs.c= :1626