Bug 198388

Summary: Package mysql lacks IPv6 support
Product: [Fedora] Fedora Reporter: Peter Vrabec <pvrabec>
Component: mysqlAssignee: Tom Lane <tgl>
Status: CLOSED INSUFFICIENT_DATA QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: byte, hhorak, mbacovsk, redhat-bugzilla, triage
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://bugs.mysql.com/bug.php?id=8836
Whiteboard: bzcl34nup
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-07 00:37:08 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:
Bug Depends On:    
Bug Blocks: 195271    

Description Peter Vrabec 2006-07-11 10:23:18 UTC
This bug was reported automaticaly in connection with IPv6 project.
Our aim is to support IPv6 in all Fedora Core packages so FC6 and RHEL5 will be ready for IPv6.
			
This package seems to lack IPv6 support as is illustrated in attached log.
	
Here follows part of scanning log (grep -r F_INET *)/up to 30 lines: 

/mysql-4.1.14/sql-common/client.c:1730:    sock = (my_socket) socket(AF_INET,SOCK_STREAM,0);
/mysql-4.1.14/sql-common/client.c:1744:    sock_addr.sin_family = AF_INET;
/mysql-4.1.14/ndb/src/common/util/SocketClient.cpp:49:  m_servaddr.sin_family = AF_INET;
/mysql-4.1.14/ndb/src/common/util/SocketClient.cpp:55:  m_sockfd= socket(AF_INET, SOCK_STREAM, 0);
/mysql-4.1.14/ndb/src/common/util/SocketServer.cpp:53:  servaddr.sin_family = AF_INET;
/mysql-4.1.14/ndb/src/common/util/SocketServer.cpp:62:  const NDB_SOCKET_TYPE sock  = socket(AF_INET, SOCK_STREAM, 0);
/mysql-4.1.14/ndb/src/common/util/SocketServer.cpp:93:  servaddr.sin_family = AF_INET;
/mysql-4.1.14/ndb/src/common/util/SocketServer.cpp:102:  const NDB_SOCKET_TYPE sock  = socket(AF_INET, SOCK_STREAM, 0);
/mysql-4.1.14/ndb/src/common/transporter/TransporterRegistry.cpp:1354:  theOSEJunkSocketRecv = socket(AF_INET, SOCK_STREAM, 0);
/mysql-4.1.14/ndb/src/common/transporter/TransporterRegistry.cpp:1421:  theOSEJunkSocketSend = socket(AF_INET, SOCK_STREAM, 0);
/mysql-4.1.14/ndb/test/ndbapi/flexBench.cpp:166:    if ((statSock = socket(PF_INET, SOCK_STREAM, 0)) < 0) {
/mysql-4.1.14/ndb/test/ndbapi/flexBench.cpp:176:    saddr.sin_family = AF_INET;
/mysql-4.1.14/ndb/test/src/CpcClient.cpp:462:  cpc_sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
/mysql-4.1.14/ndb/test/src/CpcClient.cpp:467:  sa.sin_family = AF_INET;
/mysql-4.1.14/libmysql/manager.c:109:  if ((sock=(my_socket)socket(AF_INET,SOCK_STREAM,0)) == INVALID_SOCKET)
/mysql-4.1.14/libmysql/manager.c:124:  sock_addr.sin_family = AF_INET;
/mysql-4.1.14/extra/resolveip.c:139:      hpaddr = gethostbyaddr((char*) &(taddr), sizeof(struct in_addr),AF_INET);
/mysql-4.1.14/vio/test-sslserver.c:118:	listen_sd = socket (AF_INET, SOCK_STREAM, 0);
/mysql-4.1.14/vio/test-sslserver.c:122:	sa_serv.sin_family      = AF_INET;
/mysql-4.1.14/vio/test-sslclient.c:72:	client_vio = vio_new(socket (AF_INET, SOCK_STREAM, 0), VIO_TYPE_TCPIP, TRUE);

Comment 1 Robert Scheck 2007-03-12 22:20:07 UTC
Maybe the patch from http://www.ngn.euro6ix.org/IPv6/mysql/ can be merged
and/or ported for 5.0.37?

Comment 2 Tom Lane 2007-03-13 02:11:10 UTC
If that patch were really workable I imagine MySQL AB would have adopted it by now.  Quite aside from 
whether it's got any bugs, the fact that it bypasses important pieces of mysql's authentication system 
seems like a showstopper objection :-(

Comment 3 Bug Zapper 2008-04-03 17:40:20 UTC
Based on the date this bug was created, it appears to have been reported
against rawhide during the development of a Fedora release that is no
longer maintained. In order to refocus our efforts as a project we are
flagging all of the open bugs for releases which are no longer
maintained. If this bug remains in NEEDINFO thirty (30) days from now,
we will automatically close it.

If you can reproduce this bug in a maintained Fedora version (7, 8, or
rawhide), please change this bug to the respective version and change
the status to ASSIGNED. (If you're unable to change the bug's version
or status, add a comment to the bug and someone will change it for you.)

Thanks for your help, and we apologize again that we haven't handled
these issues to this point.

The process we're following is outlined here:
http://fedoraproject.org/wiki/BugZappers/F9CleanUp

We will be following the process here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this
doesn't happen again.

Comment 4 Bug Zapper 2008-05-07 00:37:06 UTC
This bug has been in NEEDINFO for more than 30 days since feedback was
first requested. As a result we are closing it.

If you can reproduce this bug in the future against a maintained Fedora
version please feel free to reopen it against that version.

The process we're following is outlined here:
http://fedoraproject.org/wiki/BugZappers/F9CleanUp