From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#407: marked as done (gpm server stop making emacs abort()) Date: Fri, 27 Mar 2009 16:25:04 +0000 Message-ID: References: <87wsktf41m.fsf@blah.blah> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1238171104-27274-0" X-Trace: ger.gmane.org 1238172263 28661 80.91.229.12 (27 Mar 2009 16:44:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Mar 2009 16:44:23 +0000 (UTC) To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 27 17:45:40 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LnFBX-0006qb-5s for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Mar 2009 17:45:37 +0100 Original-Received: from localhost ([127.0.0.1]:41748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnFAA-0007Ta-3V for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Mar 2009 12:44:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LnF9v-0007On-Cz for bug-gnu-emacs@gnu.org; Fri, 27 Mar 2009 12:43:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnF9q-0007Nf-Af for bug-gnu-emacs@gnu.org; Fri, 27 Mar 2009 12:43:54 -0400 Original-Received: from [199.232.76.173] (port=34815 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnF9p-0007NE-Oc for bug-gnu-emacs@gnu.org; Fri, 27 Mar 2009 12:43:49 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54780) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LnF9o-00063x-SP for bug-gnu-emacs@gnu.org; Fri, 27 Mar 2009 12:43:49 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2RGhj6X032505; Fri, 27 Mar 2009 09:43:46 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2RGP48j027402; Fri, 27 Mar 2009 09:25:04 -0700 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 407 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: patch X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26681 Archived-At: This is a multi-part message in MIME format... ------------=_1238171104-27274-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Fri, 27 Mar 2009 12:18:19 -0400 with message-id and subject line gpm server stop making emacs abort() has caused the Emacs bug report #407, regarding gpm server stop making emacs abort() to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 407: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D407 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1238171104-27274-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.7 required=4.0 tests=AWL,BAYES_00,FOURLA, IMPRONONCABLE_2,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 13 Jun 2008 20:56:16 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5DKuCqY020294 for ; Fri, 13 Jun 2008 13:56:13 -0700 Received: from mx10.gnu.org ([199.232.76.166]:38384) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1K7GHf-00048z-4c for emacs-pretest-bug@gnu.org; Fri, 13 Jun 2008 16:54:07 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1K7GJb-0002pj-GM for emacs-pretest-bug@gnu.org; Fri, 13 Jun 2008 16:56:11 -0400 Received: from mailout2-1.pacific.net.au ([61.8.2.224]:35186 helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K7GJa-0002pX-CN for emacs-pretest-bug@gnu.org; Fri, 13 Jun 2008 16:56:07 -0400 Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout2.pacific.net.au (Postfix) with ESMTP id 34DA4B2954 for ; Sat, 14 Jun 2008 06:56:05 +1000 (EST) Received: from blah.blah (ppp2564.dyn.pacific.net.au [61.8.37.100]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id C87FC8C07 for ; Sat, 14 Jun 2008 06:56:03 +1000 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1K7GJ4-0000g9-4c for emacs-pretest-bug@gnu.org; Sat, 14 Jun 2008 06:55:34 +1000 From: Kevin Ryde To: emacs-pretest-bug@gnu.org Subject: gpm server stop making emacs abort() Date: Sat, 14 Jun 2008 06:55:33 +1000 Message-ID: <87wsktf41m.fsf@blah.blah> User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) --=-=-= If running with (gpm-mouse-mode 1) and if you stop the gpm server, then emacs dies with Fatal error (6)Aborted Output from "bt full" below; xbacktrace printed nothing at all. The backtrace shows it at the abort() under the EBADF case in wait_reading_process_output(). I think when Gpm_GetEvent gets an eof from the server it closes gpm_fd; maybe that's the bad fd in question. In GNU Emacs 23.0.60.1 (i586-pc-linux-gnu, GTK+ Version 2.12.10) of 2008-06-13 on blah.blah configured using `configure 'CFLAGS=-O -g' '--prefix=/down/emacs/b/inst' '--with-x-toolkit=gtk'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_AU value of $XMODIFIERS: nil locale-coding-system: iso-latin-1-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: gpm-mouse-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t --=-=-= Content-Disposition: attachment; filename=bt.txt #0 0xb76728c1 in kill () from /lib/libc.so.6 No symbol table info available. #1 0x080fbd49 in abort () at /down/emacs/src/emacs.c:427 No locals. #2 0x0819559a in wait_reading_process_output (time_limit=30, microsecs=0, read_kbd=-1, do_display=1, wait_for_cell=137641241, wait_proc=0x0, just_wait_proc=0) at /down/emacs/src/process.c:4634 timeout_reduced_for_timers = 0 channel = 1 nfds = -1 Available = {fds_bits = {160, 0 }} Connecting = {fds_bits = {0 }} check_connect = 0 check_delay = 0 no_avail = 0 xerrno = 9 proc = 0 timeout = {tv_sec = 25, tv_usec = 696000} end_time = {tv_sec = 1213338499, tv_usec = 981053} wait_channel = -1 got_some_input = 1 #3 0x08056db5 in sit_for (timeout=240, reading=1, do_display=1) at /down/emacs/src/dispnew.c:6618 sec = 30 usec = 0 #4 0x08107775 in read_char (commandflag=1, nmaps=2, maps=0xbf9e9a60, prev_event=137641241, used_mouse_menu=0xbf9e9ae8, end_time=0x0) at /down/emacs/src/keyboard.c:2930 tem0 = delay_level = 4 buffer_size = c = 137641241 local_getcjmp = {{__jmpbuf = {137641241, 138142696, 146700176, -1080124904, 690995329, 887540718}, __mask_was_saved = 0, __saved_mask = {__val = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137667092, 1536, 3214842376, 135944962, 137667088, 0, 0, 0, 0, 0, 0, 0, 192, 4294967292, 137667088, 0, 137667088, 137667088, 3214842408, 135633649, 137667088, 192}}}} save_jump = {{__jmpbuf = {0, 0, 0, 0, 0, 0}, __mask_was_saved = 0, __saved_mask = {__val = {0 }}}} key_already_recorded = 0 tem = 146700176 save = previous_echo_area_message = 137641241 also_record = 137641241 reread = 0 polling_stopped_here = orig_kboard = (struct kboard *) 0x8be7790 #5 0x0810a47a in read_key_sequence (keybuf=0xbf9e9bc4, bufsize=30, prompt=137641241, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at /down/emacs/src/keyboard.c:9443 interrupted_kboard = (KBOARD *) 0x8be7790 key = 137706808 used_mouse_menu = 0 echo_local_start = 0 last_real_key_start = 0 keys_local_start = 0 local_first_binding = 0 from_string = 137641241 count = 2 t = 0 echo_start = 0 keys_start = 0 nmaps = 2 nmaps_allocated = 2 defs = (Lisp_Object * volatile) 0xbf9e9a40 submaps = (Lisp_Object * volatile) 0xbf9e9a60 orig_local_map = 147392757 orig_keymap = 137641241 localized_local_map = 0 first_binding = 0 first_unbound = 31 mock_input = 0 fkey = {parent = 137948733, map = 137948733, start = 0, end = 0} keytran = {parent = 137634685, map = 137634685, start = 0, end = 0} indec = {parent = 137948797, map = 137948797, start = 0, end = 0} shift_translated = 0 delayed_switch_frame = 137641241 original_uppercase = 137800728 original_uppercase_position = -1 starting_buffer = (struct buffer *) 0x834a210 fake_prefixed_keys = 137641241 #6 0x0810bff0 in command_loop_1 () at /down/emacs/src/keyboard.c:1651 cmd = lose = 137837243 nonundocount = 0 keybuf = {24, 56, 0 , -1080124376, -1080124528, 0, -1080164352, 137641241, 142934753, 138142696, 138142696, 138142712, -1080124344} i = 2 prev_modiff = 11 prev_buffer = (struct buffer *) 0x834a210 already_adjusted = 0 #7 0x0815edcb in internal_condition_case (bfun=0x810bd11 , handlers=137684385, hfun=0x8106559 ) at /down/emacs/src/eval.c:1511 val = c = {tag = 137641241, val = 137641241, next = 0xbf9e9d70, gcpro = 0x0, jmp = {{__jmpbuf = {138142696, 138142696, 138142712, -1080124104, 691576961, 1071307758}, __mask_was_saved = 0, __saved_mask = {__val = {1, 3214842728, 3077261132, 3078107488, 3086920636, 3214842752, 3078103028, 276967387, 3079470328, 8655230, 48, 3076832444, 3214843408, 3214843116, 3214843396, 3214843256, 135346508, 2, 3214843268, 3214843116, 0 }}}}, backlist = 0x0, handlerlist = 0x0, lisp_eval_depth = 0, pdlcount = 2, poll_suppress_count = 1, interrupt_input_blocked = 0, byte_stack = 0x0} h = {handler = 137684385, var = 137641241, chosen_clause = 0, tag = 0xbf9e9c70, next = 0x0} #8 0x08105aa2 in command_loop_2 () at /down/emacs/src/keyboard.c:1367 val = 0 #9 0x0815ee81 in internal_catch (tag=137680361, func=0x8105a7f , arg=137641241) at /down/emacs/src/eval.c:1247 c = {tag = 137680361, val = 137641241, next = 0x0, gcpro = 0x0, jmp = { {__jmpbuf = {138142696, 138142696, 138142712, -1080123848, 691716225, 1071442414}, __mask_was_saved = 0, __saved_mask = {__val = {0, 0, 0, 0, 0, 3077261489, 0, 0, 0, 0, 0, 0, 0, 0, 192, 3078107544, 1, 176, 22, 0, 137872602, 137869672, 137872600, 3214843432, 135602776, 137869673, 137872602, 137641241, 137667088, 137872602, 0, 137641265}}}}, backlist = 0x0, handlerlist = 0x0, lisp_eval_depth = 0, pdlcount = 2, poll_suppress_count = 1, interrupt_input_blocked = 0, byte_stack = 0x0} #10 0x081063d6 in command_loop () at /down/emacs/src/keyboard.c:1346 No locals. #11 0x081066eb in recursive_edit_1 () at /down/emacs/src/keyboard.c:955 val = #12 0x08106812 in Frecursive_edit () at /down/emacs/src/keyboard.c:1017 buffer = 137641241 #13 0x080fd61d in main (argc=2, argv=0xbf9ea244) at /down/emacs/src/emacs.c:1772 dummy = 48 stack_bottom_variable = 7 '\a' do_initial_setlocale = 1 skip_args = 0 rlim = {rlim_cur = 8388608, rlim_max = 18446744073709551615} no_loadup = 0 junk = 0x0 --=-=-=-- ------------=_1238171104-27274-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 407-done) by emacsbugs.donarmstrong.com; 27 Mar 2009 16:18:29 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: ** X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=2.5 required=4.0 tests=MURPHY_DRUGS_REL8,XIRONPORT autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2RGIPmv025830 for <407-done@emacsbugs.donarmstrong.com>; Fri, 27 Mar 2009 09:18:27 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvgEAI+ZzElFxIfy/2dsb2JhbACBUc9Eg3cGhHU X-IronPort-AV: E=Sophos;i="4.38,432,1233550800"; d="scan'208";a="35772291" Received: from 69-196-135-242.dsl.teksavvy.com (HELO pastel.home) ([69.196.135.242]) by ironport2-out.teksavvy.com with ESMTP; 27 Mar 2009 12:18:19 -0400 Received: by pastel.home (Postfix, from userid 20848) id 415248682; Fri, 27 Mar 2009 12:18:19 -0400 (EDT) From: Stefan Monnier To: 407-done@emacsbugs.donarmstrong.com Subject: gpm server stop making emacs abort() Message-ID: Date: Fri, 27 Mar 2009 12:18:19 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Thanks Kevin for your patch. I've tried it out and it seems to be fine, so I installed it (at long last). We're really relying too much on undocumented parts of the GPM API, tho. Stefan ------------=_1238171104-27274-0--