You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/09/12 15:58:00 UTC
[jira] [Commented] (GEODE-5713) Fix Valgrind complaint about use of
uninitialized value
[ https://issues.apache.org/jira/browse/GEODE-5713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16612392#comment-16612392 ]
ASF subversion and git services commented on GEODE-5713:
--------------------------------------------------------
Commit a38ce7a2eeafc4625a23bdb333b4a1ae97a200dd in geode-native's branch refs/heads/develop from [~bbender]
[ https://gitbox.apache.org/repos/asf?p=geode-native.git;h=a38ce7a ]
GEODE-5713: Fix valgrind uninitialized value (#348)
* WIP - replace use of member variable with local variable
* Remove unused member variable
Co-authored-by: Ivan Godwin <ig...@pivotal.io>
> Fix Valgrind complaint about use of uninitialized value
> -------------------------------------------------------
>
> Key: GEODE-5713
> URL: https://issues.apache.org/jira/browse/GEODE-5713
> Project: Geode
> Issue Type: Bug
> Components: native client
> Reporter: Blake Bender
> Priority: Major
> Labels: pull-request-available
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> On Linux, running Valgrind memcheck with the following simple app:
> {code:java}
> int main(int argc, const char* argv[]){
> std::string host = "localhost";
> int port = 10334;
> std::cout << "Connect to locator: " << host << "[" << port << "]\n";
> auto cacheFactory = CacheFactory();
> cacheFactory.set("log-level", "none");
> auto cache = cacheFactory.create();
> } {code}
>
> leads to a complaint about use of an uninitialized value in this loop in ResourceInst::writeSample:
> {code:java}
> for (int32_t i = 0; i < numOfDescps; i++) {
> ...
> }{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)