View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0023086 | Community | OCCT:Application Framework | public | 2012-04-06 15:45 | 2012-11-16 13:17 |
Reporter | Assigned To | ||||
Priority | normal | Severity | major | ||
Status | closed | Resolution | fixed | ||
Product Version | 6.5.2 | ||||
Target Version | 6.5.4 | Fixed in Version | 6.5.4 | ||
Summary | 0023086: OCC 6.5.2 DNaming bug | ||||
Description | Post from the Forum [Valeriu Catina] - http://www.opencascade.org/org/forum/thread_23075/ . "... in package TKDCAF, module DNaming, file DNaming_TransformationDriver.cxx, function LoadNamingDS contains code similar to: --- TNaming_Builder* pB1; // ... irrelevant code if(aF) { const TDF_Label& aFLabel = theResultLabel.FindChild(FACES_TAG, Standard_True); TNaming_Builder aFBuilder(aFLabel); pB1 = &aFBuilder aF = Standard_False; } // ... irrelevant code pB1->Modify(anIt.Key(), newShape); --- pB1 takes the address of a temporary (aFBuilder in our case). As aFBuilder is destroyed at the end of the if block pB1 is invalid when pB1->Modify(anIt.Key(), newShape) is reached." | ||||
Tags | No tags attached. | ||||
Test case number | Not needed | ||||
|
Fixed in branch CR23086. Review, please. |
|
Please provide meaningful description of the change made |
|
The changes are Ok. |
|
Technical solution: static TNaming_Buildrer is replaced by corresponding pair [new, delete]. Dynamic management of the Builder creation/deletion is added. |
|
Dear BugMaster, Workbench KAS:dev:apn-23086-occt was created from git branch CR23086 (and apn-23086-products from svn trunk) and compiled on Linux platform. There are not regressions in apn-23086-products regarding to KAS:dev:products-20120406-opt There are not improvements in apn-23086-products regarding to KAS:dev:products-20120406-opt See results in /QADisk/occttests/results/KAS/dev/apn-23086-products_12042012/lin See reference results in /QADisk/occttests/results/KAS/dev/products-20120406-opt_07042012/lin See test cases in /QADisk/occttests/tests/ED N.B. In order to launch testing case you can make use the following instructions http://doc/doku.php?id=occt:certification |
|
The alternative implementation of the fix (using Handles instead of plain C pointers) is integrated to the same-name branch CR23086; please review |
|
Reviewed. It's Ok. |
|
Dear BugMaster, Branch CR23086 (and products from GIT master) was compiled on Linux and Windows platforms and tested. Regression: Not detected Improvements: Not detected Testing case: Not needed |
occt: master d4832c3e 2012-09-14 12:36:12
|
0023086: OCC 6.5.2 DNaming bug The code is corrected to create instances of TNaming_Builder class dynamically. Note that they cannot be created as local variables as they should be instantiated only when needed and then reused for the subshapes of the same type in cycle. Code around is cleaned from tabs and duplicated fragments. |
Affected Issues 0023086 |
|
mod - src/DNaming/DNaming_TransformationDriver.cxx | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-04-06 15:45 |
|
New Issue | |
2012-04-06 15:45 |
|
Assigned To | => szy |
2012-04-11 19:47 |
|
Note Added: 0020340 | |
2012-04-11 19:47 |
|
Assigned To | szy => vro |
2012-04-11 19:47 |
|
Status | new => resolved |
2012-04-11 19:52 |
|
Note Added: 0020341 | |
2012-04-12 10:24 | vro | Note Added: 0020349 | |
2012-04-12 10:24 | vro | Assigned To | vro => mkv |
2012-04-12 10:24 | vro | Status | resolved => reviewed |
2012-04-12 10:27 |
|
Note Added: 0020350 | |
2012-04-12 11:02 |
|
Target Version | 6.5.4 => 6.5.3 |
2012-04-12 11:02 | apn | Assigned To | mkv => apn |
2012-04-12 11:02 | apn | Description Updated | |
2012-04-12 11:54 |
|
Test case number | => Not needed |
2012-04-13 14:50 |
|
Note Added: 0020383 | |
2012-04-13 14:50 |
|
Assigned To | apn => bugmaster |
2012-04-13 14:50 |
|
Status | reviewed => tested |
2012-04-26 18:47 |
|
Target Version | 6.5.3 => 6.5.4 |
2012-04-26 18:47 |
|
Assigned To | bugmaster => abv |
2012-04-26 18:47 |
|
Status | tested => feedback |
2012-08-17 16:55 |
|
Relationship added | has duplicate 0023355 |
2012-08-17 17:25 |
|
Note Edited: 0020350 | |
2012-09-07 09:34 |
|
Relationship added | related to 0021977 |
2012-09-07 09:51 |
|
Note Added: 0021427 | |
2012-09-07 09:51 |
|
Assigned To | abv => szy |
2012-09-07 09:51 |
|
Status | feedback => resolved |
2012-09-07 14:19 |
|
Note Added: 0021433 | |
2012-09-07 14:19 |
|
Status | resolved => reviewed |
2012-09-07 16:00 |
|
Assigned To | szy => mkv |
2012-09-13 14:56 | apn | Note Added: 0021477 | |
2012-09-13 14:56 | apn | Assigned To | mkv => bugmaster |
2012-09-13 14:56 | apn | Status | reviewed => tested |
2012-09-17 17:29 |
|
Changeset attached | => occt master d4832c3e |
2012-09-17 17:34 |
|
Assigned To | bugmaster => szy |
2012-09-17 17:34 |
|
Status | tested => verified |
2012-09-17 17:34 |
|
Resolution | open => fixed |
2012-11-16 13:14 | bugmaster | Fixed in Version | => 6.5.4 |
2012-11-16 13:17 | bugmaster | Status | verified => closed |