RE: [PHP-CVS] com php-src: Patch core for PCRE2 support: .gitignore ext/fileinfo/libmagic/funcs.c ext/fileinfo/libmagic/softmagic.c
ext/filter/logical_filters.c ext/opcache/zend_accelerator_blacklist.c ext/pcre/config.w32 ext/pcre/config0.m4 ext/pcre/p...
| From: | Anatol Belski | Date: | Tue, 14 Nov 2017 20:54:41 +0000 |
| Subject: | RE: [PHP-CVS] com php-src: Patch core for PCRE2 support: .gitignore ext/fileinfo/libmagic/funcs.c ext/fileinfo/libmagic/softmagic.c ext/filter/logical_filters.c ext/opcache/zend_accelerator_blacklist.c ext/pcre/config.w32 ext/pcre/config0.m4 ext/pcre/p... |
||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-100243@lists.php.net to get a copy of this message | ||
Hi Nikita,
> -----Original Message-----
> From: Nikita Popov [mailto:nikita.ppv@gmail.com]
> Sent: Tuesday, November 14, 2017 9:18 PM
> To: Anatol Belski <ab@php.net>
> Cc: php-cvs@lists.php.net
> Subject: Re: [PHP-CVS] com php-src: Patch core for PCRE2 support: .gitignore
> ext/fileinfo/libmagic/funcs.c ext/fileinfo/libmagic/softmagic.c
> ext/filter/logical_filters.c ext/opcache/zend_accelerator_blacklist.c
> ext/pcre/config.w32 ext/pcre/config0.m4 ext/pcre/p...
>
> On Mon, Nov 13, 2017 at 7:37 PM, Anatol Belski <ab@php.net
> <mailto:ab@php.net> > wrote:
>
>
> Commit: a5bc5aed71f7a15f14f33bb31b8e17bf5f327e2d
> Author: Anatol Belski <ab@php.net <mailto:ab@php.netòç-#UQúà¥tÅ
> L> > Thu,
> 12 Oct 2017 12:48:36 +0200
> Parents: fd463cfbad66c962d25647211602c69303369206
> Branches: master
>
> Link: http://git.php.net/?p=php-
> src.git;a=commitdiff;h=a5bc5aed71f7a15f14f33bb31b8e17bf5f327e2d
> <http://git.php.net/?p=php-
> src.git;a=commitdiff;h=a5bc5aed71f7a15f14f33bb31b8e17bf5f327e2d>
>
> Log:
> Patch core for PCRE2 support
>
> RFC https://wiki.php.net/rfc/pcre2-migration
> <https://wiki.php.net/rfc/pcre2-migration>
>
> --
> PHP CVS Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> I'm seeing this error under valgrind:
>
> ==8236== Conditional jump or move depends on uninitialised value(s)
> ==8236== at 0x5467C4: php_pcre_init_pcre2 (php_pcre.c:186)
> ==8236== by 0x546FA4: zm_startup_pcre (php_pcre.c:364)
> ==8236== by 0xC85656: zend_startup_module_ex (zend_API.c:1805)
> ==8236== by 0xC856E0: zend_startup_module_zval (zend_API.c:1820)
> ==8236== by 0xC95691: zend_hash_apply (zend_hash.c:1567)
> ==8236== by 0xC85D81: zend_startup_modules (zend_API.c:1931)
> ==8236== by 0xBB1D22: php_module_startup (main.c:2172)
> ==8236== by 0xD8958B: php_cli_startup (php_cli.c:431)
> ==8236== by 0xD8BC2F: main (php_cli.c:1371)
>
> It looks like PCRE_G(jit) is uninitialized?
>
Yeah, pcre_globals->jit was not initialized. Plus I've found another bug in the
initialization. Where I wonder is that it actually shouldn't be a valgrind issue, because GINIT
should've run before MINIT and globals->jit would then contain an arbitrary value. At that
point, perhaps it might be ok to just pass zero, as any of PCRE functionality unlikely to be used in
the MINIT phase. I haven't seen this exact valgrind trace, though, do my latest commits fix it
on your side? Otherwise should indeed just go for passing some scalar there.
Regards
Anatol