php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71759 mysqlnd_ms segfaults when connection denied
Submitted: 2016-03-09 15:42 UTC Modified: 2017-10-24 04:30 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:-1 (-100.0%)
From: dez at majemedia dot com Assigned:
Status: Suspended Package: mysqlnd_ms (PECL)
PHP Version: 5.6.19 OS: Ubuntu 14.04 LTS
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dez at majemedia dot com
New email:
PHP Version: OS:

 

 [2016-03-09 15:42 UTC] dez at majemedia dot com
Description:
------------
I received the following error when I was trying to connect to my database servers but the connection was denied.

php5-fpm[5968]: segfault at 68 ip 00007ff58d6ebfc0 sp 00007ffdb3aafc98 error 4 in mysqlnd.so[7ff58d6de000+3d000]

When I tried to connect from the same server with the same credentials via command line I received a notice:

ERROR 1130 (HY000): Host 'XXX.XXX.XXX.XXX' is not allowed to connect to this MariaDB server

My issue stemmed from a private DNS setup issue but was hidden away by mysqlnd_ms segfaults not telling me that I couldn't connect.

DB Client: mysql  Ver 15.1 Distrib 10.1.12-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
DB Server: mysql  Ver 15.1 Distrib 10.1.12-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

Galera is running

Expected result:
----------------
I would expect to receive proper error information via PHP output when attempting to connect instead of segfaults.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-09 15:43 UTC] dez at majemedia dot com
I forgot to note:

When I fixed the DNS issue I was able to connect via mysqlnd_ms again without changing any php.ini configurations.
 [2017-10-24 04:30 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-10-24 04:30 UTC] kalle@php.net
I'm gonna suspend this report as the mysqlnd_ms had not a release since 2013 or active commit activity since then, if activity comes back to this package, it should be re-opened
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 01:01:28 2024 UTC