|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65010 SIGSEGV when trying to run state dependent functions
Submitted: 2013-06-10 21:00 UTC Modified: 2014-12-30 10:41 UTC
Avg. Score:3.2 ± 1.6
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: antoine at delvaux dot net Assigned:
Status: No Feedback Package: mysqlnd_ms (PECL)
PHP Version: 5.3.26 OS: Debian squeeze
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-06-10 21:00 UTC] antoine at delvaux dot net
I'm using the php5-fpm and related packages from and the 1.4.2 version 
of mysqlnd_ms extension.

If I try to use some connection state dependent calls before any connection has 
been established (lazy_connections = 1), it results in a SIGSEGV.  I've seen this 
behavior both with mysqli_character_set_name() and with mysqli_ping() calls.

Whenever I do a SQL query before any of those calls, everything's fine.

Test script:
$link = mysqli_connect("app", $user, $pass);
echo mysqli_character_set_name($link);

Expected result:
I expect an output or a warning/error reported to the log, but not a SIGSEGV.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-08-28 12:01 UTC] sysman dot pda at gmail dot com
warning: no loadable sections found in added symbol-file system-supplied DSO at 
Core was generated by `php-fpm: pool www                                         
Program terminated with signal 11, Segmentation fault.
#0  0x00007f9979e5011d in ?? () from /lib/
(gdb) bt
#0  0x00007f9979e5011d in ?? () from /lib/
#1  0x00007f9979e51758 in ?? () from /lib/
#2  0x00007f9979e54b8c in free () from /lib/
#3  0x0000000000669f34 in _mysqlnd_free ()
#4  0x000000000066afde in mysqlnd_mempool_destroy ()
#5  0x00000000006648a6 in ?? ()
#6  0x0000000000663c6a in ?? ()
#7  0x0000000000663c9a in ?? ()
#8  0x0000000000663ff5 in ?? ()
#9  0x00007f99736d7700 in ?? () from /usr/lib/php5/20090626/
#10 0x00000000006ef78c in zend_objects_store_free_object_storage ()
#11 0x00000000006bd813 in ?? ()
#12 0x00000000006ca6d2 in ?? ()
#13 0x0000000000674cd5 in php_request_shutdown ()
#14 0x000000000075eea8 in ?? ()
#15 0x00007f9979dfcc8d in __libc_start_main () from /lib/
#16 0x000000000042f599 in _start ()
 [2014-05-08 14:39 UTC]
-Status: Open +Status: Feedback
 [2014-05-08 14:39 UTC]
We've had problems with the old versions but fixed them in newer releases. Please, try a recent version and check.
 [2014-12-30 10:41 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Sep 26 04:03:36 2021 UTC