We're updating the issue view to help you get more done. 

ocpirun SEGFAULT caused by null pointer

Description

I'm getting a SEGFAULT caused by util/property/src/ValueReader.cxx line 30 has a dereferenced null pointer (m.m_ordinal is zero):

1 m_v = sv[m.m_ordinal];

The last log message (-l 8) that gets printed out is "Loading RCC worker artifact ..."
Stack trace is as follows:

1 2 3 4 5 6 7 8 9 10 11 12 #0 0x000000000052a916 in OCPI::Util::ValueReader::nextItem (this=0x7fffffffcb50, m=..., seq=false) at ValueReader.cxx:30 #1 0x000000000052adf0 in OCPI::Util::ValueReader::readData (this=0x7fffffffcb50, m=..., p=..., nBytes=4, nElements=1, fake=false) at ValueReader.cxx:114 #2 0x000000000051363a in OCPI::Util::Member::read (this=0xd29a78, reader=..., data=@0x7fffffffcb90, length=@0x7fffffffcb88, fake=false) at OcpiUtilDataTypes.cxx:547 #3 0x0000000000513360 in OCPI::Util::Member::read (this=0xd290b8, reader=..., data=@0x7fffffffcb90, length=@0x7fffffffcb88, fake=false) at OcpiUtilDataTypes.cxx:516 #4 0x00000000004bba8e in OCPI::Container::Worker::setPropertyValue (this=0xd282e0, info=..., v=...) at ContainerWorker.cxx:147 #5 0x00000000004bcca1 in OCPI::Container::Worker::setProperty (this=0xd282e0, ordinal=8, value=...) at ContainerWorker.cxx:286 #6 0x00000000004b4221 in OCPI::Container::LocalLauncher::createWorker (this=0x998830, i=...) at ContainerLauncher.cxx:26 #7 0x00000000004b44cc in OCPI::Container::LocalLauncher::launch (this=0x998830, instances=std::vector of length 8, capacity 8 = {...}, connections=std::vector of length 3, capacity 3 = {...}) at ContainerLauncher.cxx:57 #8 0x000000000049fefc in OCPI::API::ApplicationI::initialize (this=0x7c7610) at OcpiApplication.cxx:722 #9 0x00000000004a12b4 in OCPI::API::Application::initialize (this=0x7fffffffcf40) at OcpiApplication.cxx:920 #10 0x000000000049a60b in main (argv=0x7fffffffd108) at ocpirun_main.cxx:274

Environment

RHEL 6.7
OpenCPI git commit 9de297ccfc8ece6382911bc85663f6dc338b9e3d

Status

Assignee

Unassigned

Reporter

Davis Hoover

Components

Priority

Minor