From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#10035: Crash in check_x_frame in w32fns.c Date: Sun, 13 Nov 2011 21:42:58 +0100 Message-ID: References: <4EBFE25E.3010101@gmail.com> <838vnkeybb.fsf@gnu.org> <4EC022EB.2030508@gmail.com> <8339drg4dy.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1321217087 4421 80.91.229.12 (13 Nov 2011 20:44:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 13 Nov 2011 20:44:47 +0000 (UTC) Cc: Christoph Scholtes , 10035@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 13 21:44:39 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RPgut-0005gx-8D for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Nov 2011 21:44:39 +0100 Original-Received: from localhost ([::1]:59749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPgus-0002SB-Ko for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Nov 2011 15:44:38 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:38118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPguo-0002Rv-Nh for bug-gnu-emacs@gnu.org; Sun, 13 Nov 2011 15:44:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPgun-0005LO-EW for bug-gnu-emacs@gnu.org; Sun, 13 Nov 2011 15:44:34 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPgun-0005LK-BQ for bug-gnu-emacs@gnu.org; Sun, 13 Nov 2011 15:44:33 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RPgvF-0001TL-WF for bug-gnu-emacs@gnu.org; Sun, 13 Nov 2011 15:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Nov 2011 20:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10035 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10035-submit@debbugs.gnu.org id=B10035.13212170585593 (code B ref 10035); Sun, 13 Nov 2011 20:45:01 +0000 Original-Received: (at 10035) by debbugs.gnu.org; 13 Nov 2011 20:44:18 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RPguX-0001SA-MF for submit@debbugs.gnu.org; Sun, 13 Nov 2011 15:44:18 -0500 Original-Received: from mail-gx0-f172.google.com ([209.85.161.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RPguU-0001Rw-SP for 10035@debbugs.gnu.org; Sun, 13 Nov 2011 15:44:16 -0500 Original-Received: by ggnr5 with SMTP id r5so219197ggn.3 for <10035@debbugs.gnu.org>; Sun, 13 Nov 2011 12:43:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=ZDi4pXStLeo2bKtafH8q1M5F+mBFH3/2BSmGKfueQnw=; b=BasDfc43EzaoIMr24cndUPE8cvxV7Z0GUcfl7N7+9/IMLIlJFWxnyMcwrm8yiwDA6x YuMh0Jn8SVOl+UffRahzyeXL3wvIGc6HixgbneAeSJMGBUECrW05VbHaaLQMSMkSrVFk RcWG2nmeXIHx2Og1gMWqOTnkXLHda9eSsKVbg= Original-Received: by 10.68.24.1 with SMTP id q1mr37365514pbf.29.1321217019097; Sun, 13 Nov 2011 12:43:39 -0800 (PST) Original-Received: by 10.142.48.12 with HTTP; Sun, 13 Nov 2011 12:42:58 -0800 (PST) In-Reply-To: <8339drg4dy.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 13 Nov 2011 15:45:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:53878 Archived-At: I'm hitting which I think is the same bug: Breakpoint 1, w32_abort () at w32fns.c:7190 7190 button =3D MessageBox (NULL,(gdb) bt #0 w32_abort () at w32fns.c:7190 #1 0x010ee13d in row_equal_p (a=3D0x508a158, b=3D0x4fcd158, mouse_face_p=3D1) at dispnew.c:1294 #2 0x010f498b in scrolling_window (w=3D0x3974800, header_line_p=3D0) at dispnew.c:4305 #3 0x010f317a in update_window (w=3D0x3974800, force_p=3D1) at dispnew.c:3= 605 #4 0x010f287a in update_window_tree (w=3D0x3974800, force_p=3D1) at dispne= w.c:3349 #5 0x010f2853 in update_window_tree (w=3D0x3974c00, force_p=3D1) at dispne= w.c:3347 #6 0x010f25c9 in update_frame (f=3D0x3a2ce00, force_p=3D1, inhibit_hairy_id_p=3D0) at dispnew.c:3276 #7 0x011fec83 in redisplay_internal () at xdisp.c:13175 #8 0x011ffb84 in redisplay_preserve_echo_area (from_where=3D12) at xdisp.c= :13389 #9 0x0104c131 in wait_reading_process_output (time_limit=3D300, microsecs=3D0, read_kbd=3D-1, do_display=3D1, wait_for_cell=3D54720538, wait_proc=3D0x0, just_wait_proc=3D0) at process.c:4822 #10 0x010f99d9 in sit_for (timeout=3D1200, reading=3D1, do_display=3D1) at dispnew.c:5994 #11 0x01009253 in read_char (commandflag=3D1, nmaps=3D4, maps=3D0x88f970, prev_event=3D54720538, used_mouse_menu=3D0x88fa48, end_time=3D0x0) at keyboard.c:2687 #12 0x0101c2bd in read_key_sequence (keybuf=3D0x88fbd0, bufsize=3D30, prompt=3D54720538, dont_downcase_last=3D0, can_return_switch_frame=3D1, fix_current_buffer=3D1) at keyboard.c:9290 #13 0x01005c70 in command_loop_1 () at keyboard.c:1447 #14 0x01032e63 in internal_condition_case (bfun=3D0x1005678 , handlers=3D54778266, hfun=3D0x1004e97 ) at eval.c:1499 #15 0x010052d4 in command_loop_2 (ignore=3D54720538) at keyboard.c:1158 #16 0x01032886 in internal_catch (tag=3D54776290, func=3D0x10052b0 , arg=3D54720538) at eval.c:1256 #17 0x01005290 in command_loop () at keyboard.c:1137 #18 0x0100486c in recursive_edit_1 () at keyboard.c:757 #19 0x01004b87 in Frecursive_edit () at keyboard.c:821 #20 0x010028b5 in main (argc=3D1, argv=3D0xa72c68) at emacs.c:1707 > Sorry, I meant to type this in frame #2, where a and be are arguments > of the function row_equal_p: (gdb) frame 1 #1 0x010ee13d in row_equal_p (a=3D0x508a158, b=3D0x4fcd158, mouse_face_p=3D1) at dispnew.c:1294 1294 xassert (verify_row_hash (a)); (gdb) p a->enabled_p $3 =3D 1 (gdb) p b->enabled_p $4 =3D 1 (gdb) I can reproduce it at will, but not from "emacs -Q". It happens for me when trying to run slime + sbcl. Output of "bt full" follows. =C2=A0 =C2=A0 Juanma (gdb) bt full #0 w32_abort () at w32fns.c:7190 button =3D 0 #1 0x010ee13d in row_equal_p (a=3D0x508a158, b=3D0x4fcd158, mouse_face_p=3D1) at dispnew.c:1294 No locals. #2 0x010f498b in scrolling_window (w=3D0x3974800, header_line_p=3D0) at dispnew.c:4305 d =3D 0x4fcd158 c =3D 0x508a158 desired_matrix =3D 0x5330380 current_matrix =3D 0x52ffc00 yb =3D 465 i =3D 2 j =3D 84461132 first_old =3D 83686988 first_new =3D 84461132 last_old =3D 124 last_new =3D 87995232 nruns =3D 83686988 run_idx =3D 21981248 n =3D 17764536 entry =3D 0x4fcf64c rif =3D 0x14f6840 #3 0x010f317a in update_window (w=3D0x3974800, force_p=3D1) at dispnew.c:3= 605 rc =3D -1 end =3D 0x4fcf64c mode_line_row =3D 0x4fcf64c header_line_row =3D 0x0 changed_p =3D 0 mouse_face_overwritten_p =3D 0 row =3D 0x4fcd000 yb =3D 465 desired_matrix =3D 0x5330380 paused_p =3D 0 rif =3D 0x14f6840 #4 0x010f287a in update_window_tree (w=3D0x3974800, force_p=3D1) at dispne= w.c:3349 paused_p =3D 0 #5 0x010f2853 in update_window_tree (w=3D0x3974c00, force_p=3D1) at dispne= w.c:3347 paused_p =3D 0 #6 0x010f25c9 in update_frame (f=3D0x3a2ce00, force_p=3D1, inhibit_hairy_id_p=3D0) at dispnew.c:3276 paused_p =3D 0 root_window =3D 0x3974c00 #7 0x011fec83 in redisplay_internal () at xdisp.c:13175 f =3D 0x3a2ce00 tail =3D 59282974 frame =3D 61001221 w =3D 0x3974800 sw =3D 0x3974800 fr =3D 0x3a2ce00 pending =3D 0 must_finish =3D 1 tlbufpos =3D { charpos =3D 342, bytepos =3D 342 } tlendpos =3D { charpos =3D 0, bytepos =3D 0 } number_of_visible_frames =3D 1 count =3D 3 count1 =3D 5 sf =3D 0x3a2ce00 polling_stopped_here =3D 1 old_frame =3D 61001221 consider_all_windows_p =3D 1 #8 0x011ffb84 in redisplay_preserve_echo_area (from_where=3D12) at xdisp.c= :13389 No locals. #9 0x0104c131 in wait_reading_process_output (time_limit=3D300, microsecs=3D0, read_kbd=3D-1, do_display=3D1, wait_for_cell=3D54720538, wait_proc=3D0x0, just_wait_proc=3D0) at process.c:4822 nread =3D 261 timeout_reduced_for_timers =3D 1 channel =3D 3 nfds =3D 1 Available =3D { bits =3D {0, 0} } Writeok =3D { bits =3D {0, 0} } check_write =3D 0 check_delay =3D 1 no_avail =3D 0 xerrno =3D 22 proc =3D 60705797 timeout =3D { tv_sec =3D 0, tv_usec =3D 179000 } end_time =3D { tv_sec =3D 1321216849, tv_usec =3D 259000 } wait_channel =3D -1 got_some_input =3D 1 count =3D 2 #10 0x010f99d9 in sit_for (timeout=3D1200, reading=3D1, do_display=3D1) at dispnew.c:5994 sec =3D 300 usec =3D 0 #11 0x01009253 in read_char (commandflag=3D1, nmaps=3D4, maps=3D0x88f970, prev_event=3D54720538, used_mouse_menu=3D0x88fa48, end_time=3D0x0) at keyboard.c:2687 tem0 =3D 8976680 timeout =3D 300 delay_level =3D 4 buffer_size =3D 2 c =3D 54720538 jmpcount =3D 2 local_getcjmp =3D {8976680, 60417664, 8976760, 60417672, 8976300, 16812939, 8978372, 0, 101, 0, 0, 60417664, 8976568, 16939745, 56133544, 56297856} save_jump =3D {0 } key_already_recorded =3D 0 tem =3D 82319702 save =3D 342 previous_echo_area_message =3D 54720538 also_record =3D 54720538 reread =3D 0 gcpro1 =3D { next =3D 0x1262215, var =3D 0x53ae98e, nvars =3D 54764386 } gcpro2 =3D { next =3D 0x343a362, var =3D 0x10f, nvars =3D 8976408 } polling_stopped_here =3D 0 orig_kboard =3D 0x38ea980 #12 0x0101c2bd in read_key_sequence (keybuf=3D0x88fbd0, bufsize=3D30, prompt=3D54720538, dont_downcase_last=3D0, can_return_switch_frame=3D1, fix_current_buffer=3D1) at keyboard.c:9290 interrupted_kboard =3D 0x38ea980 interrupted_frame =3D 0x3a2ce00 key =3D 83529221 used_mouse_menu =3D 0 echo_local_start =3D 0 last_real_key_start =3D 0 keys_local_start =3D 0 local_first_binding =3D 0 from_string =3D 54720538 count =3D 2 t =3D 0 echo_start =3D 0 keys_start =3D 0 nmaps =3D 4 nmaps_allocated =3D 4 defs =3D 0x88f950 submaps =3D 0x88f970 orig_local_map =3D 86338862 orig_keymap =3D 54720538 localized_local_map =3D 0 first_binding =3D 0 first_unbound =3D 31 mock_input =3D 0 fkey =3D { parent =3D 59285670, map =3D 59285670, start =3D 0, end =3D 0 } keytran =3D { parent =3D 54709958, map =3D 54709958, start =3D 0, end =3D 0 } indec =3D { parent =3D 59285678, map =3D 59285678, start =3D 0, end =3D 0 } shift_translated =3D 0 delayed_switch_frame =3D 54720538 original_uppercase =3D 54825298 original_uppercase_position =3D -1 dummyflag =3D 0 starting_buffer =3D 0x4fa8e00 fake_prefixed_keys =3D 54720538 outer_gcpro1 =3D { next =3D 0x162f5e4, var =3D 0x342f81a, nvars =3D 83529216 } #13 0x01005c70 in command_loop_1 () at keyboard.c:1447 cmd =3D 54776506 keybuf =3D {536871392, 196, 8977388, 8977120, 0, 0, 54720538, 54825802, 54720538, 0, 0, 2130567168, 0, 0, 8977464, 17009385, 54825802, 54720538, 54698478, 54720538, 0, 54720538, 0, 2130567168, 0, 0, 8977512, 16992044, 2, 54698478} i =3D 1 prev_modiff =3D 16 prev_buffer =3D 0x4fa8400 already_adjusted =3D 0 #14 0x01032e63 in internal_condition_case (bfun=3D0x1005678 , handlers=3D54778266, hfun=3D0x1004e97 ) at eval.c:1499 val =3D 54698478 c =3D { tag =3D 54720538, val =3D 54720538, next =3D 0x88fd74, gcpro =3D 0x0, jmp =3D {8977720, 2130567168, 0, 0, 8977548, 16985616, 8978372, 0, 11291440, 8977684, 1968346385, 11291440, 1, 1973563960, 0, 3082}, backlist =3D 0x0, handlerlist =3D 0x0, lisp_eval_depth =3D 0, pdlcount =3D 2, poll_suppress_count =3D 0, interrupt_input_blocked =3D 0, byte_stack =3D 0x0 } h =3D { handler =3D 54778266, var =3D 54720538, chosen_clause =3D 1996562125, tag =3D 0x88fcc0, next =3D 0x0 } #15 0x010052d4 in command_loop_2 (ignore=3D54720538) at keyboard.c:1158 val =3D 2130567168 #16 0x01032886 in internal_catch (tag=3D54776290, func=3D0x10052b0 , arg=3D54720538) at eval.c:1256 c =3D { tag =3D 54776290, val =3D 54720538, next =3D 0x0, gcpro =3D 0x0, jmp =3D {8977896, 2130567168, 0, 0, 8977756, 16984183, 8978372, 0, 54720538, 54759424, 1973565248, 1973565311, 2130567168, 23404840, 54759424, 23404840}, backlist =3D 0x0, handlerlist =3D 0x0, lisp_eval_depth =3D 0, pdlcount =3D 2, poll_suppress_count =3D 0, interrupt_input_blocked =3D 0, byte_stack =3D 0x0 } #17 0x01005290 in command_loop () at keyboard.c:1137 No locals. #18 0x0100486c in recursive_edit_1 () at keyboard.c:757 count =3D 1 val =3D 1972937794 #19 0x01004b87 in Frecursive_edit () at keyboard.c:821 count =3D 0 buffer =3D 54720538 #20 0x010028b5 in main (argc=3D1, argv=3D0xa72c68) at emacs.c:1707 dummy =3D 8978372 stack_bottom_variable =3D 0 '\000' do_initial_setlocale =3D 1 skip_args =3D 0 no_loadup =3D 0 junk =3D 0x0 dname_arg =3D 0x0 ch_to_dir =3D 0x0 (gdb)