Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21268 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78908 invoked by uid 1010); 17 Dec 2005 18:23:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 78893 invoked from network); 17 Dec 2005 18:23:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Dec 2005 18:23:30 -0000 X-Host-Fingerprint: 64.233.184.206 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.206:38537] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D3/6C-14561-1A754A34 for ; Sat, 17 Dec 2005 13:23:29 -0500 Received: by wproxy.gmail.com with SMTP id i13so292001wra for ; Sat, 17 Dec 2005 10:23:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bqF1Js7K928iKMTC59s4IBFM11HiO+Av04IoyufqlIAsyCPN04yUmI8bFPOJbuYqfZ0WT92z5WcTdv30OUgxDolUtd8a0wH84XncLHSmzMfSankayry+KDQkMfafqorvFNAzaZtMlGoaLAUcP8b3WpWf7T5wCYlQvlakspqA7e8= Received: by 10.65.53.2 with SMTP id f2mr668828qbk; Sat, 17 Dec 2005 07:47:44 -0800 (PST) Received: by 10.65.228.8 with HTTP; Sat, 17 Dec 2005 07:47:44 -0800 (PST) Message-ID: Date: Sat, 17 Dec 2005 15:47:44 +0000 To: Jani Taskinen Cc: internals@lists.php.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: Subject: Re: [PHP-DEV] Fatal error 'Unable to read from thread kernel pipe' when using mail function From: stuttle@gmail.com (Stut) As far as I can tell it is using the prefork MPM since I believe this is the default option for building it with the FreeBSD port. How can I tell for sure? Thanks. -Stut On 17/12/05, Jani Taskinen wrote: > > You need to use the prefork MPM within Apache2. > Rebuilding apache like that propably wont make any difference. > And you really need to reconfigure and recompile PHP after that. > > --Jani > > > On Sat, 17 Dec 2005, Stut wrote: > > > > > I hope this gets through - the subscription confirmation email seems > > to be taking its time to get to me but I can't afford to wait. I would > > appreciate it if responses could be CC'd to me to ensure I get them. > > > > I've googled and also asked this question on the php-general list but > > have had no responses. Hopefully the gurus on this list will be able > > to help. > > > > I've just upgraded the PHP installation on my server to v4.4.1 and > > the mail function has stopped working. I created a script that simply > > calls the mail function to send a test email ad this is what I get when > > I run it... > > > > stut@brian:~$ php test.php > > Fatal error 'Unable to read from thread kernel pipe' at line 1100 in > > file /usr/src/lib/libc_r/uthread/uthread_kern.c (errno =3D 0) > > Abort trap (core dumped) > > > > The email gets sent successfully on the CLI despite crashing. When the > > mail function is called from a web page it never gets sent and the > > script never finishes. > > > > I've googled for this error and all references I found that related to > > PHP basically say that it's due to Apache and PHP being compiled in > > different threading modes. This cannot be the case in this instance > > since Apache is using the prefork MPM and even if it wasn't it's > > happening on the CLI where Apache is not involved. > > > > I've tried rebuilding Apache WITHOUT_THREADS and then rebuilding PHP > > but this made no difference. > > > > Any clues people might have as to the cause of this problem would be > > gratefully received. > > > > FYI: Environment is FreeBSD 5.2, Apache 2.0 and Postfix. > > > > Cheers. > > > > -Stut > > > > > > -- > Give me your money at @ > Donating money may make me happier and friendlier for a limited period! > Death to all 4 letter abbreviations starting with P! >