php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46660 Calling mssql_next_result causes a coredump
Submitted: 2008-11-24 16:35 UTC Modified: 2009-06-02 01:00 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: michael at laccetti dot com Assigned:
Status: No Feedback Package: MSSQL related
PHP Version: 5.2.6 OS: Solaris 10 (SPARC)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
48 - 23 = ?
Subscribe to this entry?

 
 [2008-11-24 16:35 UTC] michael at laccetti dot com
Description:
------------
After calling a stored procedure that returns multiple resultsets, trying to call mssql_next_result causes PHP to coredump.

Reproduce code:
---------------
$this->RecordSet = mssql_query($query, $this->DBConn );
if(mssql_next_result($this->RecordSet)) {
    error_log("We got more results!");
} else {
    error_log("No more results.  Waah.");
}

Expected result:
----------------
I expect to see either "We got more results" or "No more results.  Waah." in the logs.

Actual result:
--------------
[Mon Nov 24 11:18:03 2008] [notice] child pid 5515 exit signal Bus error (10), possible coredump in /usr/local/apache2

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-24 18:52 UTC] iliaa@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.


 [2008-11-26 23:37 UTC] michael at laccetti dot com
Well, I have a strange problem - when I turn --enable-debug on, the crash stops crashing - everything works as expected.  If I turn it off, it breaks again.  Without --enable-debug, I cannot create the backtrace.
 [2009-05-25 19:51 UTC] kalle@php.net
Any chance you could provide some more information, such as: MSSQL version, query trying to execute, tables in a reproduce script that always fails.

Does this happen on other systems than Solaris, etc.
 [2009-06-02 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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 22:01:28 2024 UTC