View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0029859 | Open CASCADE | OCCT:Coding | public | 2018-06-12 22:14 | 2018-07-28 12:39 |
Reporter | Assigned To | bugmaster | |||
Priority | normal | Severity | major | ||
Status | closed | Resolution | fixed | ||
Product Version | 7.3.0 | ||||
Target Version | 7.4.0 | Fixed in Version | 7.4.0 | ||
Summary | 0029859: 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 Reproduce | Ask INV to build on ARCH463-64 system | ||||
Tags | No tags attached. | ||||
Test case number | Not needed | ||||
|
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 |
|
Fix pushed to CR29859; tests passed in Jenkins job CR29859-master-abv; please review |
|
Reviewed. |
|
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 |
|
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] |
|
This issue became critical because Debian80-64 will be based Linux OS on new jenkins-test-12 |
|
The warning is reproduced on Debian90-64 + gcc --version gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516 |
|
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 |
|
Branch CR29859_1 has been updated forcibly by abv. SHA-1: 7b8826675f9f5e7313fe06f978ae1d3ce20de242 |
|
New fix (tweak) pushed to CR29859_1, please check warning on available platforms |
|
Taken to IR-WEEK38-JT12 |
|
Warning was not removed on any of the corresponding platforms |
|
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 |
|
Please check branch CR29859_2; as for me, this fixes the issue for GCC 4.9.3 |
|
Taken to IR/JT-WEEK30 |
|
Tested on all Jenkins. Warning disappeared. |
|
Branch CR29859_2 has been deleted by inv. SHA-1: 5ebfb3b90ad4b7db88f9c9331b00f5e5104a2841 |
|
Branch CR29859_1 has been deleted by inv. SHA-1: 7b8826675f9f5e7313fe06f978ae1d3ce20de242 |
|
Branch CR29859 has been deleted by inv. SHA-1: efde975a4747e55909d4b722cba7667be0587321 |
occt: master a820bd4f 2018-06-12 19:18:34
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
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 |
Date Modified | Username | Field | Change |
---|---|---|---|
2018-06-12 22:14 |
|
New Issue | |
2018-06-12 22:14 |
|
Assigned To | => abv |
2018-06-12 22:18 | git | Note Added: 0076727 | |
2018-06-13 17:57 |
|
Note Added: 0076749 | |
2018-06-13 17:57 |
|
Assigned To | abv => msv |
2018-06-13 17:57 |
|
Status | new => resolved |
2018-06-13 17:57 |
|
Steps to Reproduce Updated | |
2018-06-13 19:10 |
|
Note Added: 0076751 | |
2018-06-13 19:10 |
|
Assigned To | msv => bugmaster |
2018-06-13 19:10 |
|
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 |
|
Note Added: 0077333 | |
2018-07-07 22:35 |
|
Assigned To | abv => kgv |
2018-07-07 22:35 |
|
Status | assigned => resolved |
2018-07-07 23:02 |
|
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 |
|
Note Added: 0078026 | |
2018-07-26 07:51 |
|
Assigned To | abv => bugmaster |
2018-07-26 07:51 |
|
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 |