Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68371 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80230 invoked from network); 5 Aug 2013 07:32:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Aug 2013 07:32:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@hristov.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php@hristov.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain hristov.com from 91.196.124.214 cause and error) X-PHP-List-Original-Sender: php@hristov.com X-Host-Fingerprint: 91.196.124.214 more.superhosting.bg Linux 2.6 Received: from [91.196.124.214] ([91.196.124.214:39083] helo=more.superhosting.bg) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BA/4B-06453-6055FF15 for ; Mon, 05 Aug 2013 03:32:25 -0400 Received: from [87.121.52.106] (port=44744 helo=[192.168.20.117]) by more.superhosting.bg with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80) (envelope-from ) id 1V6FH8-001Zb3-Ju; Mon, 05 Aug 2013 10:32:18 +0300 Message-ID: <51FF54FB.8060906@hristov.com> Date: Mon, 05 Aug 2013 09:32:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: Rasmus Lerdorf CC: PHP internals , =?ISO-8859-1?Q?Johannes_Sc?= =?ISO-8859-1?Q?hl=FCter?= References: <51FD4324.7030507@lerdorf.com> In-Reply-To: <51FD4324.7030507@lerdorf.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - more.superhosting.bg X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - hristov.com X-Get-Message-Sender-Via: more.superhosting.bg: authenticated_id: php@hristov.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] Segfault on mysqlnd stream cast From: php@hristov.com (Andrey Hristov) 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. > > -Rasmus > I just tried the combo PHP 5.5 (git) with MySQL 5.6 (13-dev) without segfault. What's your setup? Andrey