Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19021 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58596 invoked by uid 1010); 16 Sep 2005 01:21:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 58580 invoked from network); 16 Sep 2005 01:21:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Sep 2005 01:21:28 -0000 X-Host-Fingerprint: 66.108.229.165 cpe-66-108-229-165.nyc.res.rr.com Received: from ([66.108.229.165:1046] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 4A/79-43379-81E1A234 for ; Thu, 15 Sep 2005 21:21:28 -0400 Message-ID: <4A.79.43379.81E1A234@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:09:13 -0400 Lines: 20 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") For some reason I can't malloc php_socket structs, and that's not where it segfaults. The function works perfectly once. Then if I attempt to exit / die or call that function again, it dies. ""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