From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Gaylard Newsgroups: gmane.lisp.guile.user Subject: Valgrind warnings with -1.8.6 Date: Mon, 6 Apr 2009 17:05:04 +0200 Message-ID: <9df6f3ea0904060805y450a8ec9gcd550b69728dc886@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1239167372 20698 80.91.229.12 (8 Apr 2009 05:09:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Apr 2009 05:09:32 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Apr 08 07:10:51 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LrQ3m-0003cZ-FT for guile-user@m.gmane.org; Wed, 08 Apr 2009 07:10:50 +0200 Original-Received: from localhost ([127.0.0.1]:54810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrQ2O-0002KG-6X for guile-user@m.gmane.org; Wed, 08 Apr 2009 01:09:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LqqNt-00078T-PQ for guile-user@gnu.org; Mon, 06 Apr 2009 11:05:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LqqNo-000772-Bt for guile-user@gnu.org; Mon, 06 Apr 2009 11:05:12 -0400 Original-Received: from [199.232.76.173] (port=39445 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LqqNn-00076n-Aa for guile-user@gnu.org; Mon, 06 Apr 2009 11:05:07 -0400 Original-Received: from mail-fx0-f166.google.com ([209.85.220.166]:50033) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LqqNm-0005VO-F9 for guile-user@gnu.org; Mon, 06 Apr 2009 11:05:06 -0400 Original-Received: by fxm10 with SMTP id 10so2170087fxm.42 for ; Mon, 06 Apr 2009 08:05:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Gc1wV51m1dLUm50gdosRGHBU3UjUlHE9cE9WMAwcMFw=; b=nHAGhkTpiwt43owHTdcDOoOHwlmEoh5J66xS7dYnS+RzpjXfmoKuJrlXjAOGlLG1KR FG91uzxRCED2wCKuesnBwtc1aB7iWG94GGqmbdz0DI74xy9F8GQh4XHtRw7O69cnIF/j usbn2+K03gB+jUytknsoBc8N4/k4J92/L1qOY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; b=jGzXkjmxD76lWfWE8f3EkefqoXWLq2Tzt2GLA/xidUpSJWrdG8I8YXLHPhSsjHXr6n 01WNsU9kIC4oRmhphX3nD0alKj9RjrdxXV6VkVBLNe2L9/HSNmxkqpeFDDJm0nJo3PHY YjA0fa3S6FUXB7yPAM01Y3crBZFrHOVouyI7Q= Original-Received: by 10.223.113.136 with SMTP id a8mr3808230faq.76.1239030304331; Mon, 06 Apr 2009 08:05:04 -0700 (PDT) X-Google-Sender-Auth: abe61fd8433d9d2d X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Wed, 08 Apr 2009 01:08:56 -0400 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7197 Archived-At: Hi, I'm linking with libguile on Linux, built from source, to extend my C application with Scheme. I'm seeing a lot of warnings from valgrind. The same warnings appear when using Guile standalone. Should I be worried? The following steps show the problem: Use this as hello-world.scm: #!/usr/local//bin/guile \ -e main -s !# (define (main args) (display "hello world") (newline)) ...And run it like this: $ valgrind --tool=memcheck --gen-suppressions=all --num-callers=30 --track-fds=yes --trace-children=yes --log-file=hello-world.vg --show-below-main=yes --leak-check=full --show-reachable=yes --leak-resolution=high ./hello-world.scm ...Now hello-world.vg shows 47 warnings relating to uninitialised values: $ grep '^==[0-9]*== [a-zA-Z]' ./hello-world.vg | awk '/FILE DESCRIPTORS/ { x=0 } x==1 {print} /My PID/ { x=1 }' | sort | uniq -c 33 ==12696== Conditional jump or move depends on uninitialised value(s) 14 ==12696== Use of uninitialised value of size 4 1 ==12696== Warning: bad signal number 0 in sigaction() Thanks, Andrew