| Ticket UUID: | 94e3289b7996977cc978b649b437fe9890a7b0bb | ||
| Title: | MemoryModule doesn't handle TLS completely. | ||
| Type: | Bug | Created on: | 2025-01-25 18:29:48 |
| Submitter: | jan.nijtmans | Assigned to: | nobody |
| Subsystem: | 40. Dynamic Loading | Severity: | Important |
| Priority: | 5 Medium | Last modified: | 2025-01-25 18:29:48 |
| Status: | Open | Closed by: | nobody |
| Resolution: | None | Closed on: | |
| Version: | |||
| Description: | ||||
|
MemoryModule only calls the TLS callbacks for DLL_PROCESS_ATTACH, never for DLL_PROCESS_DETACH|DLL_THREAD_ATTACH|DLL_THREAD_DETACH. This means that shared memory - if used in loaded dll's - can never be handled correctly. Adding DLL_PROCESS_DETACH is quite trivial, the others are more complicated. But let's make a start. Until this is finished, the TIP #709 implementation disables loading any dll in memory which has a TLS section. This ticket is meant to keep track of the improvements. | ||||
