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
From:
James E Keenan via RT
Date:
July 31, 2014 01:34
Subject:
[perl #122445] Segmentation fault while debugging programs using bignum in 5.18.2
Message ID:
rt-4.0.18-17471-1406770473-1174.122445-15-0@perl.org
On Wed Jul 30 14:55:21 2014, chr.stahlhut@gmail.com wrote:
> On Wed Jul 30 14:51:25 2014, chr.stahlhut@gmail.com wrote:
> > Hi!
> >
> > Trying to debug the attached program via 'perl -d ./debug-me.pl'
> > produces a segmentation fault for me.
> 
> To be more precise, this happens:
> 
> christian@azmodan ~ $ perl -d ./debug-me.pl
> 
> Loading DB routines from perl5db.pl version 1.39_10
> Editor support available.
> 
> Enter h or 'h h' for help, or 'man perldebug' for more help.
> 
> main::(./debug-me.pl:4):        $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 DB.pm, I read:

#####
Global Variables

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

[snip]  

$DB::single

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 DB.pm 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
https://rt.perl.org/Ticket/Display.html?id=122445

Thread Previous | 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