Skip to content

Conversation

@hjelmn
Copy link
Member

@hjelmn hjelmn commented Jun 1, 2015

CID 1269841 Out-of-bounds access (OVERRUN)

Correct issue. If the string being concatingated fills the remaining
buffer then a \0 is written past the end of the string. In practice
this should never happen but it should be fixed. I re-organized the
code a bit to clear this error.

Signed-off-by: Nathan Hjelm hjelmn@lanl.gov

CID 1269841 Out-of-bounds access (OVERRUN)

Correct issue. If the string being concatingated fills the remaining
buffer then a \0 is written past the end of the string. In practice
this should never happen but it should be fixed. I re-organized the
code a bit to clear this error.

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
@mellanox-github
Copy link

Refer to this link for build results (access rights to CI server needed):
http://bgate.mellanox.com/jenkins/job/gh-ompi-master-pr/577/

Build Log
last 50 lines

[...truncated 5100 lines...]
 /bin/mkdir -p '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys/amd64'
 /usr/bin/install -c -m 644  opal/sys/amd64/atomic.h opal/sys/amd64/timer.h '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys/amd64'
 /bin/mkdir -p '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal'
 /usr/bin/install -c -m 644  opal/version.h '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal'
 /bin/mkdir -p '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys'
 /usr/bin/install -c -m 644  opal/sys/architecture.h opal/sys/atomic.h opal/sys/atomic_impl.h opal/sys/timer.h opal/sys/cma.h '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys'
 /bin/mkdir -p '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys/sparcv9'
 /usr/bin/install -c -m 644  opal/sys/sparcv9/atomic.h opal/sys/sparcv9/timer.h '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys/sparcv9'
 /bin/mkdir -p '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys/alpha'
 /usr/bin/install -c -m 644  opal/sys/alpha/atomic.h '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys/alpha'
 /bin/mkdir -p '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys/ia64'
 /usr/bin/install -c -m 644  opal/sys/ia64/atomic.h opal/sys/ia64/timer.h '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys/ia64'
 /bin/mkdir -p '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys/osx'
 /usr/bin/install -c -m 644  opal/sys/osx/atomic.h '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys/osx'
 /bin/mkdir -p '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys/arm'
 /usr/bin/install -c -m 644  opal/sys/arm/atomic.h opal/sys/arm/timer.h '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys/arm'
 /bin/mkdir -p '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys/mips'
 /usr/bin/install -c -m 644  opal/sys/mips/atomic.h opal/sys/mips/timer.h '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys/mips'
 /usr/bin/install -c -m 644  opal_config_top.h opal_config_bottom.h opal_stdint.h '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/.'
 /bin/mkdir -p '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys/sync_builtin'
 /usr/bin/install -c -m 644  opal/sys/sync_builtin/atomic.h '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys/sync_builtin'
 /bin/mkdir -p '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys/powerpc'
 /usr/bin/install -c -m 644  opal/sys/powerpc/atomic.h opal/sys/powerpc/timer.h '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys/powerpc'
 /bin/mkdir -p '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys/ia32'
 /usr/bin/install -c -m 644  opal/sys/ia32/atomic.h opal/sys/ia32/timer.h '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal/sys/ia32'
 /bin/mkdir -p '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal'
 /usr/bin/install -c -m 644  opal/align.h opal/constants.h opal/opal_socket_errno.h opal/types.h opal/prefetch.h opal/hash_string.h opal/frameworks.h opal/opal_portable_platform.h '/var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/ompi_install1/include/openmpi/opal'
make[3]: Leaving directory `/scrap/jenkins/jenkins/jobs/gh-ompi-master-pr/workspace/opal/include'
make[2]: Leaving directory `/scrap/jenkins/jenkins/jobs/gh-ompi-master-pr/workspace/opal/include'
Making install in asm
make[2]: Entering directory `/scrap/jenkins/jenkins/jobs/gh-ompi-master-pr/workspace/opal/asm'
rm -f atomic-asm.S
  CC       asm.lo
ln -s "../../opal/asm/generated/atomic-local.s" atomic-asm.S
/bin/sh: ../../config/depcomp: No such file or directory
make[2]: *** [asm.lo] Error 127
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/scrap/jenkins/jenkins/jobs/gh-ompi-master-pr/workspace/opal/asm'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/scrap/jenkins/jenkins/jobs/gh-ompi-master-pr/workspace/opal'
make: *** [install-recursive] Error 1
Build step 'Execute shell' marked build as failure
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level /var/lib/jenkins/jobs/gh-ompi-master-pr/workspace/cov_build to /var/lib/jenkins/jobs/gh-ompi-master-pr/builds/577/htmlreports/Coverity_Report
Setting commit status on GitHub for https://github.com/open-mpi/ompi/commit/62c2ae0c504e0457830abf496243d73b51840b74
[BFA] Scanning build for known causes...
[BFA] No failure causes found
[BFA] Done. 0s
Setting status of 7e349977463bbc34858f20503afe231aa3afceb6 to FAILURE with url http://bgate.mellanox.com:8888/jenkins/job/gh-ompi-master-pr/577/ and message: Build finished.

Test FAILed.

CID 1301389 Resource leak (RESOURCE_LEAK)

There is no conceivable reason to strdup cr_argv[0] in either
location. Removed the calls to strdup.

CID 741357 Resource leak (RESOURCE_LEAK)

cr_argv was created by opal_argv_split (tmp_argv[0], ' '). Why should
we call opal_argv_join (' ') on this array. Leak fixed by printing out
tmp_argv[0] instead of calling opal_argv_join.

CID 741358 Resource leak (RESOURCE_LEAK)

The code does not handle exec failure correctly. The error should be
communicated to the parent process but the function in question is
only called by the parent. This calls into question some of the
structure of the function in general (like what is the point of
returning the child process id). That said, I will go ahead and add
the opal_argv_free to quiet this error.

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
@mellanox-github
Copy link

@mellanox-github
Copy link

Refer to this link for build results (access rights to CI server needed):
http://bgate.mellanox.com/jenkins/job/gh-ompi-master-pr/578/
Test PASSed.

hjelmn added a commit that referenced this pull request Jun 2, 2015
event/libevent2022: fix coverity issue
@hjelmn hjelmn merged commit 16abe2e into open-mpi:master Jun 2, 2015
jsquyres pushed a commit to jsquyres/ompi that referenced this pull request Nov 10, 2015
…olaris_nopci

pci: do not probe PCI topology on Solaris unless effective uid is root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants