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 / malloc errors testing Uzu with latest Rakudo #6444

Open
p6rt opened this issue Aug 12, 2017 · 6 comments
Open

Segfault / malloc errors testing Uzu with latest Rakudo #6444

p6rt opened this issue Aug 12, 2017 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Aug 12, 2017

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

Searchable as RT131889$

@p6rt
Copy link
Author

p6rt commented Aug 12, 2017

From emmiller@gmail.com

$ zef install Template6
$ git clone git@​github.com​:scmorrison/uzu.git
$ cd uzu
$ perl6 t/02-build.t

1..3
  1..5
Clear old files
Create build directory
Copy public, assets
Compile templates [en]
fish​: 'perl6 t/02-build.t' terminated by signal SIGSEGV (Address boundary
error)

Other memory errors sometimes appear instead, e.g.​:

moar(63339,0x70000b4a6000) malloc​: *** error for object 0x7fa57da56e00​:
double free
*** set a breakpoint in malloc_error_break to debug

moar(63470,0x700006845000) malloc​: *** error for object 0x7ff9dfdbd290​:
pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

$ perl6 --version
This is Rakudo version 2017.07-148-g5fcce6732 built on MoarVM version
2017.07-382-g348b4262
implementing Perl 6.c.

Might be related to #​131888; I see that error occasionally as well. I am
running Mac OS X 10.12.6.

@p6rt
Copy link
Author

p6rt commented Aug 13, 2017

From emmiller@gmail.com

Update​: Uzu has been updated to remove parallelism in order to work around the crash. To reproduce the issue, check out commit 6e0997d​:

$ zef install Template6
$ git clone git@​github.com​:scmorrison/uzu.git
$ cd uzu
$ git checkout 6e0997d
$ perl6 t/02-build.t

@p6rt
Copy link
Author

p6rt commented Aug 14, 2017

From @bdw

Can reproduce, thank you!

This also requires the following modules​:

JSON​::Fast (broken test on my machine, but may be for any reason)
File​::Temp
HTTP​::Server​::Async
HTTP​::Server​::Router
Test​::Output
Template​::Mustache
YAMLish

(I'm going to guess some of these were installed by rakudo star)

Arguably, we should have more of a 'batteries included' approach to a
rakudo release.

2017-08-13 15​:05 GMT+02​:00 Evan Miller via RT <perl6-bugs-followup@​perl.org>
:

Update​: Uzu has been updated to remove parallelism in order to work around
the crash. To reproduce the issue, check out commit 6e0997d​:

$ zef install Template6
$ git clone git@​github.com​:scmorrison/uzu.git
$ cd uzu
$ git checkout 6e0997d
$ perl6 t/02-build.t

@p6rt
Copy link
Author

p6rt commented Aug 14, 2017

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

@p6rt
Copy link
Author

p6rt commented Aug 14, 2017

From @bdw

It's a bus error that goes away with MVM_JIT_DISABLE.
This is going to be interesting.

2017-08-14 10​:23 GMT+02​:00 Bart Wiegmans <bartwiegmans@​gmail.com>​:

Can reproduce, thank you!

This also requires the following modules​:

JSON​::Fast (broken test on my machine, but may be for any reason)
File​::Temp
HTTP​::Server​::Async
HTTP​::Server​::Router
Test​::Output
Template​::Mustache
YAMLish

(I'm going to guess some of these were installed by rakudo star)

Arguably, we should have more of a 'batteries included' approach to a
rakudo release.

2017-08-13 15​:05 GMT+02​:00 Evan Miller via RT <
perl6-bugs-followup@​perl.org>​:

Update​: Uzu has been updated to remove parallelism in order to work
around the crash. To reproduce the issue, check out commit 6e0997d​:

$ zef install Template6
$ git clone git@​github.com​:scmorrison/uzu.git
$ cd uzu
$ git checkout 6e0997d
$ perl6 t/02-build.t

@p6rt
Copy link
Author

p6rt commented Aug 14, 2017

From @bdw

Hang on, it's only MVM_JIT_DISABLE sensitive on my branch (even-moar-jit).
It appears to happen within the perl6 extension opcodes.
Regards,
Bart

2017-08-14 10​:26 GMT+02​:00 Bart Wiegmans <bartwiegmans@​gmail.com>​:

It's a bus error that goes away with MVM_JIT_DISABLE.
This is going to be interesting.

2017-08-14 10​:23 GMT+02​:00 Bart Wiegmans <bartwiegmans@​gmail.com>​:

Can reproduce, thank you!

This also requires the following modules​:

JSON​::Fast (broken test on my machine, but may be for any reason)
File​::Temp
HTTP​::Server​::Async
HTTP​::Server​::Router
Test​::Output
Template​::Mustache
YAMLish

(I'm going to guess some of these were installed by rakudo star)

Arguably, we should have more of a 'batteries included' approach to a
rakudo release.

2017-08-13 15​:05 GMT+02​:00 Evan Miller via RT <
perl6-bugs-followup@​perl.org>​:

Update​: Uzu has been updated to remove parallelism in order to work
around the crash. To reproduce the issue, check out commit 6e0997d​:

$ zef install Template6
$ git clone git@​github.com​:scmorrison/uzu.git
$ cd uzu
$ git checkout 6e0997d
$ perl6 t/02-build.t

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

No branches or pull requests

1 participant