ID:               27011
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ehicks at binarymagi dot com
-Status:           Open
+Status:           Closed
 Bug Type:         PCRE related
 Operating System: Solaris 9
 PHP Version:      4CVS-2004-01-23
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2004-01-27 17:13:22] ehicks at binarymagi dot com

Yeah, same thing as far as I can tell.  I'll paste it again since it's
a different configure and version from the original paste just in case
it helps.

[EMAIL PROTECTED] cli]# gdb ./php      
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "sparcv9-sun-solaris2"...
(gdb) run < crashphp.php
Starting program: /root/build/php4-STABLE-200401230430/sapi/cli/php <
crashphp.php

Program received signal SIGSEGV, Segmentation fault.
0x000000010016e6cc in zend_parse_arg_impl (arg=0x10031aa58,
va=0xffffffff7fffead8, spec=0xffffffff7fffeaa8)
    at /root/build/php4-STABLE-200401230430/Zend/zend_API.c:259
259                                                     *p =
Z_LVAL_PP(arg);
(gdb) bt
#0  0x000000010016e6cc in zend_parse_arg_impl (arg=0x10031aa58,
va=0xffffffff7fffead8, spec=0xffffffff7fffeaa8)
    at /root/build/php4-STABLE-200401230430/Zend/zend_API.c:259
#1  0x000000010016f4f0 in zend_parse_arg (arg_num=4, arg=0x10031aa58,
va=0xffffffff7fffead8, 
    spec=0xffffffff7fffeaa8, quiet=0) at
/root/build/php4-STABLE-200401230430/Zend/zend_API.c:439
#2  0x000000010016fad8 in zend_parse_va_args (num_args=0,
type_spec=0x10019875c "ll", va=0xffffffff7fffead8, 
    flags=0) at
/root/build/php4-STABLE-200401230430/Zend/zend_API.c:524
#3  0x000000010016fec4 in zend_parse_parameters (num_args=4,
type_spec=0x100198758 "ssz|ll")
    at /root/build/php4-STABLE-200401230430/Zend/zend_API.c:551
#4  0x0000000100038168 in php_pcre_match (ht=4,
return_value=0x100326fe0, this_ptr=0x0, return_value_used=0, 
    global=1) at
/root/build/php4-STABLE-200401230430/ext/pcre/php_pcre.c:374
#5  0x00000001000392b0 in zif_preg_match_all (ht=4,
return_value=0x100326fe0, this_ptr=0x0, return_value_used=0)
    at /root/build/php4-STABLE-200401230430/ext/pcre/php_pcre.c:607
#6  0x000000010018bdd8 in execute (op_array=0x100322570)
    at /root/build/php4-STABLE-200401230430/Zend/zend_execute.c:1616
#7  0x000000010016d518 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
    at /root/build/php4-STABLE-200401230430/Zend/zend.c:884
#8  0x00000001001038d4 in php_execute_script
(primary_file=0xffffffff7ffffa40)
    at /root/build/php4-STABLE-200401230430/main/main.c:1727
#9  0x000000010019688c in main (argc=1, argv=0xffffffff7ffffb48)
    at /root/build/php4-STABLE-200401230430/sapi/cli/php_cli.c:820
(gdb) print (char
*)(executor_globals.function_state_ptr->function)->common.function_name
$1 = 0x100198940 "preg_match_all"
(gdb) frame 6
#6  0x000000010018bdd8 in execute (op_array=0x100322570)
    at /root/build/php4-STABLE-200401230430/Zend/zend_execute.c:1616
1616                                                           
((zend_internal_function *)
EX(function_state).function)->handler(EX(opline)->extended_value,
EX(Ts)[EX(opline)->result.u.var].var.ptr, EX(object).ptr,
return_value_used TSRMLS_CC);
(gdb)

------------------------------------------------------------------------

[2004-01-27 16:51:59] ehicks at binarymagi dot com

No, but that's probably because that configure line doesn't have the
--enable-debug in it.  Let me recompile and see.

------------------------------------------------------------------------

[2004-01-27 04:11:02] [EMAIL PROTECTED]

Is the gdb backtrace same (the first lines..) to the one you already
have included here?


------------------------------------------------------------------------

[2004-01-26 23:30:13] ehicks at binarymagi dot com

Yeah.

[EMAIL PROTECTED] cli]# ./php < crashphp.php 
Bus Error (core dumped)

That's using:

CFLAGS=-DNO_RECURSE ./configure --disable-all --disable-cgi
--with-pcre-regex

No idea what it's problem is.  I can run more gdb tests on the core
dump if you want.

------------------------------------------------------------------------

[2004-01-26 23:13:21] [EMAIL PROTECTED]

Did you try with the configure line I gave?
(don't forget also doing 'make clean' before 'make', I forgot that from
it :)



------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/27011

-- 
Edit this bug report at http://bugs.php.net/?id=27011&edit=1

Reply via email to