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

(and other crashes) when using .hyper #4507

Open
p6rt opened this issue Sep 3, 2015 · 7 comments
Open

(and other crashes) when using .hyper #4507

p6rt opened this issue Sep 3, 2015 · 7 comments
Labels
conc SEGV Segmentation fault, bus error, etc.

Comments

@p6rt
Copy link

p6rt commented Sep 3, 2015

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

Searchable as RT125978$

@p6rt
Copy link
Author

p6rt commented Sep 3, 2015

From perl6@6dof.xyz

* How to reproduce (where ip is the attached file)​:

  perl6 -e "say 'ip'.IO.lines.hyper.map(* ~~ /​:constant @​l = (1 ... 255).list; @​l ** 4 % '.'/).all.so"

* Expected output​:

  True

  that is, as without .hyper​:

  perl6 -e "say 'ip'.IO.lines.map(* ~~ /​:constant @​l = (1 ... 255).list; @​l ** 4 % '.'/).all.so"
  True

* Current output (any of the 5 following ones)​:

False


Segmentation fault (core dumped)


Internal error​: invalid thread ID 471 in GC work pass


Can only resume an exception object
  in any at /home/user/.rakudobrew/glr-nom/install/share/perl6/runtime/CORE.setting.moarvm​:1
  in sub THROW at /home/user/.rakudobrew/glr-nom/install/share/perl6/runtime/CORE.setting.moarvm​:1


