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

Fail to run regex repeatedly with --profile #2108

Open
lizmat opened this issue Jul 22, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@lizmat
Copy link
Contributor

commented Jul 22, 2018

The Problem

perl6 --profile -e 'my @alts = ^256; say "127.0.0.1" ~~ /^ @alts ** 4 % . $/ for ^2'

Expected Behavior

Run without problem, output:
「127.0.0.1」
「127.0.0.1」

Actual Behavior

「127.0.0.1」
This type (NQPMu) does not support positional operations
in any literal at /Users/liz/Github/rakudo.moar/install/share/nqp/lib/QRegex.moarvm line 1
in block at -e line 1

Steps to Reproduce

See also: http://colabti.org/irclogger/irclogger_log/moarvm?date=2018-07-22#l10

$ perl6 --ll-exception --profile -e 'my @alts = ^256; say "127.0.0.1" ~~ /^ @alts ** 4 % . $/ for ^2'
「127.0.0.1」
This type (NQPMu) does not support positional operations
at gen/moar/stage2/QRegex.nqp:92 (/Users/liz/Github/rakudo.moar/install/share/nqp/lib/QRegex.moarvm:addedge)
from :1 (/Users/liz/Github/rakudo.moar/install/share/nqp/lib/QRegex.moarvm:literal)
from gen/moar/stage2/QRegex.nqp:129 (/Users/liz/Github/rakudo.moar/install/share/nqp/lib/QRegex.moarvm:regex_nfa)
from gen/moar/stage2/QRegex.nqp:119 (/Users/liz/Github/rakudo.moar/install/share/nqp/lib/QRegex.moarvm:addnode)
from SETTING::src/core/Match.pm6:274 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.setting.moarvm:)
from SETTING::src/core/Match.pm6:255 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.setting.moarvm:)
from SETTING::src/core/Match.pm6:243 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.setting.moarvm:)
from SETTING::src/core/Match.pm6:239 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.setting.moarvm:)
from SETTING::src/core/Match.pm6:294 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.setting.moarvm:INTERPOLATE)
from :1 (:)
from SETTING::src/core/Regex.pm6:27 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.setting.moarvm:ACCEPTS)
from -e:1 (:)
from -e:1 (:)
from -e:1 (:)
from gen/moar/stage2/NQPHLL.nqp:1559 (/Users/liz/Github/rakudo.moar/install/share/nqp/lib/NQPHLL.moarvm:)
from gen/moar/stage2/NQPHLL.nqp:73 (/Users/liz/Github/rakudo.moar/install/share/nqp/lib/NQPHLL.moarvm:run_profiled)
from gen/moar/stage2/NQPHLL.nqp:1559 (/Users/liz/Github/rakudo.moar/install/share/nqp/lib/NQPHLL.moarvm:eval)
from gen/moar/stage2/NQPHLL.nqp:1673 (/Users/liz/Github/rakudo.moar/install/share/nqp/lib/NQPHLL.moarvm:)
from gen/moar/stage2/NQPHLL.nqp:1728 (/Users/liz/Github/rakudo.moar/install/share/nqp/lib/NQPHLL.moarvm:command_eval)
from src/Perl6/Compiler.nqp:42 (/Users/liz/Github/rakudo.moar/install/share/nqp/lib/Perl6/Compiler.moarvm:command_eval)
from gen/moar/stage2/NQPHLL.nqp:1654 (/Users/liz/Github/rakudo.moar/install/share/nqp/lib/NQPHLL.moarvm:command_line)
from gen/moar/main.nqp:47 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/perl6.moarvm:MAIN)
from gen/moar/main.nqp:38 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/perl6.moarvm:)
from :1 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/perl6.moarvm:

)
from :1 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/perl6.moarvm:)

Environment

  • Operating system:
  • Compiler version (perl6 -v):
@zoffixznet

This comment has been minimized.

Copy link
Contributor

commented Jul 22, 2018

This probably can be merged with #2013 which has gdb output for very likely the same problem

@lucasbuchala lucasbuchala added the regex label Mar 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.