|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-12-27 09:58 UTC] ab@php.net
[2013-12-27 12:46 UTC] laruence@php.net
[2013-12-27 12:46 UTC] laruence@php.net
-Status: Open
+Status: Closed
[2013-12-27 16:10 UTC] ab@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 19:00:02 2025 UTC |
Description: ------------ (PHP-5.6) after commit e30b2aae5ad93405eee19bca6125ea872f409c82 php-fpm starts segfault with backtrace Program received signal SIGABRT, Aborted. 0x00000034dc030285 in raise () from /lib64/libc.so.6 (gdb) bt #0 0x00000034dc030285 in raise () from /lib64/libc.so.6 #1 0x00000034dc031d30 in abort () from /lib64/libc.so.6 #2 0x00000034dc06971b in __libc_message () from /lib64/libc.so.6 #3 0x00000034dc071756 in free () from /lib64/libc.so.6 #4 0x000000000099c37b in init_request_info () at /home/huixinchen/opensource/php-5.6/sapi/fpm/fpm/fpm_main.c:1356 #5 0x000000000099d4d8 in main (argc=3, argv=0x7fff7f242528) at /home/huixinchen/opensource/php-5.6/sapi/fpm/fpm/fpm_main.c:1866 seems because tsrm_real_path return previously a malloced realpath, but after that commit it return a emalloced? diff --git a/sapi/fpm/fpm/fpm_main.c b/sapi/fpm/fpm/fpm_main.c index 91abfea..3da603b 100644 --- a/sapi/fpm/fpm/fpm_main.c +++ b/sapi/fpm/fpm/fpm_main.c @@ -1353,7 +1353,7 @@ static void init_request_info(TSRMLS_D) } else { SG(request_info).request_uri = env_script_name; } - free(real_path); + efree(real_path); } } else { /* pre 4.3 behaviour, shouldn't be used but provides BC */ welting, please look at this. Test script: --------------- none Expected result: ---------------- none Actual result: -------------- none