Re: Segfaults using PEAR
| From: | Kendrick Vargas | Date: | Wed, 26 Sep 2001 14:35:55 +0000 |
| Subject: | Re: Segfaults using PEAR | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-2066@lists.php.net to get a copy of this message | ||
I don't know if this will help, but I used to have a similar problem
almost a year ago. If I compiled mysql with thread support, it would
completely piss the web server off. It'd do just what you said. This was
with mysql-3.22.32 and apache-1.3.14, but I imagine anything compiled with
threading support would've pissed off apache 1.3.x...
Check out your entire chain of thingies. If MySQL or IMAP is linked into
php, then it could possibly affect apache too.
-peace
On Tue, 25 Sep 2001, Alok K. Dhir wrote:
> Hey all - mailing to the list as I don't know what else to try. When I
> use any PEAR scripts, my HTTPD segfault after the script executes - and
> sometimes during (which results in a page not found error). I've tried
> recompiling php-4.0.6, using various versions of the PEAR tree, removing
> certain options from Apache/PHP, etc. All to no avail.
>
> The only PEAR scripts I've tried are the Mail/mime/smtp stuff, and
> Cache. I am attaching a very simple PEAR Cache test script which
> segfaults every time. I am currently using the PEAR tree included with
> php-4.0.6 release. As I mentioned earlier, I have also tested against
> the latest CVS PEAR tree as of a couple days ago.
>
> Here's the msg I get in the Apache error log:
>
> [Tue Sep 25 10:23:24 2001] [notice] child pid 3329 exit signal
> Segmentation fault (11)
>
> I get this every time I hit reload in the browser. I should mention
> that when the script does complete executing, the code does work - i.e.
> there are cache entries in the db table, etc...
>
> FYI - I'm running kernel 2.4.10-pre15 with preempt patches. This was
> happening on
> 2.4.7 release as well.
>
> Thanks for any help you can offer.
>
> P.S. _Everything_ else works perfectly on this box - I use it very
> heavily as a dev server.
>
> ----- BEGIN PEAR Cache test script ------
>
> <?
> include('/www/include/setup.inc');
>
> require_once('DB.php');
> Require_once('Cache.php');
>
> $dsn="mysql://$dbu:$dbp@localhost/test";
> $cache = new Cache("db", array("cache_table" => "cache",
> "dsn" =>
> $dsn));
> $id = $cache->generateID("testentry");
>
> if ($data = $cache->get($id)) {
> print "Cache hit.<br>Data: $data";
> } else {
> $data = "data of any kind";
> $cache->save($id, $data);
> print "Cache miss.<br>";
> }
>
> ?>
>
>
>
--
Let he who is without clue kiss my ass