Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33118 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80882 invoked by uid 1010); 14 Nov 2007 07:26:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 80867 invoked from network); 14 Nov 2007 07:26:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Nov 2007 07:26:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=rachmel@avaya.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rachmel@avaya.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain avaya.com from 198.152.13.100 cause and error) X-PHP-List-Original-Sender: rachmel@avaya.com X-Host-Fingerprint: 198.152.13.100 co300216-co-outbound.net.avaya.com Received: from [198.152.13.100] ([198.152.13.100:3037] helo=co300216-co-outbound.avaya.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5C/8F-55670-913AA374 for ; Wed, 14 Nov 2007 02:26:18 -0500 X-IronPort-AV: E=Sophos;i="4.21,414,1188792000"; d="scan'208";a="83367459" Received: from unknown (HELO co300216-co-erhwest.avaya.com) ([198.152.7.5]) by co300216-co-outbound.avaya.com with ESMTP; 14 Nov 2007 02:26:16 -0500 X-IronPort-AV: E=Sophos;i="4.21,414,1188792000"; d="scan'208";a="130588178" Received: from unknown (HELO 307622ANEX5.global.avaya.com) ([135.64.140.14]) by co300216-co-erhwest-out.avaya.com with ESMTP; 14 Nov 2007 02:25:34 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 14 Nov 2007 08:25:27 +0100 Message-ID: <11486DD9B957EA488E21C44BC8737EFC51C180@307622ANEX5.global.avaya.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: PHP 5.2.3 segfault with syslog standard extension Thread-Index: AcgmDSXToIk/F9RQTUiO0Ss9TMsvjAAglVbQ To: Subject: PHP 5.2.3 segfault with syslog standard extension From: rachmel@avaya.com ("Rachmel, Nir (Nir)") =20 Hi, =20 I am running PHP 5.2.3 as a statically compiled module for a web server (appWeb, which is an embbeded apache-like server). My platform is a ppc processor, running Windriver Linux. =20 The problem I encounter is, that when printing many syslogs to the system my web-server crashes. =20 I have backtraced the problem to a specific call to a 'free' system call in the syslog.c extension: =20 PHP_FUNCTION(openlog) { char *ident; long option, facility; int ident_len; =20 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sll", &ident, &ident_len, &option, &facility) =3D=3D FAILURE) { return; } if (BG(syslog_device)) { free(BG(syslog_device)); } BG(syslog_device) =3D zend_strndup(ident, ident_len); openlog(BG(syslog_device), option, facility); RETURN_TRUE; } =20 has anyone run into a same problem... or have any ideas as to how to resolve this? =20 Thanks in advance,=20 Nir.