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

Entering an infinite hot loop during pre-compilation + RAKUDO_MODULE_DEBUG=1 #6034

Open
p6rt opened this issue Jan 26, 2017 · 1 comment
Open
Labels

Comments

@p6rt
Copy link

p6rt commented Jan 26, 2017

Migrated from rt.perl.org#130645 (status was 'new')

Searchable as RT130645$

@p6rt
Copy link
Author

p6rt commented Jan 26, 2017

From agentzh@gmail.com

Hello!

I've noted that moar will enter an infinite hot loop when the
RAKUDO_MODULE_DEBUG=1 environment is specified.

The last few lines of the output on the terminal is like this​:

https://gist.github.com/agentzh/13bc32c6ed67c8dba8151c861903b0d1

Then it just hangs there.

The moar process maxes out the CPU core​:

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
10147 agentzh 20 0 140408 117760 24452 R 100.0 1.4 0​:57.08 moar

strace shows tons of the following write() syscall​:

write(2, " 1 10147 RMD​: dependency checksum
7DE3572D8645BB1BB4E1928CE0EDFACC6CE644BD unit​:
7DE3572D8645BB1BB4E1928CE0EDFACC6CE644BD\n", 124) = -1 EAGAIN
(Resource temporarily unavailable)

All identical.

gdb shows the following backtrace​:

  https://gist.github.com/agentzh/93fb82b1a4c61b4e2478f0b88e466d2e

The version of my rakudo​:

$ perl6 --version
This is Rakudo version 2017.01 built on MoarVM version 2017.01
implementing Perl 6.c.

Details on my operating system​:

$ uname -a
Linux fedora64 4.8.13-100.fc23.x86_64 #​1 SMP Fri Dec 9 14​:51​:40 UTC
2016 x86_64 x86_64 x86_64 GNU/Linux

Removing the RAKUDO_MODULE_DEBUG=1 environment makes the hot looping go away.

Please let me know if you need any further information.

Thanks!
-agentzh

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant