Bug #88858 | mysql_ping generates SIGPIPE on timed out connection. | ||
---|---|---|---|
Submitted: | 11 Dec 2017 12:59 | Modified: | 11 Dec 2017 13:16 |
Reporter: | Alastair Growcott | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: C API (client library) | Severity: | S3 (Non-critical) |
Version: | 5.7.20 | OS: | Linux (XUbuntu) |
Assigned to: | CPU Architecture: | Any | |
Tags: | mysql_ping |
[11 Dec 2017 12:59]
Alastair Growcott
[11 Dec 2017 13:03]
Alastair Growcott
I've just realised that my code may have called mysql_close() and not reconnected before calling mysql_ping() which may mean that this is a duplicate of https://bugs.mysql.com/bug.php?id=56669 although that issue generates a SIGSEGV.
[11 Dec 2017 13:13]
Alastair Growcott
I think I'm having a bad day. It looks very definitely like a poorly managed close of the DB handle (I forgot to set the boolean flag indicating connection status to false) is causing an old and probably deallocated database handle to be used. Please close this bug and my sincerest apologies for wasting your time.
[11 Dec 2017 13:16]
MySQL Verification Team
Thank you for the feedback.