Bug 12730

Summary: poll() causes indeterministic program hangs on 3.2 but not 3.1
Product: Base System Reporter: pfeifer <pfeifer>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.2-RELEASE   
Hardware: Any   
OS: Any   

Description pfeifer 1999-07-21 09:40:00 UTC
Since we switched some hosts from 3.1 to 3.2, Pine regularily (though
not deterministically) hangs infinitely when sending e-mail.

A backtrace in the debugger (gcore followed by gdb) reveals the
following:

(gdb) bt
#0  0x282c80f8 in poll () from /usr/lib/libc.so.3
#1  0x282e5279 in res_send () from /usr/lib/libc.so.3
#2  0x282e1fbf in res_query () from /usr/lib/libc.so.3
#3  0x282dba98 in _gethostbydnsaddr () from /usr/lib/libc.so.3
#4  0x282da5b2 in gethostbyaddr () from /usr/lib/libc.so.3
#5  0x81817c2 in tcp_localhost (stream=0x82ca000) at tcp_unix.c:659
#6  0x817c044 in net_localhost (stream=0x82ba530) at mail.c:4645
#7  0x818ac67 in smtp_open_full (dv=0x0, hostlist=0x829fb10,
    service=0x822d247 "smtp", port=25, options=65) at smtp.c:166
#8  0x8128c36 in call_mailer ()
#9  0x8125463 in pine_send ()
#10 0x811f054 in compose_mail ()
#11 0x811e025 in compose_screen ()
#12 0x80bdcd5 in process_cmd ()
#13 0x80d0707 in index_lister ()
#14 0x80cf71a in mail_index_screen ()
#15 0x810c84c in main ()
#16 0x804a539 in _start ()

This is not a Pine problem, the very same Pine 4.10 binary has been
working just fine on 3.1 for a couple of months.

Home directories and /var/mail are NFS mounted from a Solaris 2.6 host.

Originally we used Pine as distributed by its authors, but also 
applying the patches from the FreeBSD ports collection did not
change anything.


Some additional information from a message of mine to
freebsd-stable@freebsd.org. As you see, something similiar happened
with FreeBSD 3.1 but we managed to fix it, but FreeBSD 3.2 breaks again.

Subject:   Re: NFSv3 seriously broken in 3.1

On Mon, 28 Jun 1999, David O'Brien wrote:

How-To-Repeat: NFS mount /var/mail and home directory from a Solaris 2.6 server.
Send lots of e-mail from a FreeBSD 3.2 client until Pine hangs.
Comment 1 iedowse freebsd_committer freebsd_triage 2001-07-10 00:09:39 UTC
State Changed
From-To: open->feedback


Does this problem still occur on more recent releases?
Comment 2 iedowse freebsd_committer freebsd_triage 2001-07-10 17:30:49 UTC
State Changed
From-To: feedback->closed


Submitter can no longer reproduce this and says that the PR can 
be closed.