From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.devel Subject: Segmentation fault in xg_hide_tooltip Date: Wed, 11 Aug 2010 18:48:53 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1281545348 9416 80.91.229.12 (11 Aug 2010 16:49:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Aug 2010 16:49:08 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 11 18:49:06 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OjEUE-00011F-0q for ged-emacs-devel@m.gmane.org; Wed, 11 Aug 2010 18:49:06 +0200 Original-Received: from localhost ([127.0.0.1]:45887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OjEUD-0002pX-FT for ged-emacs-devel@m.gmane.org; Wed, 11 Aug 2010 12:49:05 -0400 Original-Received: from [140.186.70.92] (port=59612 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OjEU7-0002pH-OV for emacs-devel@gnu.org; Wed, 11 Aug 2010 12:49:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OjEU4-0008I9-Aj for emacs-devel@gnu.org; Wed, 11 Aug 2010 12:48:59 -0400 Original-Received: from coquelicot-s.easter-eggs.com ([213.215.37.94]:53174) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjEU3-0008Hq-Ug for emacs-devel@gnu.org; Wed, 11 Aug 2010 12:48:56 -0400 Original-Received: from cigue.easter-eggs.fr (cigue.easter-eggs.fr [10.0.0.33]) by rose.easter-eggs.fr (Postfix) with ESMTPS id 44F4C140E4 for ; Wed, 11 Aug 2010 18:48:47 +0200 (CEST) Original-Received: from jdanjou by cigue.easter-eggs.fr with local (Exim 4.72) (envelope-from ) id 1OjEU1-0003ys-Ds for emacs-devel@gnu.org; Wed, 11 Aug 2010 18:48:53 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:128565 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, I've got a recurrent segmentation fault while playing with several frame in emacs 24. I've got several backtraces. All mention `tooltip', but are sometimes different and segfault later in GTK. This one seems the most accurate (I got it twice on 4 tries). I can also provide the other ones if that can help. #0 0x00000000004e0dfd in xg_hide_tooltip (f=3D0x2bd7ee0) at gtkutil.c:653 #1 0x00000000004b6f61 in Fx_hide_tip () at xfns.c:5236 #2 0x0000000000563193 in Ffuncall (nargs=3D, args=3D<= value optimized out>) at eval.c:2980 #3 0x000000000059dfa2 in Fbyte_code (bytestr=3D, vect= or=3D, maxdepth=3D) at bytecode.c= :679 #4 0x00000000005653af in funcall_lambda (fun=3D10090797, nargs=3D, arg_vector=3D) at eval.c:3165 #5 0x0000000000562fc3 in Ffuncall (nargs=3D, args=3D0= x99f928) at eval.c:3040 #6 0x000000000059dfa2 in Fbyte_code (bytestr=3D, vect= or=3D, maxdepth=3D) at bytecode.c= :679 #7 0x00000000005653af in funcall_lambda (fun=3D10092437, nargs=3D, arg_vector=3D) at eval.c:3165 #8 0x0000000000562fc3 in Ffuncall (nargs=3D, args=3D0= x99ff90) at eval.c:3040 #9 0x000000000056440a in call1 (fn=3D, arg1=3D) at eval.c:2782 #10 0x00000000004f7a27 in show_help_echo (help=3D11716946, window=3D, object=3D140737488342448, pos=3D24978448,=20 ok_to_overwrite_keystroke_echo=3D5) at keyboard.c:2317 #11 0x00000000004f9bee in read_char (commandflag=3D, n= maps=3D, maps=3D,=20 prev_event=3D, used_mouse_menu=3D, end_time=3D) at keyboard.c:3208 #12 0x00000000004fcddb in read_key_sequence (keybuf=3D= , bufsize=3D, prompt=3D,=20 dont_downcase_last=3D, can_return_switch_frame=3D<= value optimized out>, fix_current_buffer=3D) at keyboa= rd.c:9330 #13 0x00000000004ff340 in command_loop_1 () at keyboard.c:1613 #14 0x000000000056243d in internal_condition_case (bfun=3D, handlers=3D, hfun=3D) at ev= al.c:1458 #15 0x00000000004f845e in command_loop_2 (ignore=3D) a= t keyboard.c:1338 #16 0x0000000000562568 in internal_catch (tag=3D, func= =3D, arg=3D) at eval.c:1202 #17 0x00000000004f8623 in command_loop () at keyboard.c:1317 #18 0x00000000004f8a08 in recursive_edit_1 () at keyboard.c:940 #19 0x00000000004f8b47 in Frecursive_edit () at keyboard.c:1002 #20 0x00000000004ec125 in main (argc=3D0, argv=3D0x7fffffffdfe8) at emacs.c= :1763 (gdb) print f $1 =3D (FRAME_PTR) 0x2bd7ee0 (gdb) print f->output_data $2 =3D {tty =3D 0x0, x =3D 0x0, w32 =3D 0x0, ns =3D 0x0, nothing =3D 0} (gdb) print f->output_data.x $3 =3D (struct x_output *) 0x0 The relevant code seems to be: 648 int=20 649 xg_hide_tooltip (FRAME_PTR f)=20 650 {=20 651 int ret =3D 0;=20 652 #ifdef USE_GTK_TOOLTIP=20 653 if (f->output_data.x->ttip_window)=20 ^^^ here 654 {=20 655 GtkWindow *win =3D f->output_data.x->ttip_window;=20 [=E2=80=A6] 670 #endif=20 671 return ret;=20 672 }=20 I've no idea how to "fix" this. Any hint appreciated. I can test patches if needed. =2D-=20 Julien Danjou // =E1=90=B0 http://julien.danjou.info --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkxi1HUACgkQpGK1HsL+5c2KYACfTE/zth58M0uls4yzj1ENwBCq NaYAn08HJdvZvrZ0Jc6YWsDWdMtQF7iz =WWua -----END PGP SIGNATURE----- --=-=-=--