Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15137 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46730 invoked by uid 1010); 21 Feb 2005 18:22:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 46714 invoked from network); 21 Feb 2005 18:22:31 -0000 Received: from unknown (HELO yahoo.com) (127.0.0.1) by localhost with SMTP; 21 Feb 2005 18:22:31 -0000 X-Host-Fingerprint: 200.73.191.6 unknown Linux 2.4/2.6 Received: from ([200.73.191.6:36709] helo=ns6.allytech.com) by pb1.pair.com (ecelerity HEAD r(5097)) with SMTP id DA/52-02951-6E62A124 for ; Mon, 21 Feb 2005 13:22:31 -0500 Received: from [200.123.150.237] (customer123-150-237.iplannetworks.net [200.123.150.237] (may be forged)) by ns6.allytech.com (8.11.6/8.11.6) with ESMTP id j1LI07Q18927 for ; Mon, 21 Feb 2005 15:00:07 -0300 Received: from 127.0.0.1 (AVG SMTP 7.0.300 [266.2.0]); Mon, 21 Feb 2005 15:11:25 -0800 Message-ID: <421A26A4.70104@tnsweb.com> Date: Mon, 21 Feb 2005 15:21:24 -0300 User-Agent: Debian Thunderbird 1.0 (X11/20050116) X-Accept-Language: en-us, en To: internals@lists.php.net Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-allytech-MailScanner-Information: Please contact the ISP for more information X-allytech-MailScanner: Found to be clean X-MailScanner-From: martin.sarsale@tnsweb.com Subject: segmentation fault when passing arguments by reference or importing global variables From: martin.sarsale@tnsweb.com (Martin Sarsale) Dear All: Im having some weird problems here. We're working on a big project, based on PHP and we found that some code that used to work, is doing very strange things. Im getting segfaults in some parts of the code, for example: function XXX(&$databaseConnection, $xxx) { or global $xxx; At first, I was getting segfaults with very little info. After I installed php-mmturck, the file, line and opcode where the error happen is reported in apache error log: [4577] MMCACHE: PHP crashed on opline 1 of XXX() at /var/www/xxx/XXX.class.php:58 [Mon Feb 21 15:16:02 2005] [notice] child pid 4577 exit signal Segmentation fault (11) Line 58 has: function XXX(&$databaseConnection, $_xxx) { Im using PHP 4.3.10-2 (debian gnu/linux testing) but I can recompile it or test another version, if you think it's important. Thanks in advance :) -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.2.0 - Release Date: 2/21/2005