Subject: pkg/30222: pkgsrc tnftp-20050511 fails on Solaris in getsockopt call
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <rquinn@sec.sprint.net>
List: pkgsrc-bugs
Date: 05/13/2005 13:40:00
>Number:         30222
>Category:       pkg
>Synopsis:       pkgsrc tnftp-20050511 fails on Solaris in getsockopt call
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 13 13:40:00 +0000 2005
>Originator:     Rob Quinn
>Release:        pkgsrc-current, Solaris2.9
>Organization:
>Environment:
>Description:
struck:~ %download-vulnerability-list 
ftp: unable to get default rcvbuf size: Invalid argument
***WARNING*** Download of vulnerabilities file failed
struck:~ %ftp
ftp: unable to get default rcvbuf size: Invalid argument

struck:~ %truss ftp
 [...]
getustack(0xFFBFF65C)
getrlimit(RLIMIT_STACK, 0xFFBFF654)             = 0
getcontext(0xFFBFF490)
setustack(0xFF1C3A5C)
so_socket(PF_INET, SOCK_STREAM, IPPROTO_IP, "", 1) = 3
getsockopt(3, SOL_SOCKET, SO_RCVBUF, 0x0005CFC4, 0xFFBFF9AC, 1) Err#22 EINVAL
fstat64(2, 0xFFBFE9D8)                          = 0
ftpwrite(2, " f t p", 3)                                = 3
: write(2, " :  ", 2)                           = 2
unable to get default rcvbuf sizewrite(2, " u n a b l e   t o   g e".., 33)     = 33
: write(2, " :  ", 2)                           = 2
brk(0x0005D040)                                 = 0
brk(0x0005F040)                                 = 0
Invalid argumentwrite(2, " I n v a l i d   a r g u".., 16)      = 16

write(2, "\n", 1)                               = 1
_exit(1)

>How-To-Repeat:

>Fix:
Revert to tnftp-20050103.