php.net |  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
Votes:5
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
 [2013-06-10 21:00 UTC] antoine at delvaux dot net
Description:
------------
I'm using the php5-fpm and related packages from dotdeb.org 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);
mysqli_ping($link);


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


Patches

Pull Requests

History

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 
0x7fffa0ffe000
Core was generated by `php-fpm: pool www                                         
'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f9979e5011d in ?? () from /lib/libc.so.6
(gdb) bt
#0  0x00007f9979e5011d in ?? () from /lib/libc.so.6
#1  0x00007f9979e51758 in ?? () from /lib/libc.so.6
#2  0x00007f9979e54b8c in free () from /lib/libc.so.6
#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/mysqli.so
#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/libc.so.6
#16 0x000000000042f599 in _start ()
 [2014-05-08 14:39 UTC] uw@php.net
-Status: Open +Status: Feedback
 [2014-05-08 14:39 UTC] uw@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 16:01:31 2024 UTC