Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19022 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58693 invoked by uid 1010); 16 Sep 2005 01:21:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 58678 invoked from network); 16 Sep 2005 01:21:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Sep 2005 01:21:30 -0000 X-Host-Fingerprint: 66.108.229.165 cpe-66-108-229-165.nyc.res.rr.com Received: from ([66.108.229.165:1048] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 5A/79-43379-A1E1A234 for ; Thu, 15 Sep 2005 21:21:30 -0400 Message-ID: <5A.79.43379.A1E1A234@pb1.pair.com> To: internals@lists.php.net Reply-To: "RG" References: <29.87.41173.A9FD9234@pb1.pair.com> <00f301c5ba49$455192c0$5c8be5a9@ohr.berkeley.edu> Date: Thu, 15 Sep 2005 21:21:26 -0400 Lines: 25 Organization: blah X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Posted-By: 66.108.229.165 Subject: Re: Segfault From: ScriptBlue@nyc.rr.com ("RG") That's not where it segfaults. The function works perfectly once. If I attempt to exit / die or call that function again, it segfaults. However, I have noticed that if I do not use ZEND_REGISTER_RESOURCE the program no longer segfaults. And sorry for the comments, someone people don't write the final version of a program on their first try. ""Sara Golemon"" wrote in message news:00f301c5ba49$455192c0$5c8be5a9@ohr.berkeley.edu... > > new_sock->bsd_socket = accept(php_sock->bsd_socket, &sa, &salen); > > > In all liklihood it's that. > > Now.... In the nicest way possible, why don't I suggest that you CLEAN UP > YOUR CODE NEXT TIME!?!?! You might have noticed that new_sock isn't alloc'd > if it wern't for all the comments and flat-out bad code you've got in there. > > Thank you for calling, next in line please. > > -Sara