Bug 457965

Summary: expect script hangs on exit
Product: [Fedora] Fedora Reporter: Peter Fales <redhat.com>
Component: expectAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 8   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-09 07:51:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Fales 2008-08-05 19:50:20 UTC
Description of problem:

The following expect program hangs when executed.   strace shows that it's looping on a failing fcntl() call to a closed file descriptor.


Version-Release number of selected component (if applicable):

expect-5.43.0-9.fc8

How reproducible:

very

Steps to Reproduce:

Run the following program:  (This is a stripped down version of the application where the problem was detected)

########################################################################
#!/usr/bin/expect

send_user "\[y/n/cr=n] ";
expect_user {
-re "(\[^\n]*)\n" {
        puts "1";
}
}

send_user "\[y/n/cr=n] ";
expect_user {
-re "(\[^\n]*)\n" {
        puts "2";
}
}

catch { system "date"; } ignore;
catch { wait -nowait; } ignore;

puts "done";

####################################################################

Actual results:

Program hangs.

Expected results:

Normal termination

Additional info:

Comment 1 Vitezslav Crhonek 2008-11-07 09:29:14 UTC
Hi,

It's not fault of expect. Works in F9 - and there were no major changes between F8 and F9 expect. I rebuilt F9 expect for F8 and it didn't work as well, so I'm sure that it's fixed in some other component in F9.

I browsed bugzilla bug did not find any related bug, so I'm not able locate component, which fixed it - to ask possibility of backport to F8.

Comment 2 Peter Fales 2008-11-07 12:47:17 UTC
What version of tcl is used on each of those systems?

Comment 3 Vitezslav Crhonek 2008-11-11 13:44:26 UTC
tcl-8.5.2-2.fc9.x86_64 in F9, F8 machine is not available at the moment, but it was fully updated. So I suppose tcl-8.4.17-1.fc8 in F8.

Comment 4 Vitezslav Crhonek 2008-11-20 11:39:35 UTC
Right, tcl-8.4.17-1.fc8 on F8 machine.

Comment 5 Bug Zapper 2008-11-26 11:04:25 UTC
This message is a reminder that Fedora 8 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 8.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '8'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 8's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 8 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 Bug Zapper 2009-01-09 07:51:54 UTC
Fedora 8 changed to end-of-life (EOL) status on 2009-01-07. Fedora 8 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.