*** Error in `/home/user/.rakudobrew/glr-nom/install/bin/moar'​: double free or corruption (!prev)​: 0x00007ff45c1c70b0 ***
======= Backtrace​: =========
/lib64/libc.so.6(+0x77d9e)[0x7ff46c267d9e]
/lib64/libc.so.6(cfree+0x5b5)[0x7ff46c2739f5]
/home/user/.rakudobrew/glr-nom/install/lib/libmoar.so(MVM_frame_dec_ref+0x93)[0x7ff46c711e33]
/home/user/.rakudobrew/glr-nom/install/lib/libmoar.so(MVM_frame_try_return+0x26b)[0x7ff46c7161fb]
/home/user/.rakudobrew/glr-nom/install/lib/libmoar.so(MVM_interp_run+0x12e3d)[0x7ff46c70dc2d]
/home/user/.rakudobrew/glr-nom/install/lib/libmoar.so(+0x16c4ce)[0x7ff46c7194ce]
/home/user/.rakudobrew/glr-nom/install/lib/libmoar.so(+0x217367)[0x7ff46c7c4367]
/lib64/libpthread.so.0(+0x752a)[0x7ff46bcd352a]
/lib64/libc.so.6(clone+0x6d)[0x7ff46c2f022d]

@p6rt
Copy link
Author

p6rt commented Sep 3, 2015

From perl6@6dof.xyz

10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.128.27
10.129.128.27
164.129.122.105
164.129.122.105
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.52.139.42
10.52.139.42
10.52.139.42
10.52.139.42
10.129.108.16
10.52.139.42
10.52.139.42
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.52.139.42
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.52.139.42
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.52.139.42
10.52.139.42
10.52.139.42
10.52.139.42
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
10.129.108.16
10.129.108.16
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
10.129.108.16
10.129.108.16
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
10.129.92.1
10.129.92.1
10.129.108.16
10.129.108.16
10.129.92.1
10.129.92.1
10.129.102.72
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
164.129.122.74
164.129.122.74
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
164.129.122.74
164.129.122.74
10.129.102.49
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.102.49
10.129.102.49
10.129.102.49
10.129.108.16
10.129.108.16
10.52.139.42
10.52.139.42
10.52.139.42
10.52.139.42
10.52.139.42
10.52.139.42
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
164.129.122.135
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.108.16
10.129.108.16
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.92.1
10.129.92.1
10.129.108.16
10.129.108.16
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.52.139.55
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.90.181
10.129.90.181
10.157.9.59
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.157.9.59
10.157.9.59
10.157.9.59
10.157.9.59
10.157.9.59
10.157.9.59
10.157.9.59
10.157.9.59
10.157.9.59
10.157.9.59
10.157.9.59
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.157.9.10
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.129.102.49
10.52.139.55
10.52.139.55
10.52.139.55
10.52.139.55
10.157.9.59
10.157.9.59
10.157.9.59
10.157.9.59
10.157.9.59
10.157.9.59
10.157.9.59
10.157.9.59
10.157.9.59
10.157.9.59
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.157.9.59
10.157.9.126
167.4.19.171
167.4.19.171
10.157.9.126
10.157.9.126
10.157.9.126
10.157.9.59
10.157.9.59
10.157.9.59
10.157.9.126
10.157.9.59
10.157.9.59
10.157.9.59
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
164.129.123.14
164.129.123.14
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.157.9.59
10.157.9.59
10.157.9.59
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.157.9.59
10.157.9.59
10.157.9.59
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.128.27
10.129.128.27
10.129.128.27
10.129.128.27
10.129.128.27
10.129.128.27
10.129.128.27
10.129.128.27
10.129.108.16
10.129.108.16
10.18.58.120
10.18.58.120
10.18.58.120
10.251.17.207
10.251.17.207
10.201.22.149
10.201.22.149
10.201.22.149
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.18.94.206
10.129.92.1
10.129.92.1
10.18.94.206
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.18.94.206
10.129.92.1
10.18.94.206
10.18.94.206
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.18.94.206
10.18.94.206
10.129.92.1
10.18.94.206
10.18.94.206
10.129.92.1
10.18.94.206
10.129.92.1
10.18.94.206
10.129.92.1
10.18.94.206
10.18.94.206
10.18.94.206
10.18.94.206
10.18.94.206
10.129.92.1
10.129.92.1
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.92.1
10.129.92.1
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.92.1
10.129.92.1
10.129.108.16
10.129.108.16
10.129.108.16
10.129.108.16
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
164.129.123.14
164.129.123.14
164.129.123.14
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.108.16
10.129.108.16
10.157.9.59
10.157.9.59
10.51.110.159
10.51.110.159
10.157.9.59
10.157.9.59
164.129.122.164
164.129.122.164
10.157.9.59
10.157.9.59
164.129.122.164
164.129.122.164
10.129.92.1
10.129.92.1
10.201.22.149
10.199.13.73
10.199.13.73
10.199.13.73
10.199.13.73
10.199.13.73
10.129.92.1
10.129.92.1
10.129.178.99
10.129.178.99
10.129.178.99
10.129.178.99
10.129.178.99
10.129.178.99
10.129.92.1
10.129.92.1
10.129.102.49
10.129.102.49
10.129.92.1
10.129.92.1
10.18.94.206
10.18.94.65
10.18.94.65
10.18.94.65
10.18.94.65
10.18.94.65
10.18.94.65
10.18.94.65
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.157.9.59
10.157.9.59
10.157.5.182
10.157.9.59
10.157.9.59
10.157.12.133
10.157.12.133
10.157.12.133
10.157.12.133
10.157.12.133
10.129.108.16
10.129.108.16
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.92.1
10.129.102.49
10.129.166.109
10.129.167.165
10.129.167.165
10.129.167.165
10.129.167.3
10.129.167.3
10.129.102.49
10.129.102.49
164.129.122.163
164.129.122.163
164.129.122.163
164.129.122.163
164.129.122.163

@p6rt
Copy link
Author

p6rt commented Sep 4, 2015

From perl6@6dof.xyz

Another way to produce such this issue​:

perl6 -e "say 'ip'.IO.lines.hyper.map(* ~~ /<{ (1...255).list }> '.'/).all.so"
Incompatible MROs in P6opaque rebless
  in any mixin at src/gen/m-Metamodel.nqp​:1273
  in whatevercode at -e​:1

Incompatible MROs in P6opaque rebless
  in any mixin at src/gen/m-Metamodel.nqp​:1273
  in whatevercode at -e​:1

Incompatible MROs in P6opaque rebless
  in any mixin at src/gen/m-Metamodel.nqp​:1273
  in whatevercode at -e​:1

Method 'NFA' not found for invocant of class 'Any'
  in whatevercode at -e​:1

Cannot invoke this object (REPR​: Null, cs = 0)

Segmentation fault (core dumped)


Incompatible MROs in P6opaque rebless
  in any mixin at src/gen/m-Metamodel.nqp​:1273
  in whatevercode at -e​:1

Incompatible MROs in P6opaque rebless
  in any mixin at src/gen/m-Metamodel.nqp​:1273
  in whatevercode at -e​:1

Incompatible MROs in P6opaque rebless
  in any mixin at src/gen/m-Metamodel.nqp​:1273
  in whatevercode at -e​:1

*** Error in `/home/user/.rakudobrew/glr-nom/install/bin/moar'​: double free or corruption (fasttop)​: 0x00007f44484c8360 ***
======= Backtrace​: =========
/lib64/libc.so.6(+0x77d9e)[0x7f44604a7d9e]
/lib64/libc.so.6(cfree+0x5b5)[0x7f44604b39f5]
/home/user/.rakudobrew/glr-nom/install/lib/libmoar.so(+0x19bc46)[0x7f4460988c46]
/home/user/.rakudobrew/glr-nom/install/lib/libmoar.so(MVM_interp_run+0x7c7)[0x7f446093b5b7]
/home/user/.rakudobrew/glr-nom/install/lib/libmoar.so(+0x16c4ce)[0x7f44609594ce]
/home/user/.rakudobrew/glr-nom/install/lib/libmoar.so(+0x217367)[0x7f4460a04367]
/lib64/libpthread.so.0(+0x752a)[0x7f445ff1352a]
/lib64/libc.so.6(clone+0x6d)[0x7f446053022d]

