Re: Segfault on mysqlnd stream cast
| From: | Andrey Hristov | Date: | Mon, 05 Aug 2013 07:32:11 +0000 |
| Subject: | Re: Segfault on mysqlnd stream cast | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-68371@lists.php.net to get a copy of this message | ||
Hi Rasmus,
On 08/03/2013 07:51 PM, Rasmus Lerdorf wrote:
Hey Johannes, could you take a look at: https://gist.github.com/anonymous/6143477 You can reproduce in 5.5 with: sapi/cli/php ext/mysqli/tests/mysqli_poll_kill.php main/streams/cast.c:306 is: if (php_stream_is_filtered(stream)) { but php_stream_is_filtered is just a macro that isn't expecting stream to be null and you get the segfault there because it is trying to dereference it. We could just add a null check, of course, but I think the problem is in mysqlnd. mysqlnd_stream_array_to_fd_set() shouldn't be trying to cast null streams. -RasmusI just tried the combo PHP 5.5 (git) with MySQL 5.6 (13-dev) without segfault. What's your setup? Andrey