koolhazz / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

[windows] Crash in attempt to patch C runtime dll that was previously loaded & unloaded #620

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

See https://groups.google.com/forum/#!topic/google-perftools/9ImXHzlxSt8

It involves loading odbc driver that links to different version of C runtime 
that's loaded with driver and subsequently unloaded with it. Then second 
attempt to load same driver fails.

As part of investigation I found that code to delete[] origstub_fn_[i] was 
wrong since patch in issue-359 was applied. I.e. that patch changed memory 
management of origstub_fn_ in a way that doesn't require manual deletion of 
those memory chunks.

Original issue reported on code.google.com by alkondratenko on 4 May 2014 at 12:37

GoogleCodeExporter commented 9 years ago
I've just merged a fix.

Original comment by alkondratenko on 4 May 2014 at 12:51