[php-src] Issue #12110: Corrupted PHP install during building the image
| From: | jorgsowa | Date: | Sat, 02 Sep 2023 19:42:04 +0000 |
| Subject: | [php-src] Issue #12110: Corrupted PHP install during building the image | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-245318@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/12110
Author: jorgsowa
### Description
I added following code to the
zend_compile_foreach in Zend/zend_compile.c
for debugging purposes:
```
if(by_ref) {
zend_error_noreturn(E_COMPILE_ERROR, "DDD");
}
```
Of course, this corrupted PHP build when I compiled it. However when I installed the build with
make install and then built clean version again without any corrupted changes I am not
able to do it. It seems that it still uses corrupted version of PHP although I wanted to build clean
version. Even when I remove git repository and I clone it from the start it still uses PHP installed
on the computer.
The error message I see:
```
make -j16
/bin/bash /home/bon/CLionProjects/php-src/libtool --silent --preserve-dup-deps --tag CC
--mode=compile cc -Iext/standard/ -I/home/bon/CLionProjects/php-src/ext/standard/
-I/home/bon/CLionProjects/php-src/include -I/home/bon/CLionProjects/php-src/main
-I/home/bon/CLionProjects/php-src -I/home/bon/CLionProjects/php-src/ext/date/lib
-I/usr/include/libxml2 -I/home/bon/CLionProjects/php-src/TSRM -I/home/bon/CLionProjects/php-src/Zend
-D_GNU_SOURCE -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond
-Wno-clobbered -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden
-Wimplicit-fallthrough=1 -DZEND_SIGNALS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c
/home/bon/CLionProjects/php-src/ext/standard/basic_functions.c -o ext/standard/basic_functions.lo
-MMD -MF ext/standard/basic_functions.dep -MT ext/standard/basic_functions.lo
/bin/bash /home/bon/CLionProjects/php-src/libtool --silent --preserve-dup-deps --tag CC
--mode=compile cc -Iext/tokenizer/ -I/home/bon/CLionProjects/php-src/ext/tokenizer/
-I/home/bon/CLionProjects/php-src/include -I/home/bon/CLionProjects/php-src/main
-I/home/bon/CLionProjects/php-src -I/home/bon/CLionProjects/php-src/ext/date/lib
-I/usr/include/libxml2 -I/home/bon/CLionProjects/php-src/TSRM -I/home/bon/CLionProjects/php-src/Zend
-D_GNU_SOURCE -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond
-Wno-clobbered -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden
-Wimplicit-fallthrough=1 -DZEND_SIGNALS -c
/home/bon/CLionProjects/php-src/ext/tokenizer/tokenizer.c -o ext/tokenizer/tokenizer.lo -MMD -MF
ext/tokenizer/tokenizer.dep -MT ext/tokenizer/tokenizer.lo
/bin/bash /home/bon/CLionProjects/php-src/libtool --silent --preserve-dup-deps --tag CC
--mode=compile cc -IZend/ -I/home/bon/CLionProjects/php-src/Zend/
-I/home/bon/CLionProjects/php-src/include -I/home/bon/CLionProjects/php-src/main
-I/home/bon/CLionProjects/php-src -I/home/bon/CLionProjects/php-src/ext/date/lib
-I/usr/include/libxml2 -I/home/bon/CLionProjects/php-src/TSRM -I/home/bon/CLionProjects/php-src/Zend
-D_GNU_SOURCE -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond
-Wno-clobbered -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden
-Wimplicit-fallthrough=1 -DZEND_SIGNALS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c
/home/bon/CLionProjects/php-src/Zend/zend_language_parser.c -o Zend/zend_language_parser.lo -MMD
-MF Zend/zend_language_parser.dep -MT Zend/zend_language_parser.lo
/bin/bash /home/bon/CLionProjects/php-src/libtool --silent --preserve-dup-deps --tag CC
--mode=compile cc -IZend/ -I/home/bon/CLionProjects/php-src/Zend/
-I/home/bon/CLionProjects/php-src/include -I/home/bon/CLionProjects/php-src/main
-I/home/bon/CLionProjects/php-src -I/home/bon/CLionProjects/php-src/ext/date/lib
-I/usr/include/libxml2 -I/home/bon/CLionProjects/php-src/TSRM -I/home/bon/CLionProjects/php-src/Zend
-D_GNU_SOURCE -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond
-Wno-clobbered -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden
-Wimplicit-fallthrough=1 -DZEND_SIGNALS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c
/home/bon/CLionProjects/php-src/Zend/zend_language_scanner.c -o Zend/zend_language_scanner.lo -MMD
-MF Zend/zend_language_scanner.dep -MT Zend/zend_language_scanner.lo
/bin/bash /home/bon/CLionProjects/php-src/libtool --silent --preserve-dup-deps --tag CC
--mode=compile cc -IZend/ -I/home/bon/CLionProjects/php-src/Zend/
-I/home/bon/CLionProjects/php-src/include -I/home/bon/CLionProjects/php-src/main
-I/home/bon/CLionProjects/php-src -I/home/bon/CLionProjects/php-src/ext/date/lib
-I/usr/include/libxml2 -I/home/bon/CLionProjects/php-src/TSRM -I/home/bon/CLionProjects/php-src/Zend
-D_GNU_SOURCE -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond
-Wno-clobbered -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden
-Wimplicit-fallthrough=1 -DZEND_SIGNALS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c
/home/bon/CLionProjects/php-src/Zend/zend_ini_parser.c -o Zend/zend_ini_parser.lo -MMD -MF
Zend/zend_ini_parser.dep -MT Zend/zend_ini_parser.lo
/bin/bash /home/bon/CLionProjects/php-src/libtool --silent --preserve-dup-deps --tag CC
--mode=compile cc -IZend/ -I/home/bon/CLionProjects/php-src/Zend/
-I/home/bon/CLionProjects/php-src/include -I/home/bon/CLionProjects/php-src/main
-I/home/bon/CLionProjects/php-src -I/home/bon/CLionProjects/php-src/ext/date/lib
-I/usr/include/libxml2 -I/home/bon/CLionProjects/php-src/TSRM -I/home/bon/CLionProjects/php-src/Zend
-D_GNU_SOURCE -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond
-Wno-clobbered -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden
-Wimplicit-fallthrough=1 -DZEND_SIGNALS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c
/home/bon/CLionProjects/php-src/Zend/zend_ini_scanner.c -o Zend/zend_ini_scanner.lo -MMD -MF
Zend/zend_ini_scanner.dep -MT Zend/zend_ini_scanner.lo
/bin/bash /home/bon/CLionProjects/php-src/libtool --silent --preserve-dup-deps --tag CC
--mode=compile cc -IZend/ -I/home/bon/CLionProjects/php-src/Zend/
-I/home/bon/CLionProjects/php-src/include -I/home/bon/CLionProjects/php-src/main
-I/home/bon/CLionProjects/php-src -I/home/bon/CLionProjects/php-src/ext/date/lib
-I/usr/include/libxml2 -I/home/bon/CLionProjects/php-src/TSRM -I/home/bon/CLionProjects/php-src/Zend
-D_GNU_SOURCE -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond
-Wno-clobbered -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden
-Wimplicit-fallthrough=1 -DZEND_SIGNALS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c
/home/bon/CLionProjects/php-src/Zend/zend_call_stack.c -o Zend/zend_call_stack.lo -MMD -MF
Zend/zend_call_stack.dep -MT Zend/zend_call_stack.lo
/bin/bash /home/bon/CLionProjects/php-src/libtool --silent --preserve-dup-deps --tag CC
--mode=compile cc -IZend/ -I/home/bon/CLionProjects/php-src/Zend/
-I/home/bon/CLionProjects/php-src/include -I/home/bon/CLionProjects/php-src/main
-I/home/bon/CLionProjects/php-src -I/home/bon/CLionProjects/php-src/ext/date/lib
-I/usr/include/libxml2 -I/home/bon/CLionProjects/php-src/TSRM -I/home/bon/CLionProjects/php-src/Zend
-D_GNU_SOURCE -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond
-Wno-clobbered -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden
-Wimplicit-fallthrough=1 -DZEND_SIGNALS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c
/home/bon/CLionProjects/php-src/Zend/zend_compile.c -o Zend/zend_compile.lo -MMD -MF
Zend/zend_compile.dep -MT Zend/zend_compile.lo
/bin/bash /home/bon/CLionProjects/php-src/libtool --silent --preserve-dup-deps --tag CC
--mode=compile cc -IZend/ -I/home/bon/CLionProjects/php-src/Zend/
-I/home/bon/CLionProjects/php-src/include -I/home/bon/CLionProjects/php-src/main
-I/home/bon/CLionProjects/php-src -I/home/bon/CLionProjects/php-src/ext/date/lib
-I/usr/include/libxml2 -I/home/bon/CLionProjects/php-src/TSRM -I/home/bon/CLionProjects/php-src/Zend
-D_GNU_SOURCE -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond
-Wno-clobbered -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden
-Wimplicit-fallthrough=1 -DZEND_SIGNALS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c
/home/bon/CLionProjects/php-src/Zend/zend_constants.c -o Zend/zend_constants.lo -MMD -MF
Zend/zend_constants.dep -MT Zend/zend_constants.lo
/bin/bash /home/bon/CLionProjects/php-src/libtool --silent --preserve-dup-deps --tag CC
--mode=compile cc -IZend/ -I/home/bon/CLionProjects/php-src/Zend/
-I/home/bon/CLionProjects/php-src/include -I/home/bon/CLionProjects/php-src/main
-I/home/bon/CLionProjects/php-src -I/home/bon/CLionProjects/php-src/ext/date/lib
-I/usr/include/libxml2 -I/home/bon/CLionProjects/php-src/TSRM -I/home/bon/CLionProjects/php-src/Zend
-D_GNU_SOURCE -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond
-Wno-clobbered -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden
-Wimplicit-fallthrough=1 -DZEND_SIGNALS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c
/home/bon/CLionProjects/php-src/Zend/zend_dtrace.c -o Zend/zend_dtrace.lo -MMD -MF
Zend/zend_dtrace.dep -MT Zend/zend_dtrace.lo
/bin/bash /home/bon/CLionProjects/php-src/libtool --silent --preserve-dup-deps --tag CC
--mode=compile cc -IZend/ -I/home/bon/CLionProjects/php-src/Zend/
-I/home/bon/CLionProjects/php-src/include -I/home/bon/CLionProjects/php-src/main
-I/home/bon/CLionProjects/php-src -I/home/bon/CLionProjects/php-src/ext/date/lib
-I/usr/include/libxml2 -I/home/bon/CLionProjects/php-src/TSRM -I/home/bon/CLionProjects/php-src/Zend
-D_GNU_SOURCE -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond
-Wno-clobbered -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden
-Wimplicit-fallthrough=1 -DZEND_SIGNALS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c
/home/bon/CLionProjects/php-src/Zend/zend_execute_API.c -o Zend/zend_execute_API.lo -MMD -MF
Zend/zend_execute_API.dep -MT Zend/zend_execute_API.lo
/bin/bash /home/bon/CLionProjects/php-src/libtool --silent --preserve-dup-deps --tag CC
--mode=compile cc -IZend/ -I/home/bon/CLionProjects/php-src/Zend/
-I/home/bon/CLionProjects/php-src/include -I/home/bon/CLionProjects/php-src/main
-I/home/bon/CLionProjects/php-src -I/home/bon/CLionProjects/php-src/ext/date/lib
-I/usr/include/libxml2 -I/home/bon/CLionProjects/php-src/TSRM -I/home/bon/CLionProjects/php-src/Zend
-D_GNU_SOURCE -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond
-Wno-clobbered -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden
-Wimplicit-fallthrough=1 -DZEND_SIGNALS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c
/home/bon/CLionProjects/php-src/Zend/zend_highlight.c -o Zend/zend_highlight.lo -MMD -MF
Zend/zend_highlight.dep -MT Zend/zend_highlight.lo
/bin/bash /home/bon/CLionProjects/php-src/libtool --silent --preserve-dup-deps --tag CC
--mode=compile cc -IZend/ -I/home/bon/CLionProjects/php-src/Zend/
-I/home/bon/CLionProjects/php-src/include -I/home/bon/CLionProjects/php-src/main
-I/home/bon/CLionProjects/php-src -I/home/bon/CLionProjects/php-src/ext/date/lib
-I/usr/include/libxml2 -I/home/bon/CLionProjects/php-src/TSRM -I/home/bon/CLionProjects/php-src/Zend
-D_GNU_SOURCE -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond
-Wno-clobbered -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden
-Wimplicit-fallthrough=1 -DZEND_SIGNALS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c
/home/bon/CLionProjects/php-src/Zend/zend_llist.c -o Zend/zend_llist.lo -MMD -MF
Zend/zend_llist.dep -MT Zend/zend_llist.lo
Fatal error: DDD in /home/bon/CLionProjects/php-src/ext/tokenizer/tokenizer_data_gen.php on line 24
/bin/bash /home/bon/CLionProjects/php-src/libtool --silent --preserve-dup-deps --tag CC
--mode=compile cc -IZend/ -I/home/bon/CLionProjects/php-src/Zend/
-I/home/bon/CLionProjects/php-src/include -I/home/bon/CLionProjects/php-src/main
-I/home/bon/CLionProjects/php-src -I/home/bon/CLionProjects/php-src/ext/date/lib
-I/usr/include/libxml2 -I/home/bon/CLionProjects/php-src/TSRM -I/home/bon/CLionProjects/php-src/Zend
-D_GNU_SOURCE -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond
-Wno-clobbered -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden
-Wimplicit-fallthrough=1 -DZEND_SIGNALS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c
/home/bon/CLionProjects/php-src/Zend/zend_vm_opcodes.c -o Zend/zend_vm_opcodes.lo -MMD -MF
Zend/zend_vm_opcodes.dep -MT Zend/zend_vm_opcodes.lo
/bin/bash /home/bon/CLionProjects/php-src/libtool --silent --preserve-dup-deps --tag CC
--mode=compile cc -IZend/ -I/home/bon/CLionProjects/php-src/Zend/
-I/home/bon/CLionProjects/php-src/include -I/home/bon/CLionProjects/php-src/main
-I/home/bon/CLionProjects/php-src -I/home/bon/CLionProjects/php-src/ext/date/lib
-I/usr/include/libxml2 -I/home/bon/CLionProjects/php-src/TSRM -I/home/bon/CLionProjects/php-src/Zend
-D_GNU_SOURCE -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond
-Wno-clobbered -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden
-Wimplicit-fallthrough=1 -DZEND_SIGNALS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c
/home/bon/CLionProjects/php-src/Zend/zend_opcode.c -o Zend/zend_opcode.lo -MMD -MF
Zend/zend_opcode.dep -MT Zend/zend_opcode.lo
make: *** [Makefile:472: /home/bon/CLionProjects/php-src/ext/tokenizer/tokenizer_data.c] Error 255
make: *** Waiting for unfinished jobs....
```
### PHP Version
master branch
### Operating System
Ubuntu 22