View Issue Details

IDProjectCategoryView StatusLast Update
0025630Open CASCADEOCCT:Foundation Classespublic2015-10-16 16:47
ReporteraznAssigned Tobugmaster  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version6.7.0 
Target Version6.9.0Fixed in Version6.9.0 
Summary0025630: Possible memory leaks in BRepGProp_Vinert and BRepGProp_Sinert
DescriptionUseless HMath_Vector class is contained in the source code of these classes. Later using of this class leads to memory leaks.
Steps To ReproduceNot applicable
TagsNo tags attached.
Test case numberNot needed

Activities

abv

2014-12-25 09:48

manager   ~0035700

Please eliminate all static data in these sources

git

2015-01-20 08:40

administrator   ~0036230

Branch CR25630 has been created by azn.

SHA-1: 9fa0b3d6daf85646272a01d5f8a18b4d79515033


Detailed log of new commits:

Author: azn
Date: Fri Dec 26 12:53:30 2014 +0300

    25630: Possible memory leaks in BRepGProp_Vinert and BRepGProp_Sinert
    
    Code refactoring of BRepGProp_Sinert and BRepGProp_Vinert classes.
    - All static variables have been removed.
    - Common functionality has beem moved from BRepGProp_Sinert and BRepGProp_Vinert classes to the new BRepGProp_Gauss class.

git

2015-01-21 10:26

administrator   ~0036293

Branch CR25630 has been updated forcibly by azn.

SHA-1: 42defe7696b9685af607c057d5eff608daeedf91

azn

2015-01-21 10:28

developer   ~0036294

Please review.

msv

2015-01-21 18:13

developer   ~0036345

BRepGProp_Gauss.hxx:
Spell check errors:
    //! Mass of the current system (without desity).

    //! May corresponds to: length, area, volume.
desity => density
corresponds => correspond

  //! Describes a types of the geometric objects.
=>
  //! Describes types of geometric objects.

The overloaded methods Compute contain the same (copy-paste) description, however they all have different set of arguments. The description should reflect the meaning of arguments in order to know difference between methods from the description.

Two of Compute methods return a double value, but the description does not tell that the returned value is Error of calculation.

git

2015-01-22 09:29

administrator   ~0036356

Branch CR25630 has been updated by azn.

SHA-1: 4975024c23d1c73fdfde046aeb09c80e98585019


Detailed log of new commits:

Author: azn
Date: Thu Jan 22 09:29:10 2015 +0300

    25630: Possible memory leaks in BRepGProp_Vinert and BRepGProp_Sinert
    
    Slight changes in the comments.

azn

2015-01-22 09:33

developer   ~0036357

Dear msv,
Please check updated branch CR25630.

msv

2015-01-22 10:33

developer   ~0036362

Reviewed.

apn

2015-01-29 12:44

administrator   ~0036803

Dear BugMaster,
Branch CR25630 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms.
SHA-1: 4975024c23d1c73fdfde046aeb09c80e98585019

Compilation error on Linux:
../../../../inc/BRepGProp_Gauss.hxx:215: error: extra qualification ‘BRepGProp_Gauss::’ on member ‘computeSInertiaOfElementaryPart’
http://jenkins-test-04.nnov.opencascade.com/user/mnt/my-views/view/CR25630/job/mnt-CR25630-master_build_occt_linux/1/parsed_console/

Compilation error on MacOS:
In file included from /Users/mnt/tools/WOK671/wok_entities/LOC/dev/CR25630-master-occt/src/BRepGProp/BRepGProp_Gauss.cxx:20:
/Users/mnt/tools/WOK671/wok_entities/LOC/dev/CR25630-master-occt/inc/BRepGProp_Gauss.hxx:215:25: error: extra qualification on member 'computeSInertiaOfElementaryPart'
http://jenkins-test-04.nnov.opencascade.com/user/mnt/my-views/view/CR25630/job/mnt-CR25630-master_prepare_build_occt_MacOS/1/parsed_console/

git

2015-01-29 14:03

administrator   ~0036817

Branch CR25630 has been updated by azn.

SHA-1: b2b902e73dca0d71eb20f813cdb1c9a913edd534


Detailed log of new commits:

Author: azn
Date: Thu Jan 29 14:01:42 2015 +0300

    25630: Possible memory leaks in BRepGProp_Vinert and BRepGProp_Sinert
    
    Fix compilation error.

git

2015-01-29 14:08

administrator   ~0036818

Branch CR25630 has been updated forcibly by azn.

SHA-1: 49d2656d169d01d8d6ddd6427cdea632feaf3555

msv

2015-01-29 14:44

developer   ~0036824

Reviewed.

apn

2015-02-02 13:03

administrator   ~0036954

Dear BugMaster,
Branch CR25630 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested in Release mode.
SHA-1: 49d2656d169d01d8d6ddd6427cdea632feaf3555

Number of compiler warnings:

