develooper Front page | perl.perl5.porters | Postings from December 2013

[perl #119801] Modifying @DB::dbline entries can crash perl

Thread Next
From:
Father Chrysostomos via RT
Date:
December 23, 2013 14:09
Subject:
[perl #119801] Modifying @DB::dbline entries can crash perl
Message ID:
rt-4.0.18-25540-1387807745-1471.119801-14-0@perl.org
On Wed Oct 30 21:29:27 2013, sprout wrote:
> On Mon Oct 28 22:02:51 2013, sprout wrote:
> > On Mon Sep 16 23:53:11 2013, sprout wrote:
> > > How about having an array shared between threads and indexed by
> > > cop_seq?
> > >
> > > Or, if that makes the array too long, extend the struct for dbstate
> > > ops
> > > and store a separate sequence number.
> > >
> > > When the op is freed, it can invalidate its entry.  We would need
> > > three
> > > values: 0 = no op available, 1 = no breakpoint, 2 = breakpoint set.
> > >
> > > The numeric values stored in @DB::dbline elements would be indices
> > > into
> > > that breakpoint array.
> >
> > Please review the attached patch, which is also on the sprout/dbline
> > branch.
> 
> In particular, does B::C need to access the extra fields that dbstate
> ops now have, or can we keep the cop–dbop distinction private?

Having received no response, I applied this yesterday, as c1cec775e.

-- 

Father Chrysostomos


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About