develooper Front page | perl.perl5.porters | Postings from July 2014

[perl #122445] Segmentation fault while debugging programs using bignum in 5.18.2

Thread Previous | Thread Next
James E Keenan via RT
July 31, 2014 01:34
[perl #122445] Segmentation fault while debugging programs using bignum in 5.18.2
Message ID:
On Wed Jul 30 14:55:21 2014, wrote:
> On Wed Jul 30 14:51:25 2014, wrote:
> > Hi!
> >
> > Trying to debug the attached program via 'perl -d ./'
> > produces a segmentation fault for me.
> To be more precise, this happens:
> christian@azmodan ~ $ perl -d ./
> Loading DB routines from version 1.39_10
> Editor support available.
> Enter h or 'h h' for help, or 'man perldebug' for more help.
> main::(./        $DB::single=2;
>                                                                                        DB<1>
> c
> Segmentation fault

Is it possible that you are using $DB::single in a manner for which is not intended?

In the documenation to, I read:

Global Variables

The following "public" global names can be read by clients 
of this API.  Beware that these should be considered



Single-step flag. Will be true if the API will
stop at the next statement.

You are trying to assign to $DB::single, which seems to violate the "readonly" stipulation.

Moreover, when I hear something described as a "flag", my first impulse is to think of it as a Boolean with 1 usually representing True and 0 representing False.

(Granted there is one point in where a value of 2 is assigned to $DB::single.)

I don't claim to speak definitively here.

Thank you very much.
Jim Keenan

via perlbug:  queue: perl5 status: open

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About