From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?SmFuIERqw6Rydg==?= Newsgroups: gmane.emacs.devel Subject: Re: Segmentation fault in xg_hide_tooltip Date: Wed, 11 Aug 2010 20:59:04 +0200 Message-ID: <4C62F2F8.4050609@swipnet.se> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1281553187 12164 80.91.229.12 (11 Aug 2010 18:59:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Aug 2010 18:59:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Julien Danjou Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 11 20:59:32 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 1OjGWQ-00084c-IF for ged-emacs-devel@m.gmane.org; Wed, 11 Aug 2010 20:59:30 +0200 Original-Received: from localhost ([127.0.0.1]:54220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OjGWD-0001I8-Cy for ged-emacs-devel@m.gmane.org; Wed, 11 Aug 2010 14:59:17 -0400 Original-Received: from [140.186.70.92] (port=42446 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OjGW5-0001G5-0W for emacs-devel@gnu.org; Wed, 11 Aug 2010 14:59:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OjGW3-0003zg-Pz for emacs-devel@gnu.org; Wed, 11 Aug 2010 14:59:08 -0400 Original-Received: from smtprelay-b11.telenor.se ([62.127.194.20]:34985) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjGW3-0003z3-Gf for emacs-devel@gnu.org; Wed, 11 Aug 2010 14:59:07 -0400 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id E2A65EA7F3 for ; Wed, 11 Aug 2010 20:59:05 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuY1AA+QYkxV4S0jPGdsb2JhbACDFYRSmEYMAQEBATUtqz+RaIEmgyFzBA X-IronPort-AV: E=Sophos;i="4.55,354,1278280800"; d="scan'208";a="117152464" Original-Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb2.telenor.se with ESMTP; 11 Aug 2010 20:59:05 +0200 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id AA4457FA05A; Wed, 11 Aug 2010 20:59:04 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:128568 Archived-At: Hmm, obviously a race condition. I've checked in a fix, please try it. Jan D. Julien Danjou skrev 2010-08-11 18.48: > 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 als= o > 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) at eval.c:2980 > #3 0x000000000059dfa2 in Fbyte_code (bytestr=3D, = vector=3D, maxdepth=3D) at byte= code.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= =3D0x99f928) at eval.c:3040 > #6 0x000000000059dfa2 in Fbyte_code (bytestr=3D, = vector=3D, maxdepth=3D) at byte= code.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= =3D0x99ff90) 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, > ok_to_overwrite_keystroke_echo=3D5) at keyboard.c:2317 > #11 0x00000000004f9bee in read_char (commandflag=3D, nmaps=3D, maps=3D, > 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, > dont_downcase_last=3D, can_return_switch_fram= e=3D, fix_current_buffer=3D) at= keyboard.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 eval.c:1458 > #15 0x00000000004f845e in command_loop_2 (ignore=3D) at 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 ema= cs.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 > 649 xg_hide_tooltip (FRAME_PTR f) > 650 { > 651 int ret =3D 0; > 652 #ifdef USE_GTK_TOOLTIP > 653 if (f->output_data.x->ttip_window) > > ^^^ here > > 654 { > 655 GtkWindow *win =3D f->output_data.x->ttip_window; > > [=E2=80=A6] > > 670 #endif > 671 return ret; > 672 } > > I've no idea how to "fix" this. Any hint appreciated. I can test patche= s > if needed. >