[Bug 235666] Segfault occurs when using Perl-Tk on FC6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx  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.

--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
Fedora-perl-devel-list mailing list
Fedora-perl-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-perl-devel-list

[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux