Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: FPE not deferred in 5.36

by hv (Prior)
on May 31, 2022 at 15:49 UTC ( [id://11144321]=note: print w/replies, xml ) Need Help??


in reply to Re^2: FPE not deferred in 5.36
in thread FPE not deferred in 5.36

This is rather strange - removing the 'local' stops the die message from showing up:

% perl-5.34.0 -MMath::GMP -wle 'local $SIG{FPE} = sub { die "divide by + zero" }; $z=Math::GMP->new(1); print $z / 0' Maximal count of pending signals (120) exceeded at -e line 1. divide by zero at -e line 1. % % perl-5.34.0 -MMath::GMP -wle '$SIG{FPE} = sub { die "divide by zero" + }; $z=Math::GMP->new(1); print $z / 0' Maximal count of pending signals (120) exceeded at -e line 1. %

I don't know why that's occurring. I guess it's possible there's a bug here, but I'm not sure how I might start investigating it. If anything I'd have imagined it working the other way round.

Replies are listed 'Best First'.
Re^4: FPE not deferred in 5.36
by choroba (Cardinal) on May 31, 2022 at 18:17 UTC
    If there's a bug, we'll need to find a different reproducer, as the fix to FPE makes the behaviour of the code identical in 5.36.

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11144321]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-19 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found