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

Segfault with --profile #6415

Open
p6rt opened this issue Jul 28, 2017 · 7 comments
Open

Segfault with --profile #6415

p6rt opened this issue Jul 28, 2017 · 7 comments

Comments

@p6rt
Copy link

p6rt commented Jul 28, 2017

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

Searchable as RT131813$

@p6rt
Copy link
Author

p6rt commented Jul 28, 2017

From @lizmat

$ perl6 —ll-exception -e 'my @​a = (^10000)>>.Str' segfaults,

$ perl6 —ll-exception -e 'my @​a = (^1000)>>.Str’ doesn’t

testing with some values, it looks like any value beyond 9700 makes it almost always crash. Just below that it only crashes occasionally.

This is Rakudo version 2017.07-84-gc1e41f9 built on MoarVM version 2017.07-253-g82c282e

@p6rt
Copy link
Author

p6rt commented Jul 28, 2017

From @timo

It could be that the commit i just pushed to moarvm fixes this, please
verify (the code doesn't crash with the patch)

@p6rt
Copy link
Author

p6rt commented Jul 28, 2017

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

@p6rt
Copy link
Author

p6rt commented Jan 6, 2018

From @dogbert17

On Fri, 28 Jul 2017 15​:52​:53 -0700, timo wrote​:

It could be that the commit i just pushed to moarvm fixes this, please
verify (the code doesn't crash with the patch)

Seems to work properly​:

dogbert@​dogbert-VirtualBox ~/repos/rakudo $ ./perl6 -v
This is Rakudo version 2017.12-124-g6a6470f9d built on MoarVM version 2017.12-20-g57103408
implementing Perl 6.c.
dogbert@​dogbert-VirtualBox ~/repos/rakudo $ ./perl6 --profile -e 'my @​a = (^10000)>>.Str'
Writing profiler output to profile-1515272304.87249.html
dogbert@​dogbert-VirtualBox ~/repos/rakudo $ ./perl6 --profile -e 'my @​a = (^25000)>>.Str'
Writing profiler output to profile-1515272310.68317.html
dogbert@​dogbert-VirtualBox ~/repos/rakudo $

@p6rt
Copy link
Author

p6rt commented Jan 6, 2018

From @AlexDaniel

Closable with rakudo tests then.

On 2018-01-06 12​:59​:07, jan-olof.hendig@​bredband.net wrote​:

On Fri, 28 Jul 2017 15​:52​:53 -0700, timo wrote​:

It could be that the commit i just pushed to moarvm fixes this,
please
verify (the code doesn't crash with the patch)

Seems to work properly​:

dogbert@​dogbert-VirtualBox ~/repos/rakudo $ ./perl6 -v
This is Rakudo version 2017.12-124-g6a6470f9d built on MoarVM version
2017.12-20-g57103408
implementing Perl 6.c.
dogbert@​dogbert-VirtualBox ~/repos/rakudo $ ./perl6 --profile -e 'my
@​a = (^10000)>>.Str'
Writing profiler output to profile-1515272304.87249.html
dogbert@​dogbert-VirtualBox ~/repos/rakudo $ ./perl6 --profile -e 'my
@​a = (^25000)>>.Str'
Writing profiler output to profile-1515272310.68317.html
dogbert@​dogbert-VirtualBox ~/repos/rakudo $

@p6rt
Copy link
Author

p6rt commented Feb 4, 2018

From @AlexDaniel

Actually, I've been trying to reproduce it on the said revision with --profile, --ll-exception and whatnot, and I can't. I think this is an issue on OS X and therefore should be confirmed (and tested) on OS X also.

On 2018-01-06 12​:59​:07, jan-olof.hendig@​bredband.net wrote​:

On Fri, 28 Jul 2017 15​:52​:53 -0700, timo wrote​:

It could be that the commit i just pushed to moarvm fixes this,
please
verify (the code doesn't crash with the patch)

Seems to work properly​:

dogbert@​dogbert-VirtualBox ~/repos/rakudo $ ./perl6 -v
This is Rakudo version 2017.12-124-g6a6470f9d built on MoarVM version
2017.12-20-g57103408
implementing Perl 6.c.
dogbert@​dogbert-VirtualBox ~/repos/rakudo $ ./perl6 --profile -e 'my
@​a = (^10000)>>.Str'
Writing profiler output to profile-1515272304.87249.html
dogbert@​dogbert-VirtualBox ~/repos/rakudo $ ./perl6 --profile -e 'my
@​a = (^25000)>>.Str'
Writing profiler output to profile-1515272310.68317.html
dogbert@​dogbert-VirtualBox ~/repos/rakudo $

@p6rt
Copy link
Author

p6rt commented May 11, 2019

From @dogbert17

On Sun, 04 Feb 2018 02​:40​:44 -0800, alex.jakimenko@​gmail.com wrote​:

Actually, I've been trying to reproduce it on the said revision with
--profile,
--ll-exception and whatnot, and I can't. I think this is an issue on
OS X and
therefore should be confirmed (and tested) on OS X also.

On 2018-01-06 12​:59​:07, jan-olof.hendig@​bredband.net wrote​:

On Fri, 28 Jul 2017 15​:52​:53 -0700, timo wrote​:

It could be that the commit i just pushed to moarvm fixes this,
please
verify (the code doesn't crash with the patch)

Seems to work properly​:

dogbert@​dogbert-VirtualBox ~/repos/rakudo $ ./perl6 -v
This is Rakudo version 2017.12-124-g6a6470f9d built on MoarVM version
2017.12-20-g57103408
implementing Perl 6.c.
dogbert@​dogbert-VirtualBox ~/repos/rakudo $ ./perl6 --profile -e 'my
@​a = (^10000)>>.Str'
Writing profiler output to profile-1515272304.87249.html
dogbert@​dogbert-VirtualBox ~/repos/rakudo $ ./perl6 --profile -e 'my
@​a = (^25000)>>.Str'
Writing profiler output to profile-1515272310.68317.html
dogbert@​dogbert-VirtualBox ~/repos/rakudo $

Tested by Lizmat on OS X, see https://colabti.org/irclogger/irclogger_log/perl6-dev?date=2019-05-11#l61

@p6rt p6rt added the testneeded 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
Development

No branches or pull requests

1 participant