RE: [PHP-DEV] Bug #1489: php Crashes at the end
| From: | Bonis, Wim | Date: | Tue, 08 Jun 1999 11:03:25 +0000 |
| Subject: | RE: [PHP-DEV] Bug #1489: php Crashes at the end | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-6703@lists.php.net to get a copy of this message | ||
I debbuged a little more with php-3.0.9
in main.php3 (from phpMyAdmin) there are three line which look like:
<?php echo $strMySQLShowProcess ?></a>
<?php
...
?>
If i change the "</a>" to something differnent eg "</a test>" then
the core
is no longer there.
I look with ddd on the corefile. And i see pvalue set to:
pvalue->type=4
pvalue->cs_data.function_call_type=48896
pvalue->value.str.val="</a>\n"
pvalue->value.str.len=5
pvalue->value.chval=16 '\020'
pvalue->value.fun.arg_types= 0x5 '\003\020'
If have no clue what they mean. But the efree on
"pvalue->value.fun.arg_types" is the thing witch cause the core.
> -----Original Message-----
> From: bonis@solution-service.de [mailto:bonis@solution-service.de]
> Sent: Thursday, June 03, 1999 2:16 PM
> To: php-dev@lists.php.net
> Subject: [PHP-DEV] Bug #1489: php Crashes at the end
>
>
> From: bonis@solution-service.de
> Operating system: Linux 2.0.36 glibc 2.0
> PHP version: 3.0 Latest CVS (03/06/1999)
> PHP Bug Type: Reproduceable crash
> Bug description: php Crashes at the end
>
> I have the following crash everytime i invoke the file:
>
> Core was generated by `/opt/src/php-cvs/php3/php main.php3 &server=2'.
> Program terminated with signal 11, Segmentation fault.
>
> #0 0x401067e2 in ?? () from /lib/libc.so.6
> (gdb) where
> #0 0x401067e2 in ?? () from /lib/libc.so.6
> #1 0x401066a1 in ?? () from /lib/libc.so.6
> #2 0x80606e9 in _efree (ptr=0x811c3d0) at alloc.c:173
> #3 0x805d86f in pval_destructor (pvalue=0x40178860) at variables.c:89
> #4 0x805f4c2 in tc_destroy (tc=0x80e8880) at token_cache.c:319
> #5 0x805f502 in tcm_destroy (tcm=0x80d4438) at token_cache.c:333
> #6 0x80592af in php3_request_shutdown (dummy=0x0) at main.c:790
> #7 0x805aac5 in main (argc=3, argv=0xbffff790) at main.c:1867
>
> It hardly to reproduce what causes the bug. Minor changes in
> the code (eg. removing some html outside of ?php) and the
> core dump goes away. But it is reproduceable everytime with
> this script and the parameters.
>
> With php-3.0.7 everything is working. The bug started with
> php-3.0.8 and is still in the latest cvs.
>
> ./configure --enable-debugger --enable-track-vars
> --with-dbase --with-mysql=/opt/mysql --with-iodbc=/opt/mysql
> --with-config-file -path=/Web/config --with-ldap=/opt/ldap
> --enable-force-cgi-redirect
>
>
>
> --
> PHP Development Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>