[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Valgrind warnings with -1.8.6

From: Andrew Gaylard
Subject: Valgrind warnings with -1.8.6
Date: Tue, 7 Apr 2009 12:40:17 +0200


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")

...And run it like this:

$ valgrind --tool=memcheck --gen-suppressions=all --num-callers=30
--track-fds=yes --trace-children=yes
--show-below-main=yes --leak-check=full --show-reachable=yes
--leak-resolution=high ./hello-world.scm

...Now shows 47 warnings relating to uninitialised values:

$ grep '^==[0-9]*== [a-zA-Z]' ./ | 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()


reply via email to

[Prev in Thread] Current Thread [Next in Thread]