From schlather at math.uni-goettingen.de  Tue Dec 29 02:05:10 2009
From: schlather at math.uni-goettingen.de (schlather at math.uni-goettingen.de)
Date: Tue, 29 Dec 2009 02:05:10 +0100 (CET)
Subject: [Rd] different behaviour of NAs under valgrind (PR#14171)
Message-ID: <20091229010510.D84E9282EEFA@mail.pubhealth.ku.dk>

Full_Name: Martin Schlather
Version: 2.10.0
OS: linux
Submission from: (NULL) (91.3.220.231)


 
Bug summary:
    some functions behave differently for NAs when
    valgrind is used in R, e.g. sum and prod


Bug demonstration:
---  without  valgrind ----
>  sum(c(NA,1)[1])
[1] NA

---  with  valgrind ----
> sum(c(NA,1)[1])
[1] NaN


R call with valgrind:
R -d "valgrind --tool=memcheck --memcheck:leak-check=yes --num-callers=20 "

using
valgrind-3.3.0


platform = i686-pc-linux-gnu
 arch = i686
 os = linux-gnu
 system = i686, linux-gnu
 status =
 major = 2
 minor = 10.0
 year = 2009
 month = 10
 day = 26
 svn rev = 50208
 language = R
 version.string = R version 2.10.0 (2009-10-26)

Locale:
LC_CTYPE=en_GB.UTF-8;LC_NUMERIC=C;LC_TIME=en_GB.UTF-8;LC_COLLATE=en_GB.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_GB.UTF-8;LC_PAPER=en_GB.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_GB.UTF-8;LC_IDENTIFICATION=C

Search Path:
 .GlobalEnv, package:stats, package:graphics, package:grDevices, package:utils,
package:datasets, package:methods, Autoloads, package:base



[Rd] different behaviour of NAs under valgrind (PR#14171)
schlather at math.uni-goettingen.de