occt component :
Linux: 23 (18 on master)
BRepGProp_Gauss.hxx:32, GNU C Compiler 4 (gcc), Priority: Normal
‘Standard_Real BRepGProp_Gauss::Inertia::Mass’
BRepGProp_Gauss.hxx:44, GNU C Compiler 4 (gcc), Priority: Normal
‘Standard_Real BRepGProp_Gauss::Inertia::Ixz’
BRepGProp_Gauss.hxx:44, GNU C Compiler 4 (gcc), Priority: Normal
‘BRepGProp_Gauss::Inertia::Ixz’ will be initialized after
BRepGProp_Gauss.hxx:45, GNU C Compiler 4 (gcc), Priority: Normal
‘BRepGProp_Gauss::Inertia::Iyz’ will be initialized after

BRepGProp_Gauss.cxx:130, GNU C Compiler 4 (gcc), Priority: Normal
when initialized here

Windows: 2 (0 on master)
BRepGProp_Gauss.cxx:964, MSBuild, Priority: Normal
conditional expression is constant
BRepGProp_Gauss.cxx:1015, MSBuild, Priority: Normal
conditional expression is constant

products component :
Linux: 11 (11 on master)
Windows: 1 (1 on master)

Regressions/Differences:
bugs modalg_2 bug5157_1 bug5157_2
bugs modalg_3 bug6063 bug6063_1
bugs xde bug22898
http://occt-tests/CR25630-master-occt/Debian60-64/summary.html
http://occt-tests/CR25630-master-occt/Windows-32-VC10/summary.html

Testing cases:
Not needed

Testing on Linux:
Total MEMORY difference: 369092000 / 369837000
Total CPU difference: 52881.88999999973 / 51428.1600000002

Testing on Windows:
Total MEMORY difference: 274953168 / 275567048
Total CPU difference: 38396.8125 / 37797.921875

There are not differences in images found by testdiff.

git

2015-03-11 15:45

administrator   ~0038266

Branch CR25630 has been updated forcibly by azn.

SHA-1: 3116adfa044189bbe5daf9a5d1c07eacc16c0fba

azn

2015-03-11 15:48

developer   ~0038267

Please review new changes in CR25630 brunch.

msv

2015-03-11 17:51

developer   ~0038279

The warnings

Windows: 2 (0 on master)
BRepGProp_Gauss.cxx:964, MSBuild, Priority: Normal
conditional expression is constant
BRepGProp_Gauss.cxx:1015, MSBuild, Priority: Normal
conditional expression is constant

are not addressed by this fix.

git

2015-03-12 13:21

administrator   ~0038294

Branch CR25630 has been updated by azn.

SHA-1: 0bad6df45171b82cf62094ed8529c37c59202e89


Detailed log of new commits:

Author: azn
Date: Thu Mar 12 13:20:26 2015 +0300

    25630: Possible memory leaks in BRepGProp_Vinert and BRepGProp_Sinert
    
    Elimination of constant conditional expression warnings.

msv

2015-03-13 17:51

developer   ~0038349

Alexander, please make correction that we spoke about.

git

2015-03-16 09:14

administrator   ~0038380

Branch CR25630 has been updated by azn.

SHA-1: de27ade2df2d1cfcd0385adbe9dea5a3bd5a4aba


Detailed log of new commits:

Author: azn
Date: Mon Mar 16 09:12:48 2015 +0300

    0025630: Possible memory leaks in BRepGProp_Vinert and BRepGProp_Sinert
    
    Small fix in comment.

msv

2015-03-16 09:35

developer   ~0038382

Reviewed.

git

2015-03-16 16:05

administrator   ~0038399

Branch CR25630 has been updated forcibly by apv.

SHA-1: c4d3ddeda8a7b609fa496742f91c012153a19329

apv

2015-03-16 16:06

tester   ~0038400

Branch CR25630 has been rebased on the current master

apv

2015-03-17 13:44

tester   ~0038426

Dear BugMaster,

Branch CR25630 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested.
SHA-1: c4d3ddeda8a7b609fa496742f91c012153a19329

Number of compiler warnings:
occt component:
   Linux: 18 (18 on master)
   Windows: 0 (0 on master)
products component:
   Linux: 11 (11 on master)
   Windows: 4 (4 on master)

Regressions/Differences:
Not detected

Testing cases:
Not needed

Testing on Linux:
Total MEMORY difference: 89911044 / 90067896
Total CPU difference: 58686.52000000015 / 58911.169999999984

Testing on Windows:
Total MEMORY difference: 58085918 / 58093704
Total CPU difference: 49773.015625 / 57284.859375

git

2015-10-16 16:47

administrator   ~0047033

Branch CR25630 has been deleted by kgv.

SHA-1: c4d3ddeda8a7b609fa496742f91c012153a19329

Related Changesets

occt: master 9bd59d1c

2015-03-19 12:50:09

azn


Committer: bugmaster Details Diff
0025630: Possible memory leaks in BRepGProp_Vinert and BRepGProp_Sinert

