php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41439 Segfault on mysql_ping()
Submitted: 2007-05-18 18:30 UTC Modified: 2010-08-18 12:35 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: jh2000 at root24 dot eu Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 6CVS-2007-05-18 (snap) OS: Debian
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jh2000 at root24 dot eu
New email:
PHP Version: OS:

 

 [2007-05-18 18:30 UTC] jh2000 at root24 dot eu
Description:
------------
use of mysql_ping causes segfault
tested on PHP 6 200705181630 and some other php6 build in the last 2 month
The build return no warnings/errors related to this problem.
The script given is just a bit of whole script. Without the mysql_ping the script (a phpbot written by myself) works. With - it crashes

Reproduce code:
---------------
<?
echo "State 1\n";
mysql_connect("localhost","test","test");
echo "State 2\n";
mysql_ping();
echo "PHP still running";
?>

Expected result:
----------------
State1
State2
PHP still running

Actual result:
--------------
i just get an Segfault after State 2
Output is:
State1
State2Speicherzugriffsfehler

Dmesg shows
php6[1056]: segfault at 0000000007ffff0c rip 00000000083c1883 rsp 00000000ff9f5900 error 4


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-18 18:38 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2007-05-26 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2010-08-18 12:35 UTC] andrey@php.net
-Status: No Feedback +Status: Bogus
 [2010-08-18 12:35 UTC] andrey@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

PHP6 is dead
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 12:01:30 2024 UTC