From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: valgrind warnings Date: Fri, 04 Nov 2011 08:50:10 -0700 Organization: UCLA Computer Science Department Message-ID: <4EB409B2.9040108@cs.ucla.edu> References: <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; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1320421826 6788 80.91.229.12 (4 Nov 2011 15:50:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 Nov 2011 15:50:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 04 16:50:21 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 1RMM26-0003ZW-Kl for ged-emacs-devel@m.gmane.org; Fri, 04 Nov 2011 16:50:18 +0100 Original-Received: from localhost ([::1]:54336 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMM25-0007KW-DK for ged-emacs-devel@m.gmane.org; Fri, 04 Nov 2011 11:50:17 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMM23-0007KG-B7 for emacs-devel@gnu.org; Fri, 04 Nov 2011 11:50:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RMM22-0008SN-DO for emacs-devel@gnu.org; Fri, 04 Nov 2011 11:50:15 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:33517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMM1z-0008S5-J0; Fri, 04 Nov 2011 11:50:11 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 3F17CA60005; Fri, 4 Nov 2011 08:50:10 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CgdSmTUF-DA4; Fri, 4 Nov 2011 08:50:09 -0700 (PDT) Original-Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id BEDEFA60003; Fri, 4 Nov 2011 08:50:09 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 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:145872 Archived-At: On 11/04/11 05:51, Dan Nicolaescu wrote: > What should we do about this? There's nothing wrong with the code; this is a false alarm of valgrind, which is inherent to the way a conservative garbage collector works. One way to work around this valgrind issue is to supply a suppression file, e.g., put something like the following into a new file emacs/src/valgrind.supp: { Conservative garbage collection Cond Memcheck:Cond ... fun:mark_maybe_* } { Conservative garbage collection Value8 Memcheck:Value8 ... fun:mark_maybe_* } (this is just an indication of what it would look like; more is needed). The goal is to suppress false positives while minimizing false negatives.