From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: valgrind warnings [Re: Emacs bzr memory footprint] Date: Sat, 29 Oct 2011 09:04:36 +0200 Message-ID: References: <87aa93wmc4.fsf@turtle.gmx.de> <87sjmnrdjw.fsf@spindle.srvr.nix> <87ty73mc0m.fsf@spindle.srvr.nix> <4EA19111.7060401@yandex.ru> <87vcrhfmww.fsf@uwakimon.sk.tsukuba.ac.jp> <87pqhpf1qo.fsf@uwakimon.sk.tsukuba.ac.jp> <87k47qaxvz.fsf@lifelogs.com> <83bot1bovw.fsf@gnu.org> <87y5w531eo.fsf@uwakimon.sk.tsukuba.ac.jp> <83zkgla1mg.fsf@gnu.org> <87vcr92z6x.fsf@uwakimon.sk.tsukuba.ac.jp> <83ty6t9zd0.fsf@gnu.org> <87wrbov52h.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319871896 25975 80.91.229.12 (29 Oct 2011 07:04:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 29 Oct 2011 07:04:56 +0000 (UTC) Cc: Dan Nicolaescu , Eli Zaretskii , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 29 09:04:52 2011 Return-path: Envelope-to: ged-emacs-devel@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 1RK2yJ-0007JM-TE for ged-emacs-devel@m.gmane.org; Sat, 29 Oct 2011 09:04:52 +0200 Original-Received: from localhost ([::1]:49937 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK2yJ-0002WD-A0 for ged-emacs-devel@m.gmane.org; Sat, 29 Oct 2011 03:04:51 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK2yG-0002W6-Vk for emacs-devel@gnu.org; Sat, 29 Oct 2011 03:04:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RK2yF-0002dm-OE for emacs-devel@gnu.org; Sat, 29 Oct 2011 03:04:48 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:50875) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK2y9-0002ch-DJ; Sat, 29 Oct 2011 03:04:41 -0400 Original-Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 09B98188B594; Sat, 29 Oct 2011 09:05:22 +0200 (CEST) X-Auth-Info: HOJyMoKzOjEwqCvNwN+VlRJICxDc2EhQgeaRB0UURNM= Original-Received: from linux.local (ppp-88-217-108-218.dynamic.mnet-online.de [88.217.108.218]) by mail.mnet-online.de (Postfix) with ESMTPA id A499F1C0014B; Sat, 29 Oct 2011 09:04:37 +0200 (CEST) Original-Received: by linux.local (Postfix, from userid 501) id 03CD51E532A; Sat, 29 Oct 2011 09:04:37 +0200 (CEST) X-Yow: .. does your DRESSING ROOM have enough ASPARAGUS? In-Reply-To: <87wrbov52h.fsf@gnu.org> (Chong Yidong's message of "Sat, 29 Oct 2011 11:40:06 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 212.18.0.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:145742 Archived-At: Chong Yidong writes: > Dan Nicolaescu writes: > >>> ==30382== Use of uninitialised value of size 8 >>> ==30382== at 0x5B7000: mark_object (alloc.c:5674) >>> ==30382== by 0x5B4C9B: mark_maybe_object (alloc.c:4152) >>> ==30382== by 0x5B4FE6: mark_memory (alloc.c:4274) >>> ==30382== by 0x5B507E: mark_stack (alloc.c:4532) >>> ==30382== by 0x5B5F48: Fgarbage_collect (alloc.c:5119) >>> ==30382== by 0x5D69F0: Ffuncall (eval.c:2911) >>> ==30382== by 0x5D64CA: call2 (eval.c:2758) >>> ==30382== by 0x5809AA: Finsert_file_contents (fileio.c:4144) >>> ==30382== by 0x5D6E00: Ffuncall (eval.c:2990) >>> ==30382== by 0x622C5B: exec_byte_code (bytecode.c:785) >>> ==30382== by 0x5D77BA: funcall_lambda (eval.c:3205) >>> ==30382== by 0x5D6F4C: Ffuncall (eval.c:3023) >> >> It would be interesting to know if the gc warnings are relevant... > > This is complaining about the plist member of struct Lisp_Overlay, but I > don't see how an uninitalized value could creep in there. Overlays are > only allocated in copy_overlays and Fmake_overlay, and in both places > the plist member appears to be assigned correctly. This is while scanning the stack, where it is apparently possible that this happens to look like a Lisp_Object, but isn't. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."