crystal-community / icr

Interactive console for Crystal programming language
MIT License
505 stars 40 forks source link

Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS #71

Closed veelenga closed 6 years ago

veelenga commented 6 years ago

Steps to reproduce:

$ icr                                                                                                                                                                   
icr(0.23.1) > %w(one two
)
Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS
[1]    75036 abort      icr

You will need to wait a bit to see heap overflow and icr crash

jwoertink commented 6 years ago

what? lol. I've never even seen that error before. Any idea what that even means?

veelenga commented 6 years ago

Ah, that seems to be a bug in Crystal https://github.com/crystal-lang/crystal/issues/5239. I'm not an expert in this, but it looks like a heap overflow related problem. GC suggests to increase some configuration variables because of overflow.