Skip to content

Conversation

@hjelmn
Copy link
Member

@hjelmn hjelmn commented May 28, 2015

CID 1301390 Dereference before null check (REVERSE_INULL)

endpoint can not be NULL here. Remove NULL check.

CID 1269836 Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN)
CID 1301388 Bad bit shift operation (BAD_SHIFT)

Add ull to integer constants to ensure the math is done in 64-bits not
32.

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/570/
Test PASSed.

CID 1301390 Dereference before null check (REVERSE_INULL)

endpoint can not be NULL here. Remove NULL check.

CID 1269836 Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN)
CID 1301388 Bad bit shift operation (BAD_SHIFT)

Add ull to integer constants to ensure the math is done in 64-bits not
32.

CID 715749 Explicit null dereferenced (FORWARD_NULL)

As far as I can tell this parser function does not accept a line that
does match key = value. If that is the case then value should never be
NULL. If it is it is a parse error. Updated the code to reflect
this. Also modified the intify function to do something more sane
(strtol vs atoi with hex detection).

CID 1269820 Dereference null return value (NULL_RETURNS)

This is a false positive as strchr will never return NULL here. It
makes sense, though, to quiet the warning by changing the do {} while
() loop to a while () loop.

CID 1269780 Dereference after null check (FORWARD_NULL)

Just return an error if the endpoint's cpc data is NULL.

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/571/
Test PASSed.

@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/572/

Build Log
last 50 lines

[...truncated 31986 lines...]
Time     Compute time    Comm time
222.98   216.42      6.56 
222.98   218.57      4.41 
222.98   216.89      6.08 
222.98   217.15      5.83 
+ '[' no == yes ']'
++ ompi_info --param pml all --level 9
++ grep yalla
++ wc -l
+ local val=4
++ ibstat -l
+ for hca_dev in '$(ibstat -l)'
+ '[' -f /var/lib/jenkins/jobs/gh-ompi-master-pr/workspace-2/ompi_install1/thread_tests/thread-tests-1.1/overlap ']'
+ local hca=mlx4_0:1
+ mca='-bind-to core -mca btl_openib_if_include mlx4_0:1 -x MXM_RDMA_PORTS=mlx4_0:1'
+ echo 'Running /var/lib/jenkins/jobs/gh-ompi-master-pr/workspace-2/ompi_install1/thread_tests/thread-tests-1.1/overlap 8'
Running /var/lib/jenkins/jobs/gh-ompi-master-pr/workspace-2/ompi_install1/thread_tests/thread-tests-1.1/overlap 8
+ '[' no == yes ']'
+ timeout -s SIGKILL 10m mpirun -np 4 -bind-to core -mca btl_openib_if_include mlx4_0:1 -x MXM_RDMA_PORTS=mlx4_0:1 -mca pml cm -mca mtl mxm /var/lib/jenkins/jobs/gh-ompi-master-pr/workspace-2/ompi_install1/thread_tests/thread-tests-1.1/overlap 8
opal_mutex_unlock: Operation not permitted
[jenkins01:21080] *** Process received signal ***
[jenkins01:21080] Signal: Aborted (6)
[jenkins01:21080] Signal code:  (-6)
[jenkins01:21080] [ 0] /lib64/libpthread.so.0[0x3d6980f710]
[jenkins01:21080] [ 1] /lib64/libc.so.6(gsignal+0x35)[0x3d69032925]
[jenkins01:21080] [ 2] /lib64/libc.so.6(abort+0x175)[0x3d69034105]
[jenkins01:21080] [ 3] /var/lib/jenkins/jobs/gh-ompi-master-pr/workspace-2/ompi_install1/lib/libopen-pal.so.0(+0x462c0)[0x7ffff744c2c0]
[jenkins01:21080] [ 4] /var/lib/jenkins/jobs/gh-ompi-master-pr/workspace-2/ompi_install1/lib/libopen-pal.so.0(+0x46394)[0x7ffff744c394]
[jenkins01:21080] [ 5] /var/lib/jenkins/jobs/gh-ompi-master-pr/workspace-2/ompi_install1/lib/libopen-pal.so.0(opal_dss_unpack_buffer+0xc8)[0x7ffff744c74e]
[jenkins01:21080] [ 6] /var/lib/jenkins/jobs/gh-ompi-master-pr/workspace-2/ompi_install1/lib/libopen-pal.so.0(opal_dss_unpack+0x1a0)[0x7ffff744c663]
[jenkins01:21080] [ 7] /var/lib/jenkins/jobs/gh-ompi-master-pr/workspace-2/ompi_install1/lib/libopen-pal.so.0(opal_sec_base_validate+0x402)[0x7ffff74eec4d]
[jenkins01:21080] [ 8] /var/lib/jenkins/jobs/gh-ompi-master-pr/workspace-2/ompi_install1/lib/openmpi/mca_oob_usock.so(mca_oob_usock_peer_recv_connect_ack+0xab0)[0x7ffff43ae22b]
[jenkins01:21080] [ 9] /var/lib/jenkins/jobs/gh-ompi-master-pr/workspace-2/ompi_install1/lib/openmpi/mca_oob_usock.so(mca_oob_usock_recv_handler+0xc4)[0x7ffff43b2833]
[jenkins01:21080] [10] /var/lib/jenkins/jobs/gh-ompi-master-pr/workspace-2/ompi_install1/lib/libopen-pal.so.0(opal_libevent2022_event_base_loop+0x805)[0x7ffff74a10d5]
[jenkins01:21080] [11] /var/lib/jenkins/jobs/gh-ompi-master-pr/workspace-2/ompi_install1/lib/libopen-pal.so.0(+0x3bd67)[0x7ffff7441d67]
[jenkins01:21080] [12] /lib64/libpthread.so.0[0x3d698079d1]
[jenkins01:21080] [13] /lib64/libc.so.6(clone+0x6d)[0x3d690e8b6d]
[jenkins01:21080] *** End of error message ***
--------------------------------------------------------------------------
mpirun noticed that process rank 0 with PID 0 on node jenkins01 exited on signal 13 (Broken pipe).
--------------------------------------------------------------------------
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-2/cov_build to /var/lib/jenkins/jobs/gh-ompi-master-pr/builds/572/htmlreports/Coverity_Report
Setting commit status on GitHub for https://github.com/open-mpi/ompi/commit/05baa7815943eab1cf97d318e1b124616c476f3b
[BFA] Scanning build for known causes...
[BFA] No failure causes found
[BFA] Done. 0s
Setting status of b038eb64348f2500e7e0ad9c3aa6e310e41cfe2e to FAILURE with url http://bgate.mellanox.com:8888/jenkins/job/gh-ompi-master-pr/572/ and message: Build finished.

Test FAILed.

@hjelmn
Copy link
Member Author

hjelmn commented May 28, 2015

Weird. This pull request does not change anything in the mxm path.

@hjelmn
Copy link
Member Author

hjelmn commented May 28, 2015

bot:retest

@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/573/
Test PASSed.

hjelmn added a commit that referenced this pull request May 28, 2015
btl/openib: more coverity fixes
@hjelmn hjelmn merged commit 0d763ea into open-mpi:master May 28, 2015
jsquyres added a commit to jsquyres/ompi that referenced this pull request Nov 10, 2015
…igure-fix

fortran ignore TKR: update for strange Intel 2016 compiler suite behavior
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