Skip Menu |
Report information
Id: 131889
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: emmiller [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Date: Sat, 12 Aug 2017 09:23:18 -0400
To: rakudobug [...] perl.org
From: Evan Miller <emmiller [...] gmail.com>
Subject: Segfault / malloc errors testing Uzu with latest Rakudo
Download (untitled) / with headers
text/plain 870b
$ 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.
Download (untitled) / with headers
text/plain 259b
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
From: Bart Wiegmans <bartwiegmans [...] gmail.com>
Subject: Re: [perl #131889] Segfault / malloc errors testing Uzu with latest Rakudo
To: "(via RT)" <perl6-bugs-followup [...] perl.org>
Date: Mon, 14 Aug 2017 10:23:29 +0200
Download (untitled) / with headers
text/plain 741b
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>:
Show quoted text
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


To: "(via RT)" <perl6-bugs-followup [...] perl.org>
Date: Mon, 14 Aug 2017 10:26:14 +0200
Subject: Re: [perl #131889] Segfault / malloc errors testing Uzu with latest Rakudo
From: Bart Wiegmans <bartwiegmans [...] gmail.com>
Download (untitled) / with headers
text/plain 943b
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>:
Show quoted text
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



Date: Mon, 14 Aug 2017 10:51:34 +0200
To: "(via RT)" <perl6-bugs-followup [...] perl.org>
Subject: Re: [perl #131889] Segfault / malloc errors testing Uzu with latest Rakudo
From: Bart Wiegmans <bartwiegmans [...] gmail.com>
Download (untitled) / with headers
text/plain 1.1k
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>:
Show quoted text
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






This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org