Re: Apache segmentation fault when loading libphp7.so
Kai Fürstenberg <[email protected]> Thu, 13 Aug 2020 13:47:36 +0200
| Newsgroups | gmane.comp.php.install |
|---|---|
| Message-ID | <[email protected]> |
Am 13.08.2020 um 12:53 schrieb Christoph M. Becker: > On 13.08.2020 at 11:52, Kai F=C3=BCrstenberg wrote: >=20 >> Am 13.08.2020 um 10:31 schrieb Christoph M. Becker: >> >>> On 12.08.2020 at 18:09, Kai F=C3=BCrstenberg wrote: >>> >>>> Hello everybody, >>>> >>>> and thank you for you help so far. >>>> >>>> I played around with gdb a little bit. >>>> >>>> I re-configured php the way I did in 7.2 (just with some slight >>>> modifications), to use mysql, gd and some other things. >>>> >>>> But this time, httpd stops with >>>> >>>> Program received signal SIGSEGV, Segmentation fault. >>>> resolve_stripslashes () at >>>> /usr/src/apache_testing/php-7.4.9/Zend/zend_cpuinfo.h:157 >>>> 157=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 __builtin_cpu_init(); >>>> >>>> Before I had the fault >>>> >>>> #0=C2=A0 resolve_base64_decode () at >>>> /usr/src/apache_testing/php-7.4.9/Zend/zend_cpuinfo.h:141 >>>> >>>> Line 141 of zend_cpuinfo.h is the very same command >>>> __builtin_cpu_init() >>>> >>>> It seems, that exactly this command __builtin_cpu_init() fails for s= ome >>>> reason... >>> >>> Did you check config.log? There is a test for __builtin_cpu_init() >>> availability[1] which apparently succeeds on your system, but it's wo= rth >>> to actually look that up in config.log. Maybe this test should use >>> AC_RUN_IFELSE instead of AC_LINK_IFELSE (and have the then and else >>> branch of the ternary operator swapped)? >>> >>> [1] >>> <https://github.com/php/php-src/blob/php-7.3.21/acinclude.m4#L3261-L3= 278> >> >> config.log: >> configure:13702: checking for __builtin_cpu_init >> configure:13718: cc -o conftest -g -O2 -fvisibility=3Dhidden -pthread >> -D_REENTRANT conftest.c -lm -ldl -lpthread >&5 >> configure:13718: $? =3D 0 >> configure:13721: result: yes >> configure:13741: checking for __builtin_cpu_supports >> configure:13757: cc -o conftest -g -O2 -fvisibility=3Dhidden -pthread >> -D_REENTRANT conftest.c -lm -ldl -lpthread >&5 >> configure:13757: $? =3D 0 >> configure:13760: result: yes >> >> I just don't understand what you mean with the link... >=20 > I basically suggested to apply > <https://gist.github.com/cmb69/3fd0106ce78446c9e10e54eec21a4d82>, and t= o > run ./configure again. Would the result still be "yes"? OK, so far so good. I just wonder, which file you want me to patch, because my acinclude.m4 (in Zend subfolder, v7.3) only has about 200 lines (the mentioned part is missing in this file) and in 7.4 this file is completely missing... Kai