Skip Menu |
Report information
Id: 130887
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: zefram [at] fysh.org
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Date: Mon, 27 Feb 2017 22:34:30 +0000
From: Zefram <zefram [...] fysh.org>
Subject: [BUG] .perl omits backtrace of exception
To: rakudobug [...] perl.org
Download (untitled) / with headers
text/plain 240b
Show quoted text
> try { my Int $a; $a = "foo" }; say ?$!.backtrace; say ?$!.perl.EVAL.backtrace
True False .perl.EVAL is failing to round-trip the exception object, as demonstrated by the differing truthiness of the value returned by .backtrace. -zefram
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 513b
On Mon, 27 Feb 2017 14:35:17 -0800, zefram@fysh.org wrote: Show quoted text
> > try { my Int $a; $a = "foo" }; say ?$!.backtrace; say > > ?$!.perl.EVAL.backtrace
> True > False > > .perl.EVAL is failing to round-trip the exception object, as > demonstrated > by the differing truthiness of the value returned by .backtrace. > > -zefram
Only public attributes of an object get dumped in .perl's output, and backtrace isn't one: $ perl6 -e 'class Foo { has $!foo = 42; has $.bar = 72 }.new.perl.say' Foo.new(bar => 72)
Subject: Re: [perl #130887] [BUG] .perl omits backtrace of exception
From: Zefram <zefram [...] fysh.org>
To: Zoffix Znet via RT <perl6-bugs-followup [...] perl.org>
Date: Tue, 28 Feb 2017 14:21:48 +0000
Download (untitled) / with headers
text/plain 305b
Zoffix Znet via RT wrote: Show quoted text
>Only public attributes of an object get dumped in .perl's output, >and backtrace isn't one:
That's a fine default, but a problem in this case. The .backtrace method is public, so .perl.EVAL ought to be round-tripping the data that it exposes, however that's stored. -zefram


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org