Code refactoring of BRepGProp_Sinert and BRepGProp_Vinert classes.
- All static variables have been removed.
- Common functionality connected with Gauss integration has beem moved from BRepGProp_Sinert and BRepGProp_Vinert classes to the new BRepGProp_Gauss class.

Slight changes in the comments.

Fix compilation error.

Fix Sinert errors. Rebased on new master.

Elimination of constant conditional expression warnings.

Small fix in comment.
Affected Issues
0025630
add - src/BRepGProp/BRepGProp_Gauss.cxx Diff File
add - src/BRepGProp/BRepGProp_Gauss.hxx Diff File
mod - src/BRepGProp/BRepGProp_Sinert.cxx Diff File
mod - src/BRepGProp/BRepGProp_Vinert.cxx Diff File
add - src/BRepGProp/FILES Diff File

Issue History

Date Modified Username Field Change
2014-12-19 09:54 azn New Issue
2014-12-19 09:54 azn Assigned To => abv
2014-12-25 09:48 abv Note Added: 0035700
2014-12-25 09:48 abv Assigned To abv => azn
2014-12-25 09:48 abv Status new => assigned
2015-01-20 08:40 git Note Added: 0036230
2015-01-20 08:40 azn Assigned To azn => abv
2015-01-20 08:40 azn Status assigned => resolved
2015-01-20 08:40 azn Steps to Reproduce Updated
2015-01-21 10:26 git Note Added: 0036293
2015-01-21 10:28 azn Note Added: 0036294
2015-01-21 10:28 azn Assigned To abv => msv
2015-01-21 18:13 msv Note Added: 0036345
2015-01-21 18:13 msv Assigned To msv => azn
2015-01-21 18:13 msv Status resolved => assigned
2015-01-22 09:29 git Note Added: 0036356
2015-01-22 09:33 azn Note Added: 0036357
2015-01-22 09:33 azn Assigned To azn => msv
2015-01-22 09:33 azn Status assigned => resolved
2015-01-22 10:33 msv Note Added: 0036362
2015-01-22 10:33 msv Assigned To msv => bugmaster
2015-01-22 10:33 msv Status resolved => reviewed
2015-01-28 19:07 apn Assigned To bugmaster => apn
2015-01-29 12:44 apn Note Added: 0036803
2015-01-29 12:44 apn Test case number => Not needed
2015-01-29 12:44 apn Assigned To apn => azn
2015-01-29 12:45 apn Status reviewed => assigned
2015-01-29 14:03 git Note Added: 0036817
2015-01-29 14:08 git Note Added: 0036818
2015-01-29 14:09 azn Assigned To azn => msv
2015-01-29 14:09 azn Status assigned => resolved
2015-01-29 14:44 msv Note Added: 0036824
2015-01-29 14:44 msv Assigned To msv => bugmaster
2015-01-29 14:44 msv Status resolved => reviewed
2015-01-29 17:57 apn Assigned To bugmaster => apn
2015-02-02 13:03 apn Note Added: 0036954
2015-02-02 13:04 apn Assigned To apn => azn
2015-02-02 13:04 apn Status reviewed => assigned
2015-03-11 15:45 git Note Added: 0038266
2015-03-11 15:48 azn Note Added: 0038267
2015-03-11 15:48 azn Assigned To azn => msv
2015-03-11 15:48 azn Status assigned => resolved
2015-03-11 17:51 msv Note Added: 0038279
2015-03-11 17:51 msv Assigned To msv => azn
2015-03-11 17:51 msv Status resolved => assigned
2015-03-12 13:21 git Note Added: 0038294
2015-03-12 13:21 azn Assigned To azn => msv
2015-03-12 13:21 azn Status assigned => resolved
2015-03-13 17:51 msv Note Added: 0038349
2015-03-13 17:51 msv Assigned To msv => azn
2015-03-13 17:51 msv Status resolved => assigned
2015-03-16 09:14 git Note Added: 0038380
2015-03-16 09:15 azn Assigned To azn => msv
2015-03-16 09:15 azn Status assigned => resolved
2015-03-16 09:35 msv Note Added: 0038382
2015-03-16 09:35 msv Assigned To msv => bugmaster
2015-03-16 09:35 msv Status resolved => reviewed
2015-03-16 12:20 mkv Assigned To bugmaster => apv
2015-03-16 16:05 git Note Added: 0038399
2015-03-16 16:06 apv Note Added: 0038400
2015-03-17 13:44 apv Note Added: 0038426
2015-03-17 13:44 apv Assigned To apv => bugmaster
2015-03-17 13:44 apv Status reviewed => tested
2015-03-20 13:34 bugmaster Changeset attached => occt master 9bd59d1c
2015-03-20 13:34 bugmaster Status tested => verified
2015-03-20 13:34 bugmaster Resolution open => fixed
2015-05-14 15:28 aiv Status verified => closed
2015-05-14 15:31 aiv Fixed in Version => 6.9.0
2015-10-16 16:47 git Note Added: 0047033