We've just had a report of a Rabbit broker dying trying to allocate
approximately 1PB of memory:
Slogan: std_alloc: Cannot allocate 1124304355803072 bytes of memory (of
Which is unfortunate enough in itself - but arg_reg? My understanding of
beam internals is not great, but that looks to be something like a stack
frame. A 1PB stack frame?
As far as I can see "arg_reg" memory is only allocated in one place,
around line 3100 of beam_emu.c:
...where size is set to c_p->arity * sizeof(c_p->arg_reg).
process.arg_reg is an Eterm*, so sizeof(Eterm) *cannot* be huge, so it
must be the arity which is ~10^15. We have some excessive arities in
RabbitMQ, but not quite to that extent.
Does anyone have any idea how this could arise, or can it just be
chalked up to cosmic rays?
erlang-questions mailing list