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#1650: marked as done (23.0.60; raw-text-dos memory corruption) Date: Sat, 02 May 2009 13:50:26 +0000 Message-ID: References: <878wlfaa2k.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1241272226-5981-0" X-Trace: ger.gmane.org 1241272369 20087 80.91.229.12 (2 May 2009 13:52:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 May 2009 13:52:49 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 02 15:52:39 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 1M0Fdt-0005Iu-Dk for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 May 2009 15:52:38 +0200 Original-Received: from localhost ([127.0.0.1]:58369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0Fds-00033i-RK for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 May 2009 09:52:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M0FdK-0002wg-8H for bug-gnu-emacs@gnu.org; Sat, 02 May 2009 09:52:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M0FdF-0002vy-5g for bug-gnu-emacs@gnu.org; Sat, 02 May 2009 09:52:01 -0400 Original-Received: from [199.232.76.173] (port=39275 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0FdE-0002vm-Tu for bug-gnu-emacs@gnu.org; Sat, 02 May 2009 09:51:56 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50176) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M0FdE-0003Iq-28 for bug-gnu-emacs@gnu.org; Sat, 02 May 2009 09:51:56 -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 n42DpqVa006658; Sat, 2 May 2009 06:51:54 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n42DoQUq005984; Sat, 2 May 2009 06:50:26 -0700 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 1650 X-Emacs-PR-Package: emacs 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:27609 Archived-At: This is a multi-part message in MIME format... ------------=_1241272226-5981-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Sat, 02 May 2009 09:49:55 -0400 with message-id <878wlfaa2k.fsf@cyd.mit.edu> and subject line Re: bug#1650: 23.0.60; raw-text-dos memory corruption has caused the Emacs bug report #1650, regarding 23.0.60; raw-text-dos memory corruption 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 1650: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D1650 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1241272226-5981-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 20 Dec 2008 15:56:06 +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=1.0 required=4.0 tests=IMPRONONCABLE_2 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 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 mBKFu2o1025320 for ; Sat, 20 Dec 2008 07:56:04 -0800 Received: from mx10.gnu.org ([199.232.76.166]:50625) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LE4Aa-0001YL-0g for emacs-pretest-bug@gnu.org; Sat, 20 Dec 2008 10:55:12 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LE4BK-0007Vn-Is for emacs-pretest-bug@gnu.org; Sat, 20 Dec 2008 10:56:00 -0500 Received: from atum.ita.chalmers.se ([129.16.4.148]:40553) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LE4BK-0007VZ-4g for emacs-pretest-bug@gnu.org; Sat, 20 Dec 2008 10:55:58 -0500 Received: from remote1.student.chalmers.se (remote1.student.chalmers.se [129.16.29.79]) by atum.ita.chalmers.se (Postfix) with ESMTP id 99B2187D8 for ; Sat, 20 Dec 2008 16:55:55 +0100 (CET) Received: by remote1.student.chalmers.se (Postfix, from userid 61540) id 5FB1E9C060; Sat, 20 Dec 2008 16:55:55 +0100 (CET) From: bojohan+mail@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) To: emacs-pretest-bug@gnu.org Subject: 23.0.60; raw-text-dos memory corruption Date: Sat, 20 Dec 2008 16:55:54 +0100 Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) GNU Emacs 23.0.60.12 (x86_64-unknown-linux-gnu, GTK+ Version 2.14.4) of 2008-12-20 emacs -Q ;; dictd is running on port 2628 (let* ((coding-system-for-read 'raw-text-dos) (coding-system-for-write 'raw-text-dos) (proc (open-network-stream "foo" "foo" "localhost" 2628))) ;; The crash goes away if the next line is uncommented ;; (sit-for .1) (process-send-string proc "define * \"vice\"\r\n")) => Crash (backtrace below) I can reproduce the crash on Emacs versions after 2008-03-25, whereas I don't see the problem on versions before 2008-03-02. Intermediate versions don't crash, but instead hang and consume all memory. 2008-03-25 Stefan Monnier [...] * process.h (struct Lisp_Process): Remove filter_multibyte. * process.c (QCfilter_multibyte): Remove. (setup_process_coding_systems): Don't use filter_multibyte. (Fstart_process, Fmake_network_process): Don't set filter_multibyte. (read_process_output): Don't adjust multibyteness to filter_multibyte. (Fset_process_filter_multibyte): Change the coding-system to approximate the previous behavior. (Fprocess_filter_multibyte_p): Get the multibyteness straight from the coding-system. * coding.c (decode_coding_object): When not decoding into a buffer, obey the coding system's preference of (uni|multi)byte. 2008-03-02 Kenichi Handa * coding.c (decode_coding_utf_8): When eol-type of CODING is `dos', don't decode '\r' if that is the last in the source. (decode_coding_utf_16, decode_coding_emacs_mule) (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) (decode_coding_raw_text, decode_coding_charset): Likewise. (produce_chars): Don't decode EOL here. Use EMACS_INT. *** glibc detected *** /home/bojohan/vc/emacs/src/emacs: malloc(): memory corruption: 0x00000000022f83e0 *** ======= Backtrace: ========= /lib/libc.so.6[0x7f4f73ed2cff] /lib/libc.so.6(__libc_malloc+0x98)[0x7f4f73ed4538] /home/bojohan/vc/emacs/src/emacs[0x5497ce] [...] Program received signal SIGABRT, Aborted. [Switching to Thread 0x7f4f78df7770 (LWP 7357)] 0x00007f4f73e88fd5 in raise () from /lib/libc.so.6 (gdb) bt #0 0x00007f4f73e88fd5 in raise () from /lib/libc.so.6 #1 0x00007f4f73e8ab43 in abort () from /lib/libc.so.6 #2 0x00007f4f73ec9fa8 in ?? () from /lib/libc.so.6 #3 0x00007f4f73ed2cff in ?? () from /lib/libc.so.6 #4 0x00007f4f73ed4538 in malloc () from /lib/libc.so.6 #5 0x00000000005497ce in lisp_malloc (nbytes=7357, type=7357) at alloc.c:861 #6 0x000000000054a09a in allocate_string_data (s=0xdc7510, nchars=8136, nbytes=8136) at alloc.c:1991 #7 0x000000000054ab90 in make_uninit_multibyte_string (nchars=8136, nbytes=8136) at alloc.c:2508 #8 0x000000000054ac87 in make_uninit_string (length=7357) at alloc.c:2486 #9 0x00000000005587fd in make_buffer_string_both (start=1, start_byte=1, end=8137, end_byte=, props=1) at editfns.c:2420 #10 0x0000000000481c35 in decode_coding_object (coding=0xab4800, src_object=11030241, from=0, from_byte=0, to=, to_byte=, dst_object=11030337) at coding.c:7307 #11 0x000000000059bc8e in read_process_output (proc=16927316, channel=153) at process.c:5409 #12 0x000000000059f4f1 in wait_reading_process_output (time_limit=30, microsecs=0, read_kbd=-1, do_display=1, wait_for_cell=11030241, wait_proc=0x0, just_wait_proc=0) at process.c:4987 #13 0x0000000000415645 in sit_for (timeout=240, reading=1, do_display=1) at dispnew.c:6637 #14 0x00000000004f9f75 in read_char (commandflag=1, nmaps=2, maps=0x7fff80e2ecc0, prev_event=11030241, used_mouse_menu=0x7fff80e2edd4, end_time=0x0) at keyboard.c:2892 #15 0x00000000004fb8dd in read_key_sequence (keybuf=0x7fff80e2ee60, bufsize=30, prompt=11030241, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9343 #16 0x00000000004fd73a in command_loop_1 () at keyboard.c:1621 #17 0x00000000005608cf in internal_condition_case ( bfun=0x4fd520 , handlers=11117457, hfun=0x4f5dd0 ) at eval.c:1511 #18 0x00000000004f524e in command_loop_2 () at keyboard.c:1338 #19 0x00000000005609e7 in internal_catch (tag=, func=0x4f5230 , arg=11030241) at eval.c:1247 #20 0x00000000004f5c10 in command_loop () at keyboard.c:1317 #21 0x00000000004f601c in recursive_edit_1 () at keyboard.c:942 #22 0x00000000004f6194 in Frecursive_edit () at keyboard.c:1004 #23 0x00000000004eb057 in main (argc=2, argv=0x7fff80e2f678) at emacs.c:1786 ------------=_1241272226-5981-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 1650-done) by emacsbugs.donarmstrong.com; 2 May 2009 13:49:54 +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=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n42Dno4x005321 for <1650-done@emacsbugs.donarmstrong.com>; Sat, 2 May 2009 06:49:52 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 204DA57E22A; Sat, 2 May 2009 09:49:56 -0400 (EDT) From: Chong Yidong To: Andreas Schwab Cc: bojohan+mail@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=), 1650-done@emacsbugs.donarmstrong.com, emacs-devel@gnu.org Subject: Re: bug#1650: 23.0.60; raw-text-dos memory corruption References: <8763gk1faq.fsf__37800.6502557129$1241227937$gmane$org@cyd.mit.edu> Date: Sat, 02 May 2009 09:49:55 -0400 In-Reply-To: (Andreas Schwab's message of "Sat, 02 May 2009 13:34:17 +0200") Message-ID: <878wlfaa2k.fsf@cyd.mit.edu> 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 Andreas Schwab writes: > I've checked in a fix. Thanks. ------------=_1241272226-5981-0--