From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: Crash calling md5 for a list of buffers Date: Tue, 20 Jan 2004 10:11:57 -0700 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <400D615D.4060304@yahoo.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1074618965 17735 80.91.224.253 (20 Jan 2004 17:16:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Jan 2004 17:16:05 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 20 18:15:54 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AizTl-0001xZ-01 for ; Tue, 20 Jan 2004 18:15:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AizQc-0007gW-AJ for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Jan 2004 12:12:38 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AizQZ-0007g7-Or for bug-gnu-emacs@prep.ai.mit.edu; Tue, 20 Jan 2004 12:12:35 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AizQ3-0007XU-R6 for bug-gnu-emacs@prep.ai.mit.edu; Tue, 20 Jan 2004 12:12:34 -0500 Original-Received: from [193.4.58.12] (helo=horus.isnic.is) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AizQ3-0007X1-9C for bug-gnu-emacs@prep.ai.mit.edu; Tue, 20 Jan 2004 12:12:03 -0500 Original-Received: from mail.fu-berlin.de (root@mail.fu-berlin.de [160.45.11.165]) by horus.isnic.is (8.12.9p2/8.12.9/isnic) with ESMTP id i0KHC0cs051909 for ; Tue, 20 Jan 2004 17:12:00 GMT (envelope-from ihs_4664@yahoo.com) Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Tue, 20 Jan 2004 18:12:00 +0100 (MET) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Tue, 20 Jan 2004 18:12:00 +0100 (MET) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 52 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: news.uni-berlin.de 1074618719 19104999 170.207.51.80 ([82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:6662 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:6662 Dmitry Antipov wrote: > Calling 'md5' can cause the crash with 'Fatal error (6).Aborted (core > dumped)'. > To reproduce, do: > 1. Run emacs with a lot of buffers (for example, go to the source directory > of some project and do 'emacs *.c'. > 2. Eval one of: > - (mapcar 'md5 (buffer-list)) or > - (mapcar '(lambda (b) (md5 b nil nil 'raw-text)) (buffer-list)) ... > --- > This bug is founded on Emacs 21.3 (GNU Emacs 21.3.1 (i686-pc-linux-gnu, > X toolkit, Xaw3d scroll bars)) > on custom RedHat 9.0-based system (kernel version 2.4.24, gcc version > 3.2.2, libc version 2.3.2-27.9.7 (comes > from RedHat package)). Compilation flags are default '-g -O2'. > I've also got exactly the same results with CVS shapshot (2004-01-20). I cannot reproduce that on GNU Emacs 21.3.1 (i386-pc-solaris2.7, X toolkit) of 2003-04-24 on briard. If I go to the emacs-21.3/src directory, start Emacs as `./emacs-21.3.1 -q --no-site-file *.c', then type `M-: (mapcar 'md5 (buffer-list)) RET', I get the following *Backtrace*: Debugger entered--Lisp error: (args-out-of-range 1 459097) find-coding-systems-region-internal(1 459097) find-coding-systems-region(1 459097) select-safe-coding-system(1 459097 undecided-unix) md5(#) mapcar(md5 (# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ...)) eval((mapcar (quote md5) (buffer-list))) eval-expression((mapcar (quote md5) (buffer-list)) nil) * call-interactively(eval-expression) -- Kevin Rodgers