OpenSolaris

Printable Version Enter a New Search
Bug ID 4927647
Synopsis pty loses last output before close/exit
State 11-Closed:Verified (Closed)
Category:Subcategory kernel:streams
Keywords PITSTOPPER | dtrace
Responsible Engineer Peter Memishian
Reported Against 1.2 , 1.5 , 5.9 , s10_dev
Duplicate Of
Introduced In solaris_2.0
Commit to Fix s10_62
Fixed In s10_62
Release Fixed solaris_10(s10_62)
Related Bugs 4530041 , 4695559 , 4892148 , 4926624 , 4971630 , 4985311 , 5012511 , 4813669
Submit Date 24-September-2003
Last Update Date 24-September-2003
Description
in expect 5.38.0 on solaris 9, run the following:
script: 

for { set i 1 } { 1 } { incr i } {
    spawn echo foobarbaz
    expect {
	"foobarbaz" {
	    puts "ok"
	    expect eof
	    wait
	}
	eof {
	    puts "$i passes"
	    wait
	    exit 1
	}
    } 
}

It also appears to fail in expect 5.26.0

It should loop forever; instead, it exits after a few iterations on multiprocessor systems running s10.
It appears to loop "forever" on s10 uniprocessors.

A user at  xxxxx  reports that it exits after "40 to 400+" iterations on a (uniprocessor) sunblade 100
Work Around
N/A
Comments
N/A