View Issue Details

IDProjectCategoryView StatusLast Update
0029859Open CASCADEOCCT:Codingpublic2018-07-28 12:39
Reporterabv Assigned Tobugmaster  
PrioritynormalSeveritymajor 
Status closedResolutionfixed 
Product Version7.3.0 
Target Version7.4.0Fixed in Version7.4.0 
Summary0029859: Coding - GCC compiler warning -Warray-bounds in IntPatch_InterferencePolyhedron.cxx
Description
OCCT-ARCH463-64-opt-compile
IntPatch_InterferencePolyhedron.cxx:905, GNU C Compiler 4 (gcc), Priority: Normal
array subscript is above array bounds [-Warray-bounds]

This looks as real issue (even if not affecting anything): the cycle copies too many elements of array, so the last copy will be for uninitialized data (but still in the buffer, thus no actual out of bounds error).
Steps To ReproduceAsk INV to build on ARCH463-64 system
TagsNo tags attached.
Test case numberNot needed

Activities

git

2018-06-12 22:18

administrator   ~0076727

Branch CR29859 has been created by abv.

SHA-1: efde975a4747e55909d4b722cba7667be0587321


Detailed log of new commits:

Author: abv
Date: Tue Jun 12 22:18:34 2018 +0300

    0029859: Coding - GCC compiler warning -Warray-bounds in IntPatch_InterferencePolyhedron.cxx
    
    Code is corrected to avoid copying uninitialized element of the array

abv

2018-06-13 17:57

manager   ~0076749

Fix pushed to CR29859; tests passed in Jenkins job CR29859-master-abv; please review

msv

2018-06-13 19:10

developer   ~0076751

Reviewed.

bugmaster

2018-06-13 20:19

administrator   ~0076752

Combination -
OCCT branch : CR29859 SHA - efde975a4747e55909d4b722cba7667be0587321
Products branch : master SHA - 82570c1f4b0e27eb09789f573087eef089260f59
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Debian70-64:
OCCT
Total CPU difference: 16984.369999999824 / 17011.039999999866 [-0.16%]
Products
Total CPU difference: 7483.2400000000325 / 7441.7800000000125 [+0.56%]
Windows-64-VC10:
OCCT
Total CPU difference: 16783.41438529866 / 16821.806231398525 [-0.23%]
Products
Total CPU difference: 8264.043774299873 / 8237.071201399893 [+0.33%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention

bugmaster

2018-06-21 12:24

administrator   ~0076865

Last edited: 2018-06-21 12:49

Results of testing


++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Project : IR-WEEK35_IR-WEEK35-OCCT-ARCH463-64-opt-compile
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
gcc (GCC) 6.1.1 20160707

New warnings appears: 1
 
Type : GNU C Compiler 4 (gcc)
Category : Warning:array-bounds
File Name : /dn54/builds/IR-WEEK35_IR-WEEK35/ARCH463-64-opt/OCCT/src/IntPatch/IntPatch_InterferencePolyhedron.cxx
Line : 906
Message : array subscript is above array bounds [-Warray-bounds]

 
Fixed warnings: 1
 
Type : GNU C Compiler 4 (gcc)
Category : Warning:array-bounds
File Name : /dn54/builds/CR0-OCCT730_CR0-OCCT730/ARCH463-64-opt/OCCT/src/IntPatch/IntPatch_InterferencePolyhedron.cxx
Line : 905
Message : array subscript is above array bounds [-Warray-bounds]

++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Project : IR-WEEK35_IR-WEEK35-OCCT-CentOS73-64-opt-compile
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)

New warnings appears: 1
 
Type : GNU C Compiler 4 (gcc)
Category : Warning:array-bounds
File Name : /dn54/builds/IR-WEEK35_IR-WEEK35/CentOS73-64-opt/OCCT/src/IntPatch/IntPatch_InterferencePolyhedron.cxx
Line : 906
Message : array subscript is above array bounds [-Warray-bounds]

