Bug #40622 Agent drops connection because of invalid sa_family in client connection

Submitted: 10 Nov 2008 20:16 Modified: 13 Nov 2008 9:30
Reporter: Kay Roepke Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Agent Severity:S1 (Critical)
Version:2.0.0.7092 OS:HP/UX (11.23)
Assigned to: Kay Roepke CPU Architecture:Any
Tags: kay_merlin_immediate

[10 Nov 2008 20:16] Kay Roepke
Description:
Upon accepting a client connection, the proxy fails to resolve the client hostname, because the struct sockaddr reference is invalid.

2008-11-07 12:39:08: (debug) network-socket.c.731: ignoring invalid sa_family 24576
2008-11-07 12:39:08: (message) network-mysqld.c.1459: resolving address failed, closing connection

How to repeat:
Start the proxy or agent and connect with a mysql client.

The sockaddr_in will not be filled by accept() even though the connecting is correctly accepted and the socket is connected, causing later code to fail.

Suggested fix:
unknown.
[10 Nov 2008 22:46] Kay Roepke
fix pushed.

On IA64 the types int and socklen_t have different sizes (int's are 32bits, socklen_t == long == 64bit), causing accept() to be unable to populate the sockaddr of the accepted socket.
[11 Nov 2008 21:13] Carsten Segieth
- testing Hudson build 3213 QUAN works with and without SSL
- now waiting for the next installer to finally close this bug ...
[12 Nov 2008 14:01] Carsten Segieth
2.0.0.7094 fails, it looks that the fix didn't go into this build
[13 Nov 2008 9:30] Carsten Segieth
OK in 2.0.0.7095

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.055 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.