From unknown Wed Sep 10 10:35:54 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#12026 <12026@debbugs.gnu.org> To: bug#12026 <12026@debbugs.gnu.org> Subject: Status: 24.1.50; crash in tooltip Reply-To: bug#12026 <12026@debbugs.gnu.org> Date: Wed, 10 Sep 2025 17:35:54 +0000 retitle 12026 24.1.50; crash in tooltip reassign 12026 emacs submitter 12026 sds@gnu.org severity 12026 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 22 19:58:12 2012 Received: (at submit) by debbugs.gnu.org; 22 Jul 2012 23:58:12 +0000 Received: from localhost ([127.0.0.1]:58122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1St62N-00075H-S2 for submit@debbugs.gnu.org; Sun, 22 Jul 2012 19:58:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49073) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1St62L-000759-I8 for submit@debbugs.gnu.org; Sun, 22 Jul 2012 19:58:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1St5w1-0002n7-87 for submit@debbugs.gnu.org; Sun, 22 Jul 2012 19:51:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:46020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1St5w1-0002mz-4c for submit@debbugs.gnu.org; Sun, 22 Jul 2012 19:51:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1St5vy-000663-Ha for bug-gnu-emacs@gnu.org; Sun, 22 Jul 2012 19:51:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1St5vw-0002li-Mj for bug-gnu-emacs@gnu.org; Sun, 22 Jul 2012 19:51:34 -0400 Received: from mail-qc0-f169.google.com ([209.85.216.169]:50998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1St5vt-0002kk-Sq; Sun, 22 Jul 2012 19:51:29 -0400 Received: by qcsd16 with SMTP id d16so3364706qcs.0 for ; Sun, 22 Jul 2012 16:51:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:return-receipt-to:reply-to:x-attribution :x-disclaimer:date:message-id:mime-version:content-type; bh=jEfFNmveb5skr0fUjtLqnHUTj+djusPLLoGRMplgvCY=; b=xB4ImA7ILDjJz/wdrsq6KUfdiApeuqSCx9619t/KxJU2mwW/l13iZS3Zs/PeRcvc4+ wdqQdx3v3bnf0YYFP95p/USDLx7zo9J5gl5Bp+qGNakXNUFY70i8500d2ect8JPSUS/f GTmZZpJAPbSezoZuCj9yniV55pCYXe/Tie4B02iD6rlK7zTL+vTmL7Qtgi7NIF+abtmP HRNvS/yEas2wqOeKTk8v7or7JtIbMMx5VKARex2t3iyTZyR0h3uowk0AX8dgV/GIX58s aTs9AJ8M+kHCULLi0eTppoJv3c4l4rC9f2M9LjSGBqkqZDmEL54Puu4A4jOGRxu4op9o JNtA== Received: by 10.229.137.139 with SMTP id w11mr6096473qct.113.1343001088840; Sun, 22 Jul 2012 16:51:28 -0700 (PDT) Received: from t520sds (cl-pat-tr.clearspring.com. [8.18.54.254]) by mx.google.com with ESMTPS id hw15sm1090718qab.0.2012.07.22.16.51.27 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 22 Jul 2012 16:51:28 -0700 (PDT) From: Sam Steingold To: bug-gnu-emacs@gnu.org Subject: 24.1.50; crash in tooltip X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Date: Sun, 22 Jul 2012 19:51:26 -0400 Message-ID: <87394j9wxt.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: sds@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) In GNU Emacs 24.1.50.3 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2012-07-22 on t520sds Bzr revision: 109186 dmantipov@yandex.ru-20120722053724-alrlxd0ksvr6a2et Windowing system distributor `The X.Org Foundation', version 11.0.11103000 Configured using: `configure '--with-wide-int'' Program received signal SIGSEGV, Segmentation fault. 0x00007ffff3f303e1 in ?? () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) where #0 0x00007ffff3f303e1 in ?? () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x0000000000580ab5 in strout (ptr=0x560000000000b6db
, size=-5692549928996306943, size_byte=-5692549928996306943, printcharfun=11983826) at /home/sds/src/emacs/trunk/src/print.c:277 #2 0x0000000000582316 in print_string (string=, printcharfun=11983826) at /home/sds/src/emacs/trunk/src/print.c:410 #3 0x00000000005844b3 in print_object (obj=49942269, printcharfun=11983826, escapeflag=0) at /home/sds/src/emacs/trunk/src/print.c:1903 #4 0x00000000005837bc in print_object (obj=40357574, printcharfun=11983826, escapeflag=0) at /home/sds/src/emacs/trunk/src/print.c:1676 #5 0x0000000000585a3d in Fprin1_to_string (object=40357542, noescape=11983874) at /home/sds/src/emacs/trunk/src/print.c:610 #6 0x000000000055ed94 in Fformat (nargs=2, args=0x7fffffffb300) at /home/sds/src/emacs/trunk/src/editfns.c:3815 #7 0x000000000055f890 in Fmessage (nargs=, args=) at /home/sds/src/emacs/trunk/src/editfns.c:3468 #8 0x00000000005687b9 in Ffuncall (nargs=3, args=0x7fffffffb2f8) at /home/sds/src/emacs/trunk/src/eval.c:2777 #9 0x000000000059fd03 in exec_byte_code (bytestr=6196953087261849307, vector=140737488335608, maxdepth=-5692549928996306943, args_template=4611686018695757824, nargs=4611686018430533632, args=0x1) at /home/sds/src/emacs/trunk/src/bytecode.c:898 #10 0x0000000000567c13 in eval_sub (form=) at /home/sds/src/emacs/trunk/src/eval.c:2152 #11 0x0000000000567fa5 in Fprogn (args=10373414) at /home/sds/src/emacs/trunk/src/eval.c:362 #12 0x000000000056a8ad in internal_lisp_condition_case (var=12035602, bodyform=10373118, handlers=10373382) at /home/sds/src/emacs/trunk/src/eval.c:1257 #13 0x00000000005a15e8 in exec_byte_code (bytestr=6196953087261849307, vector=140737488336456, maxdepth=-5692549928996306943, args_template=4611686018695757824, nargs=4611686018430533632, args=0x1) at /home/sds/src/emacs/trunk/src/bytecode.c:1094 #14 0x000000000056822f in funcall_lambda (fun=10372917, nargs=, arg_vector=0x7fffffffb800) at /home/sds/src/emacs/trunk/src/eval.c:3028 #15 0x000000000056856b in Ffuncall (nargs=3, args=0x7fffffffb7f8) at /home/sds/src/emacs/trunk/src/eval.c:2857 #16 0x000000000059fd03 in exec_byte_code (bytestr=6196953087261849307, vector=140737488336888, maxdepth=-5692549928996306943, args_template=4611686018695757824, nargs=4611686018430533632, args=0x1) at /home/sds/src/emacs/trunk/src/bytecode.c:898 #17 0x000000000056822f in funcall_lambda (fun=10375445, nargs=, arg_vector=0x7fffffffbaa8) at /home/sds/src/emacs/trunk/src/eval.c:3028 #18 0x000000000056856b in Ffuncall (nargs=2, args=0x7fffffffbaa0) at /home/sds/src/emacs/trunk/src/eval.c:2857 #19 0x0000000000566ffc in run_hook_with_args (nargs=2, args=0x7fffffffbaa0, funcall=0x568370 ) at /home/sds/src/emacs/trunk/src/eval.c:2505 #20 0x00000000005687b9 in Ffuncall (nargs=3, args=0x7fffffffba98) at /home/sds/src/emacs/trunk/src/eval.c:2777 #21 0x000000000059fd03 in exec_byte_code (bytestr=6196953087261849307, vector=140737488337560, maxdepth=-5692549928996306943, args_template=4611686018695757824, nargs=4611686018430533632, args=0x1) at /home/sds/src/emacs/trunk/src/bytecode.c:898 #22 0x000000000056822f in funcall_lambda (fun=10372557, nargs=, arg_vector=0x7fffffffbd78) at /home/sds/src/emacs/trunk/src/eval.c:3028 #23 0x000000000056856b in Ffuncall (nargs=2, args=0x7fffffffbd70) at /home/sds/src/emacs/trunk/src/eval.c:2857 #24 0x000000000056976f in Fapply (nargs=2, args=0x7fffffffbd70) at /home/sds/src/emacs/trunk/src/eval.c:2251 #25 0x00000000005687b9 in Ffuncall (nargs=3, args=0x7fffffffbd68) at /home/sds/src/emacs/trunk/src/eval.c:2777 #26 0x000000000059fd03 in exec_byte_code (bytestr=6196953087261849307, vector=140737488338280, maxdepth=-5692549928996306943, args_template=4611686018695757824, nargs=4611686018430533632, args=0x1) at /home/sds/src/emacs/trunk/src/bytecode.c:898 ---Type to continue, or q to quit--- #27 0x0000000000567c13 in eval_sub (form=) at /home/sds/src/emacs/trunk/src/eval.c:2152 #28 0x000000000056a932 in internal_lisp_condition_case (var=11983826, bodyform=9983270, handlers=8758398) at /home/sds/src/emacs/trunk/src/eval.c:1274 #29 0x00000000005a15e8 in exec_byte_code (bytestr=6196953087261849307, vector=140737488339128, maxdepth=-5692549928996306943, args_template=4611686018695757824, nargs=4611686018430533632, args=0x1) at /home/sds/src/emacs/trunk/src/bytecode.c:1094 #30 0x000000000056822f in funcall_lambda (fun=9982957, nargs=, arg_vector=0x7fffffffc278) at /home/sds/src/emacs/trunk/src/eval.c:3028 #31 0x000000000056856b in Ffuncall (nargs=2, args=0x7fffffffc270) at /home/sds/src/emacs/trunk/src/eval.c:2857 #32 0x00000000005689ea in call1 (fn=, arg1=) at /home/sds/src/emacs/trunk/src/eval.c:2568 #33 0x00000000004f41d6 in timer_check_2 () at /home/sds/src/emacs/trunk/src/keyboard.c:4457 #34 0x00000000004f72dd in timer_check () at /home/sds/src/emacs/trunk/src/keyboard.c:4502 #35 0x00000000004f73f9 in readable_events (flags=) at /home/sds/src/emacs/trunk/src/keyboard.c:3398 #36 0x00000000004f9a25 in get_input_pending (flags=1, addr=0xb5c830) at /home/sds/src/emacs/trunk/src/keyboard.c:6725 #37 0x00000000004fc04a in detect_input_pending_run_timers (do_display=1) at /home/sds/src/emacs/trunk/src/keyboard.c:10358 #38 0x00000000005a7ff1 in wait_reading_process_output (time_limit=, nsecs=0, read_kbd=-1, do_display=1, wait_for_cell=11983826, wait_proc=, just_wait_proc=0) at /home/sds/src/emacs/trunk/src/process.c:4721 #39 0x000000000041af74 in sit_for (timeout=, reading=1, do_display=1) at /home/sds/src/emacs/trunk/src/dispnew.c:6000 #40 0x00000000004fe1c9 in read_char (commandflag=1, nmaps=3, maps=0x7fffffffcc90, prev_event=11983826, used_mouse_menu=0x7fffffffce20, end_time=0x0) at /home/sds/src/emacs/trunk/src/keyboard.c:2701 #41 0x00000000004fefd5 in read_key_sequence (keybuf=0x7fffffffce80, prompt=11983826, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1, bufsize=30) at /home/sds/src/emacs/trunk/src/keyboard.c:9316 #42 0x0000000000500bf8 in command_loop_1 () at /home/sds/src/emacs/trunk/src/keyboard.c:1449 #43 0x0000000000566ac8 in internal_condition_case (bfun=0x500a30 , handlers=12035602, hfun=0x4f5d10 ) at /home/sds/src/emacs/trunk/src/eval.c:1320 #44 0x00000000004f38ee in command_loop_2 (ignore=) at /home/sds/src/emacs/trunk/src/keyboard.c:1152 #45 0x00000000005669a8 in internal_catch (tag=, func=0x4f38d0 , arg=11983826) at /home/sds/src/emacs/trunk/src/eval.c:1077 #46 0x00000000004f57d7 in command_loop () at /home/sds/src/emacs/trunk/src/keyboard.c:1131 #47 recursive_edit_1 () at /home/sds/src/emacs/trunk/src/keyboard.c:752 #48 0x00000000004f5b14 in Frecursive_edit () at /home/sds/src/emacs/trunk/src/keyboard.c:816 #49 0x000000000041004d in main (argc=1, argv=) at /home/sds/src/emacs/trunk/src/emacs.c:1677 Lisp Backtrace: "message" (0xffffb300) "byte-code" (0xffffb3e0) "tooltip-show" (0xffffb800) "tooltip-help-tips" (0xffffbaa8) "run-hook-with-args-until-success" (0xffffbaa0) ---Type to continue, or q to quit--- "tooltip-timeout" (0xffffbd78) "apply" (0xffffbd70) "byte-code" (0xffffbe60) "timer-event-handler" (0xffffc278) (gdb) up #1 0x0000000000580ab5 in strout (ptr=0x560000000000b6db
, size=-5692549928996306943, size_byte=-5692549928996306943, printcharfun=11983826) at /home/sds/src/emacs/trunk/src/print.c:277 277 size_byte = size = strlen (ptr); (gdb) up #2 0x0000000000582316 in print_string (string=, printcharfun=11983826) at /home/sds/src/emacs/trunk/src/print.c:410 410 strout (SSDATA (string), chars, SBYTES (string), printcharfun); (gdb) c Continuing. Fatal error (11) Program received signal SIGSEGV, Segmentation fault. 0x00007ffff3e05727 in kill () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) c Continuing. ptrace: No such process. (gdb) c Continuing. Cannot execute this command while the selected thread is running. (gdb) run Cannot access memory at address 0x8370a0 (gdb) bt full Target is executing. (gdb) xbacktrace Cannot access memory at address 0xb480b0 (gdb) -- Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000 http://www.childpsy.net/ http://mideasttruth.com http://ffii.org http://www.memritv.org http://openvotingconsortium.org http://pmw.org.il Every day above ground is a good day. From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 23 13:03:27 2012 Received: (at 12026) by debbugs.gnu.org; 23 Jul 2012 17:03:27 +0000 Received: from localhost ([127.0.0.1]:33131 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1StM2Z-0002Tx-AM for submit@debbugs.gnu.org; Mon, 23 Jul 2012 13:03:27 -0400 Received: from smtprelay-b21.telenor.se ([195.54.99.212]:43767) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1StM2X-0002Tn-2V for 12026@debbugs.gnu.org; Mon, 23 Jul 2012 13:03:25 -0400 Received: from ipb5.telenor.se (ipb5.telenor.se [195.54.127.168]) by smtprelay-b21.telenor.se (Postfix) with ESMTP id 38CDAEB819 for <12026@debbugs.gnu.org>; Mon, 23 Jul 2012 18:56:48 +0200 (CEST) X-SMTPAUTH-B2: [bocjoh] X-SENDER-IP: [85.228.204.124] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArZJANWADVBV5Mx8PGdsb2JhbABFiiqvDRkBAQEBNzSCIAEBBAEnLyMFCwshJQ8BBBgBDAotHodpCr0PjwSDHAOoNw X-IronPort-AV: E=Sophos;i="4.77,639,1336341600"; d="scan'208";a="157698191" Received: from c-7ccce455.04-211-6c6b701.cust.bredbandsbolaget.se (HELO muon.localdomain) ([85.228.204.124]) by ipb5.telenor.se with ESMTP; 23 Jul 2012 18:56:48 +0200 Received: by muon.localdomain (Postfix, from userid 1000) id 090704842E1; Mon, 23 Jul 2012 18:56:45 +0200 (CEST) From: =?utf-8?Q?Johan_Bockg=C3=A5rd?= To: sds@gnu.org Subject: Re: bug#12026: 24.1.50; crash in tooltip References: <87394j9wxt.fsf@gnu.org> Mail-Copies-To: never Date: Mon, 23 Jul 2012 18:56:45 +0200 In-Reply-To: <87394j9wxt.fsf@gnu.org> (Sam Steingold's message of "Sun, 22 Jul 2012 19:51:26 -0400") Message-ID: <87hasye7qq.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 12026 Cc: 12026@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) Sam Steingold writes: > Lisp Backtrace: > "message" (0xffffb300) > "byte-code" (0xffffb3e0) > "tooltip-show" (0xffffb800) > "tooltip-help-tips" (0xffffbaa8) > "run-hook-with-args-until-success" (0xffffbaa0) 1. I can reproduce it by (setq x-gtk-use-system-tooltips nil) Move the mouse over a tooltip area in the mode line. => Crash The recent change to decode_any_window CHECK_LIVE_FRAME (w->frame); signals an error in x_create_tip_frame since f->terminal is still NULL at this point [x_create_tip_frame] f = make_frame (1); ... buffer = Fget_buffer_create (build_string (" *tip*")); Fset_window_buffer (FRAME_ROOT_WINDOW (f), buffer, Qnil); <<<< ... f->terminal = dpyinfo->terminal; The error is caught by tooltip-show (condition-case error ... (x-show-tip ...)) (error (message "Error while displaying tooltip: %s" error) ... which crashes while trying to print "(wrong-type-argument frame-live-p #name is nil. The problem can be fixed (error in decode_any_window avoided) by moving the initialization of f->terminal earlier: === modified file 'src/xfns.c' --- src/xfns.c 2012-07-20 07:29:04 +0000 +++ src/xfns.c 2012-07-23 15:14:17 +0000 @@ -4591,6 +4591,8 @@ x_create_tip_frame (struct x_display_inf f = make_frame (1); XSETFRAME (frame, f); + f->terminal = dpyinfo->terminal; + buffer = Fget_buffer_create (build_string (" *tip*")); Fset_window_buffer (FRAME_ROOT_WINDOW (f), buffer, Qnil); old_buffer = current_buffer; @@ -4605,8 +4607,6 @@ x_create_tip_frame (struct x_display_inf FRAME_CAN_HAVE_SCROLL_BARS (f) = 0; record_unwind_protect (unwind_create_tip_frame, frame); - f->terminal = dpyinfo->terminal; - /* By setting the output method, we're essentially saying that the frame is live, as per FRAME_LIVE_P. If we get a signal from this point on, x_destroy_window might screw up reference 2. But the late initialisation of f->name is a problem in its own right: (setq x-gtk-use-system-tooltips nil) (defun foo (win pos) (message "%S" (window-frame win))) (add-hook 'window-scroll-functions 'foo) Move the mouse over a tooltip area in the mode line. => Crash (Also crashes in Emacs 23.) 3. The same problem with f->name also exists in Fx_create_frame/make_minibuffer_frame: (defun foo (win pos) (message "%S" (window-frame win))) (add-hook 'window-scroll-functions 'foo) (make-frame '((minibuffer . only))) => Crash (Also crashes in Emacs 23.) From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 23 13:07:07 2012 Received: (at control) by debbugs.gnu.org; 23 Jul 2012 17:07:07 +0000 Received: from localhost ([127.0.0.1]:33162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1StM66-0002bY-Ql for submit@debbugs.gnu.org; Mon, 23 Jul 2012 13:07:07 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:55927) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1StM64-0002bJ-I1 for control@debbugs.gnu.org; Mon, 23 Jul 2012 13:07:05 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M7M00000HTJO300@a-mtaout22.012.net.il> for control@debbugs.gnu.org; Mon, 23 Jul 2012 20:00:10 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M7M000WYHWAEY30@a-mtaout22.012.net.il> for control@debbugs.gnu.org; Mon, 23 Jul 2012 20:00:10 +0300 (IDT) Date: Mon, 23 Jul 2012 20:00:15 +0300 From: Eli Zaretskii Subject: bug#12026: 24.1.50; crash in tooltip X-012-Sender: halo1@inter.net.il To: control@debbugs.gnu.org Message-id: <83pq7mza3k.fsf@gnu.org> X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) merge 12026 12027 12025 thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 23 13:58:22 2012 Received: (at 12026) by debbugs.gnu.org; 23 Jul 2012 17:58:22 +0000 Received: from localhost ([127.0.0.1]:33275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1StMti-0004wm-3c for submit@debbugs.gnu.org; Mon, 23 Jul 2012 13:58:22 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:40843) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1StMtf-0004wd-Uo for 12026@debbugs.gnu.org; Mon, 23 Jul 2012 13:58:20 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0M7M00G00K20YV00@a-mtaout20.012.net.il> for 12026@debbugs.gnu.org; Mon, 23 Jul 2012 20:51:24 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M7M00H7RK9N1600@a-mtaout20.012.net.il>; Mon, 23 Jul 2012 20:51:24 +0300 (IDT) Date: Mon, 23 Jul 2012 20:51:28 +0300 From: Eli Zaretskii Subject: Re: bug#12026: 24.1.50; crash in tooltip In-reply-to: <87hasye7qq.fsf@gnu.org> To: Johan =?iso-8859-1?Q?Bockg=E5rd?= Message-id: <83ipdez7q7.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <87394j9wxt.fsf@gnu.org> <87hasye7qq.fsf@gnu.org> X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 12026 Cc: 12026@debbugs.gnu.org, sds@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > From: Johan Bockg=E5rd > Date: Mon, 23 Jul 2012 18:56:45 +0200 > Cc: 12026@debbugs.gnu.org >=20 > The recent change to decode_any_window >=20 > CHECK_LIVE_FRAME (w->frame); >=20 > signals an error in x_create_tip_frame since f->terminal is still N= ULL > at this point >=20 > [x_create_tip_frame] >=20 > f =3D make_frame (1); > ... > buffer =3D Fget_buffer_create (build_string (" *tip*")); > Fset_window_buffer (FRAME_ROOT_WINDOW (f), buffer, Qnil); = <<<< > ... > f->terminal =3D dpyinfo->terminal; >=20 >=20 > The error is caught by tooltip-show >=20 > (condition-case error > ... > =09 (x-show-tip ...)) > (error > (message "Error while displaying tooltip: %s" error) > ... >=20 > which crashes while trying to print "(wrong-type-argument frame-liv= e-p > #name is nil. Where were you an hour ago, when I started working on this, and made the same way (sans the GTK stuff) to the root cause? ;-) > The problem can be fixed (error in decode_any_window avoided) by mo= ving > the initialization of f->terminal earlier: >=20 > =3D=3D=3D modified file 'src/xfns.c' > --- src/xfns.c=092012-07-20 07:29:04 +0000 > +++ src/xfns.c=092012-07-23 15:14:17 +0000 > @@ -4591,6 +4591,8 @@ x_create_tip_frame (struct x_display_inf > f =3D make_frame (1); > XSETFRAME (frame, f); > =20 > + f->terminal =3D dpyinfo->terminal; > + > buffer =3D Fget_buffer_create (build_string (" *tip*")); > Fset_window_buffer (FRAME_ROOT_WINDOW (f), buffer, Qnil); > old_buffer =3D current_buffer; > @@ -4605,8 +4607,6 @@ x_create_tip_frame (struct x_display_inf > FRAME_CAN_HAVE_SCROLL_BARS (f) =3D 0; > record_unwind_protect (unwind_create_tip_frame, frame); > =20 > - f->terminal =3D dpyinfo->terminal; > - I don't think this is the right fix. It's not right to have frame creation code be so fragile as to break badly when a single line is moved around. Perhaps we could have a smarter test in decode_any_window instead of CHECK_LIVE_FRAME. For example, it could somehow detect that the fram= e is just being created (e.g., if its name is nil?) and let it pass. > But the late initialisation of f->name is a problem in its own righ= t: >=20 > (setq x-gtk-use-system-tooltips nil) > (defun foo (win pos) (message "%S" (window-frame win))) > (add-hook 'window-scroll-functions 'foo) >=20 > Move the mouse over a tooltip area in the mode line. > =3D> Crash This no longer crashes in revno 109194 and later. > The same problem with f->name also exists in > Fx_create_frame/make_minibuffer_frame: >=20 > (defun foo (win pos) (message "%S" (window-frame win))) > (add-hook 'window-scroll-functions 'foo) >=20 > (make-frame '((minibuffer . only))) > =3D> Crash Neither does this. But the issue with CHECK_LIVE_FRAME is still there. I just disabled the test for now. From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 23 14:25:51 2012 Received: (at control) by debbugs.gnu.org; 23 Jul 2012 18:25:51 +0000 Received: from localhost ([127.0.0.1]:33376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1StNKJ-0005nC-Dw for submit@debbugs.gnu.org; Mon, 23 Jul 2012 14:25:51 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:50043) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1StNKG-0005mz-7z for control@debbugs.gnu.org; Mon, 23 Jul 2012 14:25:50 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0M7M00H00LIB8R00@a-mtaout20.012.net.il> for control@debbugs.gnu.org; Mon, 23 Jul 2012 21:19:09 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M7M00H2PLJX1660@a-mtaout20.012.net.il> for control@debbugs.gnu.org; Mon, 23 Jul 2012 21:19:09 +0300 (IDT) Date: Mon, 23 Jul 2012 21:19:14 +0300 From: Eli Zaretskii X-012-Sender: halo1@inter.net.il To: control@debbugs.gnu.org Message-id: <83boj6z6fx.fsf@gnu.org> X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: merge 12026 12035 thanks [...] Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.0 GOT_NO_SUBJECT No real subject -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.166 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 1.8 MISSING_SUBJECT Missing Subject: header X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: merge 12026 12035 thanks [...] Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.166 listed in list.dnswl.org] 3.0 GOT_NO_SUBJECT No real subject 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 1.8 MISSING_SUBJECT Missing Subject: header merge 12026 12035 thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 23 23:09:23 2012 Received: (at control) by debbugs.gnu.org; 24 Jul 2012 03:09:23 +0000 Received: from localhost ([127.0.0.1]:34353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1StVUw-0002CT-PN for submit@debbugs.gnu.org; Mon, 23 Jul 2012 23:09:23 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:45469) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1StVUr-0002CC-9I; Mon, 23 Jul 2012 23:09:18 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0M7N00L0095EVT00@a-mtaout20.012.net.il>; Tue, 24 Jul 2012 06:01:54 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M7N00LDE9R6SQ60@a-mtaout20.012.net.il>; Tue, 24 Jul 2012 06:01:54 +0300 (IDT) Date: Tue, 24 Jul 2012 06:02:00 +0300 From: Eli Zaretskii Subject: Re: bug#12039: 24.1.50; Emacs crash on startup In-reply-to: <22F381CB76B04C35956F0D9BD2EE62F8@us.oracle.com> X-012-Sender: halo1@inter.net.il To: control@debbugs.gnu.org Message-id: <834noxzwt3.fsf@gnu.org> References: <22F381CB76B04C35956F0D9BD2EE62F8@us.oracle.com> X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: control Cc: 12039@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) merge 12026 12039 thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 07 03:12:32 2012 Received: (at control) by debbugs.gnu.org; 7 Aug 2012 07:12:32 +0000 Received: from localhost ([127.0.0.1]:38669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sydxv-0001Xv-Tx for submit@debbugs.gnu.org; Tue, 07 Aug 2012 03:12:32 -0400 Received: from mail-gg0-f172.google.com ([209.85.161.172]:47222) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sydxu-0001Xo-00 for control@debbugs.gnu.org; Tue, 07 Aug 2012 03:12:30 -0400 Received: by ggnc4 with SMTP id c4so3470201ggn.3 for ; Tue, 07 Aug 2012 00:04:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=0yFeAaf6/c4Udz+PK7xVetlJG8P/KDh4kGHwHloKZI0=; b=X8bQYlkB6GSwVn0A/XMcB7wVml932YJy4TRfo5G1LWFqVsPwkrx1X32mLo5QyuX9/F C4Iu1ln/xJk+AqRqba6OBt198zuaJ6bnIR2pV4n7yxr3K2oprQqmFos3xuefVj5sfumE D8CWCpZbBSFjRogvuxyPbFSKTTC2n9E0T/dH0zmNEqmZN0aB8bpKQSvuva6tVuQUu8uw GuscOrFtR+u6gILZTntI/gnhaRA7KZNjwp5VKsH1YD2cmnPiXKSdj+yEaIpGE8rDDGWC HHGpIbNRb8eBilcTBhS/CBx2not2DuhUkphsWK08YtKX5GWkok6ZAm0qoXBKtaU/jicL XRiQ== Received: by 10.66.73.133 with SMTP id l5mr23847595pav.74.1344323072172; Tue, 07 Aug 2012 00:04:32 -0700 (PDT) Received: from ulysses ([155.69.17.229]) by mx.google.com with ESMTPS id jz4sm10600087pbc.17.2012.08.07.00.04.29 (version=SSLv3 cipher=OTHER); Tue, 07 Aug 2012 00:04:31 -0700 (PDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 12025 Date: Tue, 07 Aug 2012 15:04:26 +0800 Message-ID: <87ipcvkwsl.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) close 12025 thanks From unknown Wed Sep 10 10:35:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 13 Sep 2012 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator