[Bug 235666] Segfault occurs when using Perl-Tk on FC6
bugzilla at redhat.com
bugzilla at redhat.com
Fri Jan 4 22:27:32 UTC 2008
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.
Summary: Segfault occurs when using Perl-Tk on FC6
https://bugzilla.redhat.com/show_bug.cgi?id=235666
------- Additional Comments From andreas.bierfert at lowlatency.de 2008-01-04 17:27 EST -------
I have been debugging this the whole evening and on the way adding sort of the
same patch. This does prevent it from crashing in a couple of occasions but so
harder you can still trigger a crash because eventually optionPtr->specPtr->type
is broken (or better specPtr contains crap).
I currently believe that this is related to what is mentioned in tkGlue.c:2269:
" /* BEWARE if Tk code does a callback to perl and perl grows the
stack then args that Tk code has will still point at old stack.
Thus if Tk tests args[i] *after* the callback it will get junk.
(Note it is only vector that is at risk, SVs themselves will stay put.)
So we pre-emptively swap perl stack so any callbacks
which grow their stack don't move our "args"
*/
"
because there stuff gets called but values for args make sense:
e.g. right before a crash:
args: 0x7c59c8, args[2]: 0x96D010
I am really clueless atm.
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Fedora-perl-devel-list
mailing list