@p6rt
Copy link
Author

p6rt commented Sep 4, 2015

From perl6@6dof.xyz

Another way to produce such this issue​:

perl6 -e "say 'ip'.IO.lines.hyper.map(* ~~ /<{ (1...255).list }> '.'/).all.so"
Incompatible MROs in P6opaque rebless
  in any mixin at src/gen/m-Metamodel.nqp​:1273
  in whatevercode at -e​:1

Incompatible MROs in P6opaque rebless
  in any mixin at src/gen/m-Metamodel.nqp​:1273
  in whatevercode at -e​:1

Incompatible MROs in P6opaque rebless
  in any mixin at src/gen/m-Metamodel.nqp​:1273
  in whatevercode at -e​:1

Method 'NFA' not found for invocant of class 'Any'
  in whatevercode at -e​:1

Cannot invoke this object (REPR​: Null, cs = 0)

Segmentation fault (core dumped)


Incompatible MROs in P6opaque rebless
  in any mixin at src/gen/m-Metamodel.nqp​:1273
  in whatevercode at -e​:1

Incompatible MROs in P6opaque rebless
  in any mixin at src/gen/m-Metamodel.nqp​:1273
  in whatevercode at -e​:1

Incompatible MROs in P6opaque rebless
  in any mixin at src/gen/m-Metamodel.nqp​:1273
  in whatevercode at -e​:1

