[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: |
Mon, 6 Apr 2009 17:05:04 +0200 |
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
- Valgrind warnings with -1.8.6,
Andrew Gaylard <=
Re: Valgrind warnings with -1.8.6, Andrew Gaylard, 2009/04/30