[MDEV-14257] Possible file descriptor leak @ libmariadbclient18 + YaSSL Created: 2017-11-02 Updated: 2017-11-12 Resolved: 2017-11-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | SSL |
| Affects Version/s: | 10.1 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Georgi Nikolov | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Hello, I've found that MySQL client @ MariaDB leaves one file descriptor open. OS is Debian Stretch. A quick one-liner for proof:
This results to:
With mysql_ssl=0 everything is fine. |
| Comments |
| Comment by Elena Stepanova [ 2017-11-11 ] |
|
There is no MySQL client in the scenario at all, only the server and DBI. I don't see much of a leak here – perl process keeps one urandom, it closes all others if you open several connections at once and closes it. Server also seems to keep one urandom. Still, I'll leave it to serg to decide whether there is a problem here. Technically, it's easily reproducible e.g. on MariaDB server installed from the Debian repo on Stretch (thus I'm setting the affect/fix version to 10.1, otherwise arbitrarily). |
| Comment by Sergei Golubchik [ 2017-11-12 ] |
|
I don't think there's anything wrong here. Probably yassl opens /dev/urandom only once on the first use and closes it only when the library is unloaded. Seems reasonable, if it tries to avoid opening/closing /dev/urandom for every new connection. |