Dear Maintainer,
I guess this crash might be a stack exhaustion.

Given the function treescan in dirs.c would allocate
for locname 4096 bytes, and this function is called recursively,
we would fill up a stack of 8MB, which 'ulimit -s' shows at
my system as default.

Therefore another workaround might be to try to increase the
stack size e.g. by "ulimit -s 16384". (Have not tested it.)

And a possible software change could be to allocate the memory for
locname from heap by e.g. malloc instead of stack.
(If such deep hierarchies are being tried to support ...)

Kind regards,
Bernhard


https://sources.debian.org/src/dump/0.4b47-2/restore/dirs.c/#L292

Reply via email to