From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Crash on invalid cons_free_list Date: Tue, 13 Sep 2005 14:52:09 +0200 Message-ID: References: <87k6hl6o7h.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1126617689 12567 80.91.229.2 (13 Sep 2005 13:21:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Sep 2005 13:21:29 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 13 15:21:27 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EFAhK-0005hi-QR for ged-emacs-devel@m.gmane.org; Tue, 13 Sep 2005 15:19:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EFAhK-0006Yf-7O for ged-emacs-devel@m.gmane.org; Tue, 13 Sep 2005 09:19:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EFAgw-0006V7-Uz for emacs-devel@gnu.org; Tue, 13 Sep 2005 09:19:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EFAgu-0006UV-Hm for emacs-devel@gnu.org; Tue, 13 Sep 2005 09:19:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EFAXF-0003An-2R for emacs-devel@gnu.org; Tue, 13 Sep 2005 09:09:17 -0400 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EFAH1-0008Cp-Mz for emacs-devel@gnu.org; Tue, 13 Sep 2005 08:52:31 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepb.post.tele.dk (Postfix) with SMTP id 1FEE45EE089; Tue, 13 Sep 2005 14:52:25 +0200 (CEST) Original-To: Chong Yidong In-Reply-To: <87k6hl6o7h.fsf@stupidchicken.com> (Chong Yidong's message of "Tue, 13 Sep 2005 10:23:46 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:42881 Archived-At: Chong Yidong writes: > [I sent this to emacs-pretest-bug a few days ago, but it didn't seem > to arrive. I think my email system was flaking out at the time.] > > I installed VM to and played around with it trying to make the > string_free_list/compact_small_strings crash happen. I got a crash on > an invalid cons_free_list; dunno if that's related. It seems that most of the crashes triggered by VM are somehow related to mapcar -- and in this case a mapcar called inside mapatoms. Can you deduce what functions are run here, and see if they do something special, e.g. intern new symbols or something else which manipulates symbols, conses, or strings... > > Unfortunately, I have not been able to reproduce the crash. I'll keep > the gdb session up for the next day or so in case someone needs more > information. This Emacs was built about four days ago. > > > Program received signal SIGSEGV, Segmentation fault. > Fcons (car=137392193, cdr=137392193) at alloc.c:2696 > 2696 cons_free_list = *(struct Lisp_Cons **)&cons_free_list->cdr; > (gdb) p cons_free_list > $3 = (struct Lisp_Cons *) 0x41081b22 > (gdb) p cons_free_list->cdr > Cannot access memory at address 0x41081b26 > (gdb) xbacktrace > "mapcar" > "vm-mapc" > "vm-copy-local-variables" > "vm-do-needed-mode-line-update" > 0x897134c PVEC_COMPILED > "mapatoms" > "vm-update-summary-and-mode-line" > "vm-decode-mime-message" > "vm-show-current-message" > "vm-scroll-forward" > "call-interactively" > "recursive-edit" > "byte-code" > "debug" > "execute-extended-command" > "call-interactively" > (gdb) bt full > #0 Fcons (car=137392193, cdr=137392193) at alloc.c:2696 > val = 137392193 > #1 0x08134900 in Flist (nargs=1, args=0xbf983d80) at alloc.c:2784 > val = 143785469 > #2 0x08155930 in Fmapcar (function=143785469, sequence=143784269) > at fns.c:3208 > leni = 2 > args = (int *) 0xbf983d80 > ret = -1080541824 > sa_must_free = 0 > #3 0x0814bf66 in Ffuncall (nargs=3, args=0xbf983e34) at eval.c:2865 > fun = 137108664 > funcar = 137392193 > numargs = 2 > lisp_numargs = 137392193 > val = 137392193 > backtrace = { > next = 0xbf983f10, > function = 0xbf983e30, > args = 0xbf983e34, > nargs = 2, > evalargs = 0 '\0', > debug_on_exit = 0 '\0' > } > internal_args = (int *) 0xbf983e34 > i = 137392193 > > > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel > > -- Kim F. Storm http://www.cua.dk