*** Error in `/home/user/.rakudobrew/glr-nom/install/bin/moar'​: double free or corruption (fasttop)​: 0x00007f44484c8360
======= Backtrace​: =========
/lib64/libc.so.6(+0x77d9e)[0x7f44604a7d9e]
/lib64/libc.so.6(cfree+0x5b5)[0x7f44604b39f5]
/home/user/.rakudobrew/glr-nom/install/lib/libmoar.so(+0x19bc46)[0x7f4460988c46]
/home/user/.rakudobrew/glr-nom/install/lib/libmoar.so(MVM_interp_run+0x7c7)[0x7f446093b5b7]
/home/user/.rakudobrew/glr-nom/install/lib/libmoar.so(+0x16c4ce)[0x7f44609594ce]
/home/user/.rakudobrew/glr-nom/install/lib/libmoar.so(+0x217367)[0x7f4460a04367]
/lib64/libpthread.so.0(+0x752a)[0x7f445ff1352a]
/lib64/libc.so.6(clone+0x6d)[0x7f446053022d]

@p6rt
Copy link
Author

p6rt commented Sep 14, 2015

From perl6@6dof.xyz

http://irclog.perlgeek.de/perl6/2015-09-14#i_11216866

19​:18 jnthn https://rt-archive.perl.org/perl6/Ticket/Display.html?id=125978 seems stable locally
19​:18 Perhaps thanks to my invocation race fixes
[...]
19​:19 jnthn cdc​: Maybe you could test ^^ on latest

I did some tests, and sadly it still segfaults​:

  $ perl6 -e "say 'ip'.IO.lines.hyper.map(* ~~ /<{ (1...255).list }> '.'/).list"
  *** Error in `/usr/local/cedric/.rakudobrew/moar-nom/install/bin/moar'​: double free or corruption (fasttop)​: 0x00007f6a94380bf0 ***
  Incompatible MROs in P6opaque rebless
  in any mixin at gen/moar/m-Metamodel.nqp​:1273
  in whatevercode at -e​:1

and​:

  $ perl6 -e "say 'ip'.IO.lines.hyper.map(* ~~ /<{ (1...255).list }> '.'/).list"
  *** Error in `/usr/local/cedric/.rakudobrew/moar-nom/install/bin/moar'​: free()​: invalid size​: 0x00007fb6a0114090 ***
  ======= Backtrace​: =========
  /lib64/libc.so.6(+0x7f93a)[0x7fb6a126393a]

where​:

  $ perl6 --version
  This is perl6 version 2015.07.1-928-g65d33be built on MoarVM version 2015.08-34-g113c3b5

@p6rt
Copy link
Author

p6rt commented Sep 15, 2015

From @jnthn

On Mon Sep 14 13​:07​:32 2015, perl6@​6dof.xyz wrote​:

http://irclog.perlgeek.de/perl6/2015-09-14#i_11216866

19​:18 jnthn https://rt-archive.perl.org/perl6/Ticket/Display.html?id=125978 seems
stable locally
19​:18 Perhaps thanks to my invocation race fixes
[...]
19​:19 jnthn cdc​: Maybe you could test ^^ on latest

I did some tests, and sadly it still segfaults​:

$ perl6 -e "say 'ip'.IO.lines.hyper.map(* ~~ /<{ (1...255).list }>
'.'/).list"
*** Error in `/usr/local/cedric/.rakudobrew/moar-
nom/install/bin/moar'​: double free or corruption (fasttop)​:
0x00007f6a94380bf0 ***
Incompatible MROs in P6opaque rebless
in any mixin at gen/moar/m-Metamodel.nqp​:1273
in whatevercode at -e​:1

and​:

$ perl6 -e "say 'ip'.IO.lines.hyper.map(* ~~ /<{ (1...255).list }>
'.'/).list"
*** Error in `/usr/local/cedric/.rakudobrew/moar-
nom/install/bin/moar'​: free()​: invalid size​: 0x00007fb6a0114090 ***
======= Backtrace​: =========
/lib64/libc.so.6(+0x7f93a)[0x7fb6a126393a]

where​:

$ perl6 --version
This is perl6 version 2015.07.1-928-g65d33be built on MoarVM version
2015.08-34-g113c3b5

It seems that we do an EVAL when interpolating the regex, and that some issues with thread safety in the Perl 6 compiler (or perhaps in the way it gets code-gen'd) is at least somewhat to blame. This crashes in similar ways​:

perl6-m -e "await (^1000).map({ start { EVAL '/0|1|2/' } }); say 'ok'"

Turning on MVM_CROSS_THREAD_WRITE_LOG shows various suspect things.

@p6rt
Copy link
Author

p6rt commented Sep 15, 2015

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

@p6rt p6rt added conc SEGV Segmentation fault, bus error, etc. labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conc SEGV Segmentation fault, bus error, etc.
Projects
None yet
Development

No branches or pull requests

1 participant