View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0026287 | Open CASCADE | OCCT:Foundation Classes | public | 2015-05-28 15:59 | 2015-10-23 20:50 |
Reporter | Assigned To | bugmaster | |||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Platform | Windows | OS | VC++ 2010 | ||
Product Version | 6.9.0 | ||||
Target Version | 6.9.1 | Fixed in Version | 6.9.1 | ||
Summary | 0026287: Bug in NCollection_AccAllocator::Free() sometimes causes crash in debug mode | ||||
Description | 64-bit Windows library built in debug mode can crash when using NCollection_AccAllocator in the following scenario: 1. some data is allocated in an NCollection_AccAllocator instance; 2. all the data is freed; 3. trying to allocate anything again in the same allocator instance. The root cause of the problem is a bug in NCollection_AccAllocator::Free() method. When last allocation in last memory block is freed, the memory block is reallocated to default size, but its key is not updated. The key is based on the block's address, so if the reallocation of the block changes its address, the key becomes invalid that causes failure at subsequent allocation. | ||||
Steps To Reproduce | Not possible | ||||
Tags | No tags attached. | ||||
Test case number | Not needed | ||||
|
Branch CR26287 has been created by myn. SHA-1: d674be1100e4f41f934756a75de46db8b99d8d86 Detailed log of new commits: Author: myn Date: Thu May 28 16:20:14 2015 +0300 0026287: Bug in NCollection_AccAllocator::Free() sometimes causes crash in debug mode |
|
Please review branch CR26287 |
|
No remarks, please check compilation and integrate (no testing is needed since that class is not used neither in OCCT nor in products) |
|
Dear Andrey, this class is used in LPKF project. |
|
Sorry, I meant "OCCT products", not "SD projects" -- will correct my note |
|
Branch CR26287 has been updated forcibly by apv. SHA-1: 26dda48893a2672413d9c5b3d7a1d13d2642cf16 |
|
Branch CR26287 has been rebased on the current master |
|
Dear BugMaster, Branch CR26287 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms. SHA-1: 26dda48893a2672413d9c5b3d7a1d13d2642cf16 Number of compiler warnings: occt component: Linux: 25 (25 on master) Windows: 0 (0 on master) products component: Linux: 37 (37 on master) Windows: 0 (0 on master) |
|
Branch CR26287 has been deleted by kgv. SHA-1: 26dda48893a2672413d9c5b3d7a1d13d2642cf16 |
occt: master 7c47a3d6 2015-05-28 13:20:14
Committer: bugmaster Details Diff |
0026287: Bug in NCollection_AccAllocator::Free() sometimes causes crash in debug mode |
Affected Issues 0026287 |
|
mod - src/NCollection/NCollection_AccAllocator.cxx | Diff File | ||
mod - src/NCollection/NCollection_AccAllocator.hxx | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2015-05-28 15:59 |
|
New Issue | |
2015-05-28 15:59 |
|
Assigned To | => myn |
2015-05-28 16:32 | git | Note Added: 0041676 | |
2015-05-28 16:38 |
|
Note Added: 0041677 | |
2015-05-28 16:38 |
|
Assigned To | myn => abv |
2015-05-28 16:38 |
|
Status | new => resolved |
2015-05-28 16:38 |
|
Steps to Reproduce Updated | |
2015-05-29 08:55 |
|
Note Added: 0041692 | |
2015-05-29 08:55 |
|
Assigned To | abv => bugmaster |
2015-05-29 08:55 |
|
Status | resolved => reviewed |
2015-05-29 10:11 | epv | Note Added: 0041694 | |
2015-05-29 10:17 |
|
Note Added: 0041696 | |
2015-05-29 10:17 |
|
Note Edited: 0041692 | |
2015-05-29 12:45 |
|
Assigned To | bugmaster => apv |
2015-05-29 16:00 | git | Note Added: 0041743 | |
2015-05-29 16:01 |
|
Note Added: 0041745 | |
2015-05-29 21:25 |
|
Description Updated | |
2015-06-01 11:30 |
|
Test case number | => Not needed |
2015-06-01 11:31 |
|
Note Added: 0041771 | |
2015-06-01 11:31 |
|
Assigned To | apv => bugmaster |
2015-06-01 11:31 |
|
Status | reviewed => tested |
2015-06-05 15:00 | bugmaster | Changeset attached | => occt master 7c47a3d6 |
2015-06-05 15:00 | bugmaster | Status | tested => verified |
2015-06-05 15:00 | bugmaster | Resolution | open => fixed |
2015-06-08 12:31 | bugmaster | Target Version | => 7.0.0 |
2015-07-27 13:48 | git | Note Added: 0043553 | |
2015-08-26 11:08 |
|
Target Version | 7.0.0 => 6.9.1 |
2015-10-16 14:56 |
|
Status | verified => closed |
2015-10-23 20:50 |
|
Fixed in Version | => 6.9.1 |