Many of these definitely do not depend on readline. So there must be a different underlying problem, and that should be tracked down instead of papering over it.