Alessandro Vesely wrote:
Hi all,
Today I recompiled courier-authlib and this triggered the "bug": I got
/usr/local/sbin/imapd: xrealloc: ../bash/subst.c:512: cannot reallocate
512 bytes (0 bytes allocated)
same for imapd-ssl; the rest worked OK.
Note that /usr/local/sbin/imapd is a softlink to a shell script. If I
invoke that script directly, I get the same result. However, if I
_source_ it, it works.
Later on, I've made a copy of the script for testing. It turns out that
execution stops when bash expands the command line that invokes
/usr/bin/env. Replacing "/bin/sh" with "/bin/dash" on the shebang works.
Thus, it is rather a bash extra memory consumption. You may play with
the attached script to check when bash consumes more memory than allowed
by its own ulimit. On the etch64 system I use, it stops either in
subst.c or in make_cmd.c
That certainly explains why this error isn't easily reproducible.
Thanks for catching this.
Regards
Racke
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]