Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21264 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34837 invoked by uid 1010); 17 Dec 2005 15:37:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 34822 invoked from network); 17 Dec 2005 15:37:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Dec 2005 15:37:07 -0000 X-Host-Fingerprint: 195.197.172.116 gw02.mail.saunalahti.fi Linux 2.4/2.6 Received: from ([195.197.172.116:33051] helo=gw02.mail.saunalahti.fi) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id EB/77-14561-1A034A34 for ; Sat, 17 Dec 2005 10:37:05 -0500 Received: from nest.netphobia.fi (YZDCXXXI.dsl.saunalahti.fi [85.76.35.232]) by gw02.mail.saunalahti.fi (Postfix) with ESMTP id 1E58DDBF2F; Sat, 17 Dec 2005 17:37:00 +0200 (EET) Received: from nest.netphobia.fi (nest.netphobia.fi [127.0.0.1]) by nest.netphobia.fi (8.13.1/8.13.1) with ESMTP id jBHFb1f2021497; Sat, 17 Dec 2005 17:37:01 +0200 Received: from localhost (jani@localhost) by nest.netphobia.fi (8.13.1/8.13.1/Submit) with ESMTP id jBHFb1m5021494; Sat, 17 Dec 2005 17:37:01 +0200 X-Authentication-Warning: nest.netphobia.fi: jani owned process doing -bs Date: Sat, 17 Dec 2005 17:37:01 +0200 (EET) Reply-To: Jani Taskinen To: Stut cc: internals@lists.php.net In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [PHP-DEV] Fatal error 'Unable to read from thread kernel pipe' when using mail function From: sniper@iki.fi (Jani Taskinen) 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 = 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!