2011/10/20 Jan Kratochvil <[email protected]>:
> Hi,
>
> with custom patched dwarf2out.c I got a crash on memory mangled by the garbage
> collector.  With patched GTY there the crash no longer happened - but I do not
> have a reproducer anymore, sorry if it is a bogus patch.
>
> The memory corrupted later was initially allocated and stored into
> mem_loc_result->dw_loc_oprnd1.v.val_loc.  I do not think there is any other
> reference to it than that field with no GTY.

> 2011-10-20  Jan Kratochvil  <[email protected]>
>
>        * dwarf2out.c (struct dw_loc_list_struct): Add GTY for expr;

This patch is a no-op, as already pointed out. If this comes up again,
I'd set a conditional breakpoint on ggc_set_mark if (arg == struct
dw_loc_list_struct with the field that gets collected) and try to find
out why the field does not get marked.

-- 
Laurynas

Reply via email to