++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Project : IR-WEEK35_IR-WEEK35-OCCT-Debian80-64-opt-compile
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
gcc (Debian 4.9.2-10) 4.9.2

New warnings appears: 1
 
Type : GNU C Compiler 4 (gcc)
Category : Warning:array-bounds
File Name : /dn54/builds/IR-WEEK35_IR-WEEK35/Debian80-64-opt/OCCT/src/IntPatch/IntPatch_InterferencePolyhedron.cxx
Line : 906
Message : array subscript is above array bounds [-Warray-bounds]



++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Project : IR-WEEK35_IR-WEEK35-OCCT-F22-64-opt-compile
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
gcc (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6)

New warnings appears: 1
 
Type : GNU C Compiler 4 (gcc)
Category : Warning:array-bounds
File Name : /dn54/builds/IR-WEEK35_IR-WEEK35/F22-64-opt/OCCT/src/IntPatch/IntPatch_InterferencePolyhedron.cxx
Line : 906
Message : array subscript is above array bounds [-Warray-bounds]

++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Project : IR-WEEK35_IR-WEEK35-OCCT-Ubuntu-1604-64-opt-compile
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609

New warnings appears: 1
 
Type : GNU C Compiler 4 (gcc)
Category : Warning:array-bounds
File Name : /dn54/builds/IR-WEEK35_IR-WEEK35/Ubuntu-1604-64-opt/OCCT/src/IntPatch/IntPatch_InterferencePolyhedron.cxx
Line : 906
Message : array subscript is above array bounds [-Warray-bounds]

bugmaster

2018-06-29 10:25

administrator   ~0077111

This issue became critical because Debian80-64 will be based Linux OS on new jenkins-test-12

bugmaster

2018-06-29 10:41

administrator   ~0077112

The warning is reproduced on Debian90-64
+ gcc --version
gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516

git

2018-07-07 22:28

administrator   ~0077331

Branch CR29859_1 has been created by abv.

SHA-1: 1c9e00665a2e8e86ce3c9b49ff9847aada2ca1dd


Detailed log of new commits:

Author: abv
Date: Sat Jul 7 22:27:30 2018 +0300

    0029859: Coding - GCC compiler warning -Warray-bounds in IntPatch_InterferencePolyhedron.cxx

git

2018-07-07 22:31

administrator   ~0077332

Branch CR29859_1 has been updated forcibly by abv.

SHA-1: 7b8826675f9f5e7313fe06f978ae1d3ce20de242

abv

2018-07-07 22:35

manager   ~0077333

New fix (tweak) pushed to CR29859_1, please check warning on available platforms

bugmaster

2018-07-10 16:17

administrator   ~0077422

Taken to IR-WEEK38-JT12

bugmaster

2018-07-11 10:46

administrator   ~0077442

Warning was not removed on any of the corresponding platforms

git

2018-07-26 07:50

administrator   ~0078025

Branch CR29859_2 has been created by abv.

SHA-1: 5ebfb3b90ad4b7db88f9c9331b00f5e5104a2841


Detailed log of new commits:

Author: abv
Date: Thu Jul 26 07:48:56 2018 +0300

    0029859: Coding - GCC compiler warning -Warray-bounds in IntPatch_InterferencePolyhedron.cxx

abv

2018-07-26 07:51

manager   ~0078026

Please check branch CR29859_2; as for me, this fixes the issue for GCC 4.9.3

bugmaster

2018-07-26 14:26

administrator   ~0078037

Taken to IR/JT-WEEK30

bugmaster

2018-07-27 10:07

administrator   ~0078069

Tested on all Jenkins. Warning disappeared.

git

2018-07-28 12:38

administrator   ~0078132

Branch CR29859_2 has been deleted by inv.

SHA-1: 5ebfb3b90ad4b7db88f9c9331b00f5e5104a2841

git

2018-07-28 12:39

administrator   ~0078148

Branch CR29859_1 has been deleted by inv.

SHA-1: 7b8826675f9f5e7313fe06f978ae1d3ce20de242

git

