Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: weird case of memory corruption?

by perltux (Monk)
on May 12, 2021 at 13:57 UTC ( [id://11132483] : note . print w/replies, xml ) Need Help??


in reply to weird case of memory corruption?

I believe the actual bug must be in Tk::Trace which is used by Tk::ProgressBar.
I looked at the source code of Tk::ProgressBar itself but as far as I can tell there is nothing that could cause this memory corruption.

The problem seems to be triggered by the fact that the same variable is traced both from a -textvariable in a Label and from Tk::ProgressBar.

Replies are listed 'Best First'.
Re^2: weird case of memory corruption?
by jcb (Parson) on May 13, 2021 at 01:45 UTC

    If I understand correctly, Tk::Trace works by tying the scalar using Tie::Watch. Could the problem be a result of "stacking" Tie::Watch on the same value?