Red Hat Bugzilla – Bug 16275
Infinite recursion in "apmd status" script
Last modified: 2008-05-01 11:37:57 EDT
The script in /etc/rc.d/init.d/apmd defines a shell function status(),
which includes the line "status apmd". This was presumably intended to
invoke the status() of /etc/init.d/functions, but instead ends up calling
itself recursively, ultimately leading to the shell running out of memory
A natural fix would be to rename the status() of apmd, or to simply inline
its body in the case-statement below.
Replacing status with dostatus() for the internal function makes everything
Bero, please fix this ASAP.
Has been fixed (probably by Bero).
Would this be liable to cause '/etc/rc.d/init.d/apmd status' to seg fault and
dump core? gdb -c core followed by bt gives me a very very very long list of