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

'Unhandled exception: const_n32 NYI at SeekFromEnd:9154' #6396

Closed
p6rt opened this issue Jul 17, 2017 · 5 comments
Closed

'Unhandled exception: const_n32 NYI at SeekFromEnd:9154' #6396

p6rt opened this issue Jul 17, 2017 · 5 comments
Labels
regression Issue did not exist previously

Comments

@p6rt
Copy link

p6rt commented Jul 17, 2017

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

Searchable as RT131758$

@p6rt
Copy link
Author

p6rt commented Jul 17, 2017

From blackcatoverwall@gmail.com

Start a running script with old rakudo(2017.06), then update rakudo
version(2017.07).

The script raised an exception when exit.

* *Command*​:

$ ./setup-new-coding cpp MEM 54 "Provide placement new with properly
aligned pointers to sufficient storage capacity"

** Before update output*​:

Success create directory
MEM54-CPP-Provide-placement-new-with-properly-aligned-pointers-to-sufficient-storage-capacity.
Create main.cpp.

** After update output, then quit from emacs*​:

Unhandled exception​: const_n32 NYI
at SeekFromEnd​:9154 (/usr/share/perl6/runtime/CORE.setting.moarvm​:)
from acosh​:9154 (/usr/share/perl6/runtime/CORE.setting.moarvm​:)
from localhost​:9154
(/usr/share/perl6/runtime/CORE.setting.moarvm​:THREAD-ENTRY)

*setup-new-coding source*​:

#!/usr/bin/env perl6

sub touch(IO​::Path​:D $path) {
with $path.open(​:w) {
.close;
return True;
}
False;
}

sub prompt(Str $str) {
say $str;
}

sub run-emacs(IO​::Path​:D $path) {
my $proc = Proc​::Async.new('emacs', '-nw', $path.path);

await $proc.start;
}

proto MAIN(Str , Str , Str , Str ) { * }

multi MAIN(
'cpp',
$rule,
$id,
$descripte
) {
my $dir = "{$rule}{$id}-CPP-" ~ $descripte.subst(/\s+/, "-", :g);

if $dir.IO.mkdir() -> $dp {
prompt "Success create directory {$dir.path}.";
if $dp.add("main.cpp").&touch {
prompt "Create main.cpp.";
run-emacs $dp;
}
} else {
fail "Create directory failed​: $!";
}
}

multi MAIN(
'c',
$rule,
$id,
$descripte
) {
my $dir = "{$rule}{$id}-C-" ~ $descripte.subst(/\s+/, "-", :g);

if $dir.IO.mkdir() -> $dp {
prompt "Success create directory {$dir.path}.";
if $dp.add("main.c").&touch {
prompt "Create main.c.";
run-emacs $dp;
}
} else {
fail "Create directory failed​: $!";
}
}

@p6rt
Copy link
Author

p6rt commented Jul 17, 2017

From @zoffixznet

Error from OP​:

Unhandled exception​: const_n32 NYI
at SeekFromEnd​:9154 (/usr/share/perl6/runtime/CORE.setting.moarvm​:)
from acosh​:9154 (/usr/share/perl6/runtime/CORE.setting.moarvm​:)
from localhost​:9154
(/usr/share/perl6/runtime/CORE.setting.moarvm​:THREAD-ENTRY)

@p6rt
Copy link
Author

p6rt commented Jul 20, 2017

From @timo

I wrote a fix, could you try downgrading to 2017.06, running the script,
applying the patch to your 2017.07, making sure the Makefile itself gets
regenerated via Configure.pl, and install, then see if the program still
crashes?

rakudo/rakudo@02667bd890

the commit message also explains what's going wrong here.

@p6rt
Copy link
Author

p6rt commented Jul 20, 2017

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

@p6rt p6rt added the regression Issue did not exist previously label Jan 5, 2020
@AlexDaniel
Copy link
Member

Thanks for reporting! Looks like there was some fix applied, and I don't remember anybody else reporting the same problem. So I'd consider this fixed. Writing a test in this case is not trivial, so perhaps we're better off just calling it resolved and closing the ticket. Thanks @timo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Issue did not exist previously
Projects
None yet
Development

No branches or pull requests

2 participants