Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14411 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44660 invoked by uid 1010); 21 Jan 2005 12:56:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 44327 invoked by uid 1007); 21 Jan 2005 12:55:58 -0000 Message-ID: <20050121125557.44325.qmail@lists.php.net> To: internals@lists.php.net References: <20050121115429.2862.qmail@lists.php.net> <20050121152510.368a413b.antony@zend.com> Date: Fri, 21 Jan 2005 13:55:30 +0100 Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Posted-By: 62.58.68.2 Subject: Re: [PHP-DEV] segfault in stream_socket_accept (fixed before5.0.4?) From: r.korving@xit.nl ("Ron Korving") "Antony Dovgal" schreef in bericht news:20050121152510.368a413b.antony@zend.com... > On Fri, 21 Jan 2005 12:54:02 +0100 > "Ron Korving" wrote: > > > Hi, > > > > I know this isn't the proper channel for a bugreport, but I think this > > segfault will require a very simple fix and I hope this could be fixed > > before 5.0.4 is released (so I'm posting this because of the time > > factor). > > Did I miss something or there wasn't even RC1 yet? I don't know exactly when PHP 5.0.4 will be released, but I understood from Andi's posts that he wanted to get 5.0.4 out pretty soon. > > This code segfaults (PHP 5.0.3): > > > > > $server = stream_socket_server("tcp://0.0.0.0:12345"); > > $client = stream_socket_accept($server, 3, $peername); > > ?> > > Please, fill a bug-report and don't forget to include backtrace. > Btw, I can't reproduce it with current CVS. Could you tell me how I can create a backtrace? (I use a precompiled PHP 5.0.3, so I'm not sure if I can do this with my software). I noticed there are backtrace php functions, but how can I call a function after php segfaults? Thanks, Ron