Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18729] Windows: Destructor of Label and Module classes cause crashes related to std::unordered_map fields

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-03-23T20:33:49.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.1.0
ComponentsWindows
Labelsn/a
ReporterChristopher Williams
AssigneeChristopher Williams
Created2015-03-23T13:53:59.000+0000
Updated2017-03-14T20:11:21.000+0000

Description

When running the ti.lui.layout.test section of our mocha tests, after the tests we close a window we opened. This is causing Gc to run and destruct a number of objects. The Label and Module classes are crashing during their destruction, specifically when clear() is called on their std::unordered_map fields. There is an access violation thrown and the address used is 0xDDDDDDDD, which signifies freed memory. So somehow the map has some internal nodes whose values are already freed?

Comments

  1. Lee Morris 2017-03-14

    Closing ticket as fixed.

JSON Source