[ 
https://issues.apache.org/jira/browse/GEODE-5713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Blake Bender updated GEODE-5713:
--------------------------------
    Description: 
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}

  was:
On Linux, running Valgrind memcheck with the following simple app:

 

```

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();
}

```

leads to a complaint about use of an uninitialized value in this loop in 
ResourceInst::writeSample:

```

for (int32_t i = 0; i < numOfDescps; i++) {
...

}

```


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

Reply via email to