Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.perl omits backtrace of exception #6110

Open
p6rt opened this issue Feb 27, 2017 · 4 comments
Open

.perl omits backtrace of exception #6110

p6rt opened this issue Feb 27, 2017 · 4 comments
Labels
Bug

Comments

@p6rt
Copy link

@p6rt p6rt commented Feb 27, 2017

Migrated from rt.perl.org#130887 (status was 'open')

Searchable as RT130887$

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Feb 27, 2017

From zefram@fysh.org

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

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Feb 28, 2017

From @zoffixznet

On Mon, 27 Feb 2017 14​:35​:17 -0800, zefram@​fysh.org wrote​:

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)

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Feb 28, 2017

The RT System itself - Status changed from 'new' to 'open'

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Feb 28, 2017

From zefram@fysh.org

Zoffix Znet via RT wrote​:

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

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.