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

"..." produces a low-level backtrace; running code from file and with -e is different #4435

Closed
p6rt opened this issue Jul 24, 2015 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Jul 24, 2015

Migrated from rt.perl.org#125680 (status was 'resolved')

Searchable as RT125680$

@p6rt
Copy link
Author

p6rt commented Jul 24, 2015

From @AlexDaniel

Code​:
...

Result​:
Unhandled exception​: Stub code executed
  at <unknown>​:1
(/home/alex/git/rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm​:throw​:4294967295)
from src/gen/m-CORE.setting​:17505
(/home/alex/git/rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm​:throw​:39)
from src/gen/m-CORE.setting​:17531
(/home/alex/git/rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm​:sink​:33)
from src/gen/m-main.nqp​:41
(/home/alex/git/rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm​:MAIN​:40)
from src/gen/m-main.nqp​:35
(/home/alex/git/rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm​:<mainline>​:197)
from <unknown>​:1
(/home/alex/git/rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm​:<main>​:8)
from <unknown>​:1
(/home/alex/git/rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm​:<entry>​:9)

It seems like I should not see that backtrace. There is no such problem
when using !!! and ???.

But it goes even further​:
$ perl6 -e '...; 1'
Stub code executed
  in block <unit> at -e​:1

Actually thrown at​:
  in block <unit> at -e​:1

As you can see, no stacktrace when running it with -e. However, the same
code (...; 1) running from file gives a backtrace.

jnthn and moritz discussed that problem a little bit, check out IRC log​:
http://irclog.perlgeek.de/perl6/2015-07-24#i_10949235

@p6rt
Copy link
Author

p6rt commented Aug 23, 2016

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Aug 23, 2016

From @coke

On Fri Jul 24 11​:26​:41 2015, alex.jakimenko@​gmail.com wrote​:

Code​:
...

Result​:
Unhandled exception​: Stub code executed
at <unknown>​:1
(/home/alex/git/rakudobrew/moar-
nom/install/share/perl6/runtime/CORE.setting.moarvm​:throw​:4294967295)
from src/gen/m-CORE.setting​:17505
(/home/alex/git/rakudobrew/moar-
nom/install/share/perl6/runtime/CORE.setting.moarvm​:throw​:39)
from src/gen/m-CORE.setting​:17531
(/home/alex/git/rakudobrew/moar-
nom/install/share/perl6/runtime/CORE.setting.moarvm​:sink​:33)
from src/gen/m-main.nqp​:41
(/home/alex/git/rakudobrew/moar-
nom/install/share/perl6/runtime/perl6.moarvm​:MAIN​:40)
from src/gen/m-main.nqp​:35
(/home/alex/git/rakudobrew/moar-
nom/install/share/perl6/runtime/perl6.moarvm​:<mainline>​:197)
from <unknown>​:1
(/home/alex/git/rakudobrew/moar-
nom/install/share/perl6/runtime/perl6.moarvm​:<main>​:8)
from <unknown>​:1
(/home/alex/git/rakudobrew/moar-
nom/install/share/perl6/runtime/perl6.moarvm​:<entry>​:9)

It seems like I should not see that backtrace. There is no such
problem
when using !!! and ???.

But it goes even further​:
$ perl6 -e '...; 1'
Stub code executed
in block <unit> at -e​:1

Actually thrown at​:
in block <unit> at -e​:1

As you can see, no stacktrace when running it with -e. However, the
same
code (...; 1) running from file gives a backtrace.

jnthn and moritz discussed that problem a little bit, check out IRC
log​:
http://irclog.perlgeek.de/perl6/2015-07-24#i_10949235

This no longer behaves differently in a file version on the command line, both giving​:

Useless use of constant integer 1 in sink context (line 1)
Stub code executed
  in any at /Users/williamcoleda/.rakudobrew/moar-2016.07.1/install/share/perl6/runtime/CORE.setting.moarvm line 1
  in block <unit> at -e line 1

Marking test needed.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Sep 11, 2016

From @zoffixznet

Tests added in Raku/roast@7414702357

@p6rt
Copy link
Author

p6rt commented Sep 11, 2016

@zoffixznet - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant