[PHP-dev 564] Fwd: Re: [PHP-DEV] mbstring and 4.3.0

Moriyoshi Koizumi php-dev@php.gr.jp
Wed, 13 Nov 2002 06:19:02 +0900


小泉です。

悪いニュースが三連続になってしまいましたが、
念のため転送しておきます。関数オーバーロードで segfault という
つっこみなんですが…。

現在この問題が発生した原因を究明している余裕がありません。
どなたか見ていただけないでしょうか?

# 問題発生原因が本当にオーバーロードなのか、それとも、
# オーバーロードによって露呈したEGにまつわる別の不具合なのか。
# これだとバックトレースがまったく役に立ちませんね。


"Ilia A." <ilia@prohost.org> wrote:
> 
> Return-Path: php-dev-return-90887-moriyoshi=at.wakwak.com@lists.php.net
> Received: from pb1.pair.com (pb1.pair.com [216.92.131.4])
> 	by at.wakwak.com (8.12.6/8.12.6/2002-10-04) with SMTP id gACK6c1b018307
> 	for <moriyoshi@at.wakwak.com>; Wed, 13 Nov 2002 05:06:39 +0900 (JST)
> 	(envelope-from php-dev-return-90887-moriyoshi=at.wakwak.com@lists.php.net)
> Received: (qmail 53875 invoked by uid 1010); 12 Nov 2002 20:06:09 -0000
> Mailing-List: contact php-dev-help@lists.php.net; run by ezmlm
> Precedence: bulk
> list-help: <mailto:php-dev-help@lists.php.net>
> list-unsubscribe: <mailto:php-dev-unsubscribe@lists.php.net>
> list-post: <mailto:php-dev@lists.php.net>
> Delivered-To: mailing list php-dev@lists.php.net
> Received: (qmail 53811 invoked from network); 12 Nov 2002 20:06:05 -0000
> Content-Type: text/plain;
>   charset="iso-8859-1"
> From: "Ilia A." <ilia@prohost.org>
> Reply-To: ilia@prohost.org
> To: Andrei Zmievski <andrei@gravitonic.com>,
>    PHP Developers <php-dev@lists.php.net>
> Date: Tue, 12 Nov 2002 15:07:44 -0500
> X-Mailer: KMail [version 1.4]
> References: <20021107150448.GA3533@hyperion.gravitonic.com>
> In-Reply-To: <20021107150448.GA3533@hyperion.gravitonic.com>
> Organization: Prohost.org
> MIME-Version: 1.0
> Content-Transfer-Encoding: 8bit
> Message-Id: <200211121507.44115.ilia@prohost.org>
> Subject: Re: [PHP-DEV] mbstring and 4.3.0
> X-UIDL: e309e329402b182e8f1d662b6653457c
> 
> On November 7, 2002 10:04 am, Andrei Zmievski wrote:
> > At the PHP Conference in Germany several of us have discussed the
> > current state of mbstring and there was a proposal to not have it
> > enabled by default for 4.3.0 release. It seems that the extension
> > attempts to do "magic" stuff by overloading functions in the executor
> > globals and, as Thies said, that could be dangerous. Also, doesn't it
> > affect run-tests.php script currently?
> >
> 
> On the note of overloading done by mbstring, it appears this behavior is not 
> entirely stable. On at least one test system (Sun OS 5.9) it causes crashes 
> and overruns by using the test script in the test suite.
> Ex:
> sapi/cli/php -d "mbstring.func_overload=1" -r ''
> Unknown(0) : Fatal error - (null)() [http://www.php.net/ref.mbstring]: 
> mbstring couldn't find function mail.
> Could not startup.
> [Tue Nov 12 21:01:33 2002]  Script:  '-'
> ---------------------------------------
> php4/Zend/zend_execute.h(44) : Block 0x001FB640 status:
> Beginning:      Overrun (magic=0x001FE7F8, expected=0x7312F8DC)
>       End:      Unknown
> ---------------------------------------
> 
> The test script itself (ext/mbstring/tests/overload.phpt) causes a 
> segmentation fault. Here is a back trace:
> #0  0x001528f8 in shutdown_memory_manager (silent=1, clean_cache=1) at 
> php4/Zend/zend_alloc.c:461
> #1  0x0011d944 in php_module_shutdown () at php4/main/main.c:1219
> #2  0x0018d8d0 in main (argc=39, argv=0xffbffa74) at 
> php4/sapi/cli/php_cli.c:761
> 
> Ilia
> 
> -- 
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>