From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1)
Description of problem:
As reported in bug #58317 and #105038 (against RHL9) expect segfaults
if you do a wait before a close. I've reproduced this here on my
RHEL3 box using the same script provided in BZ #58317.
BZ #58317 states that this is fixed in expect-5.39.0-93, and -95 is
available in rawhide, but no errata has been released for this problem.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run the following script (script snatched from BZ #58317):
wait -i $spawn_id
Actual Results: Segmentation fault
Expected Results: no seg fault
Fix confirmed with expect-5.38.0-92.2.
An errata has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.