Re: Segfault
| From: | RG | Date: | Fri, 16 Sep 2005 01:09:13 +0000 |
| Subject: | Re: Segfault | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-19021@lists.php.net to get a copy of this message | ||
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"" <pollita@php.net> 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