Alberto Bustamante Reyes created GEODE-8436:
-----------------------------------------------

             Summary: Several threads calling PdxInstanceFactory::create() 
causes seg fault
                 Key: GEODE-8436
                 URL: https://issues.apache.org/jira/browse/GEODE-8436
             Project: Geode
          Issue Type: Bug
          Components: native client
            Reporter: Alberto Bustamante Reyes
         Attachments: main.cpp

I have seen a problem when "PdxInstanceFactory::create()" is called by several 
threads that are registering the same new pdx type.

The core is produced here:

{code}
void PdxInstanceImpl::toDataMutable(PdxWriter& writer) {
   auto pt = getPdxType();
   std::vector<std::shared_ptr<PdxFieldType>>* pdxFieldList =
       pt->getPdxFieldTypes();
{code}

The problem is that "getPdxType()" returns nullptr, so in the next line, there 
is segmentation fault when calling "pt->getPdxFieldTypes()".

The issue can be reproduced using the attached client, and executing it using 8 
threads.





--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to