Bug #17786 Updated: Coredump on \\0 backref (011.phpt)
| From: | msopacua at idg dot nl | Date: | Sun, 16 Jun 2002 15:17:14 +0000 |
| Subject: | Bug #17786 Updated: Coredump on \\0 backref (011.phpt) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10745@lists.php.net to get a copy of this message | ||
ID: 17786
Updated by: msopacua@idg.nl
Reported By: msopacua@idg.nl
Status: Open
Bug Type: Regexps related
Operating System: BSD/OS 4.2
PHP Version: 4.0CVS-2002-06-16
New Comment:
I also tested sed to see if it's the system supplied regex library, but
that's all ok:
$ echo "abc123" | sed -e "s|123|def\0ghi|g"
abcdef123ghi
$ echo "abc123" | sed -e "s|123|def\\0ghi|g"
abcdef123ghi
$ echo "abc123" | sed -e "s|123|def\\\0ghi|g"
abcdef\0ghi
$ echo "abc123" | sed -e "s|123|def\\\\0ghi|g"
abcdef\0ghi
Previous Comments:
------------------------------------------------------------------------
[2002-06-16 11:02:59] msopacua@idg.nl
Make test creates a coredump in ext/standard/tests/regex/011.phpt
Compiled with --enable-debug but not much info:
(gdb) bt
#0 0x4893760f in memcpy () from /shlib/libc.so.2
#1 0x8153584 in ?? ()
#2 0x8153b95 in ?? ()
#3 0x8153ce0 in ?? ()
#4 0x81c8f5a in ?? ()
#5 0x81b853b in ?? ()
#6 0x8189a11 in ?? ()
#7 0x81ce7fb in ?? ()
#8 0x806e40e in ?? ()
The core was created when run from the debugger, with the -e option set
through set args.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17786&edit=1