As suggested by the subject. The bug is caused by blindly aliasing comint-dynamic-complete to completion-at-point.