2018-07-28 12:39

administrator   ~0078149

Branch CR29859 has been deleted by inv.

SHA-1: efde975a4747e55909d4b722cba7667be0587321

Related Changesets

occt: master a820bd4f

2018-06-12 19:18:34

abv


Committer: bugmaster Details Diff
0029859: Coding - GCC compiler warning -Warray-bounds in IntPatch_InterferencePolyhedron.cxx

Code is corrected to avoid copying uninitialized element of the array
Affected Issues
0029859
mod - src/IntPatch/IntPatch_InterferencePolyhedron.cxx Diff File

occt: master 9dc6c9b8

2018-07-26 04:48:56

abv


Committer: bugmaster Details Diff
0029859: Coding - GCC compiler warning -Warray-bounds in IntPatch_InterferencePolyhedron.cxx Affected Issues
0029859
mod - src/IntPatch/IntPatch_InterferencePolyhedron.cxx Diff File

Issue History

Date Modified Username Field Change
2018-06-12 22:14 abv New Issue
2018-06-12 22:14 abv Assigned To => abv
2018-06-12 22:18 git Note Added: 0076727
2018-06-13 17:57 abv Note Added: 0076749
2018-06-13 17:57 abv Assigned To abv => msv
2018-06-13 17:57 abv Status new => resolved
2018-06-13 17:57 abv Steps to Reproduce Updated
2018-06-13 19:10 msv Note Added: 0076751
2018-06-13 19:10 msv Assigned To msv => bugmaster
2018-06-13 19:10 msv Status resolved => reviewed
2018-06-13 20:19 bugmaster Test case number => Not needed
2018-06-13 20:19 bugmaster Note Added: 0076752
2018-06-13 20:19 bugmaster Status reviewed => tested
2018-06-14 18:20 bugmaster Changeset attached => occt master a820bd4f
2018-06-14 18:20 bugmaster Status tested => verified
2018-06-14 18:20 bugmaster Resolution open => fixed
2018-06-21 11:54 bugmaster Status verified => closed
2018-06-21 11:54 bugmaster Assigned To bugmaster => abv
2018-06-21 11:54 bugmaster Status closed => assigned
2018-06-21 12:24 bugmaster Note Added: 0076865
2018-06-21 12:49 bugmaster Note Edited: 0076865
2018-06-29 10:21 bugmaster Severity minor => major
2018-06-29 10:25 bugmaster Note Added: 0077111
2018-06-29 10:41 bugmaster Note Added: 0077112
2018-06-29 13:51 bugmaster Description Updated
2018-07-07 22:28 git Note Added: 0077331
2018-07-07 22:31 git Note Added: 0077332
2018-07-07 22:35 abv Note Added: 0077333
2018-07-07 22:35 abv Assigned To abv => kgv
2018-07-07 22:35 abv Status assigned => resolved
2018-07-07 23:02 abv Assigned To kgv => bugmaster
2018-07-10 16:17 bugmaster Note Added: 0077422
2018-07-11 10:46 bugmaster Note Added: 0077442
2018-07-11 10:46 bugmaster Status resolved => assigned
2018-07-24 14:58 bugmaster Assigned To bugmaster => abv
2018-07-26 07:50 git Note Added: 0078025
2018-07-26 07:51 abv Note Added: 0078026
2018-07-26 07:51 abv Assigned To abv => bugmaster
2018-07-26 07:51 abv Status assigned => feedback
2018-07-26 14:24 bugmaster Status feedback => reviewed
2018-07-26 14:26 bugmaster Note Added: 0078037
2018-07-27 10:07 bugmaster Note Added: 0078069
2018-07-27 10:07 bugmaster Status reviewed => tested
2018-07-28 12:26 bugmaster Changeset attached => occt master 9dc6c9b8
2018-07-28 12:26 bugmaster Status tested => verified
2018-07-28 12:38 git Note Added: 0078132
2018-07-28 12:39 git Note Added: 0078148
2018-07-28 12:39 git Note Added: 0078149