[php-src] Issue #7982: Segmentation fault caused by updating to 8.1

From: Date: Thu, 27 Jan 2022 10:47:06 +0000
Subject: [php-src] Issue #7982: Segmentation fault caused by updating to 8.1
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239319@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7982 Comment Author: JimmyBanks @damianwadley ``` btCore was generated by `php-fpm: pool www '. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f72134fa743 in Arena_Get (val=val@entry=0x7f7226552c18) at /tmp/pear/temp/protobuf/arena.c:72 72 /tmp/pear/temp/protobuf/arena.c: No such file or directory. [Current thread is 1 (Thread 0x7f722c618500 (LWP 1938))] (gdb) bt #0 0x00007f72134fa743 in Arena_Get (val=val@entry=0x7f7226552c18) at /tmp/pear/temp/protobuf/arena.c:72 #1 0x00007f7213506064 in zim_Message___construct ( execute_data=0x7f72264148c0, return_value=<optimized out>) at /tmp/pear/temp/protobuf/message.c:579 #2 0x000055ce3ea58db2 in execute_ex () #3 0x000055ce3ea5920d in zend_execute () #4 0x000055ce3e9e69c4 in zend_execute_scripts () #5 0x000055ce3e982791 in php_execute_script () #6 0x000055ce3e81dbbd in ?? () #7 0x00007f72299a9bf7 in __libc_start_main (main=0x55ce3e81cda0, argc=4, argv=0x7ffe9219a1e8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe9219a1d8) at ../csu/libc-start.c:310 #8 0x000055ce3e81e9ea in _start () ``` ``` Core was generated by `php-fpm: pool www '. Program terminated with signal SIGSEGV, Segmentation fault. #0 _upb_arenahas (a=<optimized out>) at /tmp/pear/temp/protobuf/php-upb.h:448 448 /tmp/pear/temp/protobuf/php-upb.h: No such file or directory. [Current thread is 1 (Thread 0x7f722c618500 (LWP 1959))] (gdb) bt #0 _upb_arenahas (a=<optimized out>) at /tmp/pear/temp/protobuf/php-upb.h:448 #1 upb_arena_malloc (size=<optimized out>, a=<optimized out>) at /tmp/pear/temp/protobuf/php-upb.h:456 #2 _upb_msg_new_inl (a=0x78, l=0x55ce40ce37b0) at /tmp/pear/temp/protobuf/php-upb.h:1211 #3 _upb_msg_new (l=0x55ce40ce37b0, a=0x78) at /tmp/pear/temp/protobuf/php-upb.c:1493 #4 0x00007f7213513435 in upb_msg_new (m=<optimized out>, a=<optimized out>) at /tmp/pear/temp/protobuf/php-upb.c:7047 #5 0x00007f72134ff9c5 in Message_Initialize ( intern=intern@entry=0x7f7226402fc8, desc=desc@entry=0x7f72264728c0) at /tmp/pear/temp/protobuf/message.c:565 #6 0x00007f72135060a3 in zim_Message___construct ( execute_data=0x7f7226413e40, return_value=<optimized out>) at /tmp/pear/temp/protobuf/message.c:602 #7 0x000055ce3ea58db2 in execute_ex () #8 0x000055ce3ea5920d in zend_execute () #9 0x000055ce3e9e69c4 in zend_execute_scripts () #10 0x000055ce3e982791 in php_execute_script () #11 0x000055ce3e81dbbd in ?? () #12 0x00007f72299a9bf7 in __libc_start_main (main=0x55ce3e81cda0, argc=4, argv=0x7ffe9219a1e8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe9219a1d8) ``` Appears to be related to the pear protobuf package, which I have installed with pecl: ``` sudo pecl install protobuf echo "extension=protobuf.so" | sudo tee -a /etc/php/8.1/fpm/conf.d/protobuf.ini ``` Version is 3.19.3

« previous php.bugs (#239319) next »