Fix core-dump-problem on 5.0 or later.
PR: ports/46031 Submitted by: Munehiro Matsuda <haro@h4.dion.ne.jp>