free(): double free detected in tcache 2

max haughton maxhaton at gmail.com
Mon Aug 23 23:25:19 UTC 2021


On Monday, 23 August 2021 at 22:34:58 UTC, Johan wrote:
> On Monday, 23 August 2021 at 15:59:04 UTC, workman wrote:
>> On Friday, 13 August 2021 at 11:01:00 UTC, Johan wrote:
>>> On Friday, 13 August 2021 at 05:58:34 UTC, workman wrote:
>>>> [...]
>>>
>>> Can you check how often _d_dso_registry is called after 
>>> __run_exit_handlers ?
>>
>> not sure how to do this.
>
> (not really sure if this will really help figure out the 
> problem, but...)
>
> You can break on it (probably smth like "break 
> _d_dso_registry"), then continue when execution is stopped at 
> the start of the function (probably "c"), and count how often 
> the breakpoint is triggered (keep "c"), before the program 
> exits.
>
> -Johan

You need to break, then set the ignore count, then `info 
breakpoints` (something like you that) will still give you the 
hit count for that breakpoint


More information about the digitalmars-d-ldc mailing list