|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2015-08-26 06:15 UTC] laruence@php.net
  [2015-08-26 06:17 UTC] stas@php.net
 
-Type: Security
+Type: Bug
  [2021-08-26 14:32 UTC] cmb@php.net
 
-Status:      Open
+Status:      Duplicate
-Assigned To:
+Assigned To: cmb
  [2021-08-26 14:32 UTC] cmb@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 09:00:01 2025 UTC | 
Description: ------------ (gdb) bt full #0 _get_record_gl (gi=0x0, ipnum=2976376787, gl=0x7fff69cd0ad0) at GeoIPCity.c:185 seek_record = <value optimized out> r = <value optimized out> #1 0x00007f292359acf5 in _get_record (gi=0x0, name=<value optimized out>) at GeoIPCity.c:206 gl = {netmask = 1132003024} #2 GeoIP_record_by_name (gi=0x0, name=<value optimized out>) at GeoIPCity.c:282 ipnum = <value optimized out> #3 0x00007f29237c83dc in zif_geoip_record_by_name (ht=1, return_value=0x7f291d8aad60, return_value_ptr=0x7f29243a7be8, this_ptr=0x0, return_value_used=1) at /home/zhangfan/php/modules/geoip-1.1.0/geoip.c:560 gi = 0x0 hostname = 0x7f291d8a5958 "177.103.231.211" arglen = 15 gir = 0x7f291e7af850 #4 0x00007f2922aaead8 in phalcon_execute_internal (execute_data_ptr=0x7f29243a7c00, fci=0x0, return_value_used=1) at /home/zhangfan/php/modules/cphalcon-phalcon-v1.3.4/ext/phalcon.c:57 return_value_ptr = 0x7f29243a7be8 #5 0x0000000000ab1f39 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f29243a7c00) at /home/zhangfan/env-trunk/php/php-5.6.11/Zend/zend_vm_execute.h:560 ret = 0x7f29243a7be0 opline = 0x7f291e7b18b8 should_change_scope = 0 '\000' fbc = 0x1b56100 num_args = 1 #6 0x0000000000ab790b in ZEND_DO_FCALL_SPEC_CONST_HANDLER (execute_data=0x7f29243a7c00) at /home/zhangfan/env-trunk/php/php-5.6.11/Zend/zend_vm_execute.h:2599 opline = 0x7f291e7b18b8 fname = 0x7f291e7afc38 call = 0x7f29243a7d68 #7 0x0000000000ab156f in execute_ex (execute_data=0x7f29243a7c00) at /home/zhangfan/env-trunk/php/php-5.6.11/Zend/zend_vm_execute.h:363 Test script: --------------- (gdb) bt full #0 _get_record_gl (gi=0x0, ipnum=2976376787, gl=0x7fff69cd0ad0) at GeoIPCity.c:185 seek_record = <value optimized out> r = <value optimized out> #1 0x00007f292359acf5 in _get_record (gi=0x0, name=<value optimized out>) at GeoIPCity.c:206 gl = {netmask = 1132003024} #2 GeoIP_record_by_name (gi=0x0, name=<value optimized out>) at GeoIPCity.c:282 ipnum = <value optimized out> #3 0x00007f29237c83dc in zif_geoip_record_by_name (ht=1, return_value=0x7f291d8aad60, return_value_ptr=0x7f29243a7be8, this_ptr=0x0, return_value_used=1) at /home/zhangfan/php/modules/geoip-1.1.0/geoip.c:560 gi = 0x0 hostname = 0x7f291d8a5958 "177.103.231.211" arglen = 15 gir = 0x7f291e7af850 #4 0x00007f2922aaead8 in phalcon_execute_internal (execute_data_ptr=0x7f29243a7c00, fci=0x0, return_value_used=1) at /home/zhangfan/php/modules/cphalcon-phalcon-v1.3.4/ext/phalcon.c:57 return_value_ptr = 0x7f29243a7be8 #5 0x0000000000ab1f39 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f29243a7c00) at /home/zhangfan/env-trunk/php/php-5.6.11/Zend/zend_vm_execute.h:560 ret = 0x7f29243a7be0 opline = 0x7f291e7b18b8 should_change_scope = 0 '\000' fbc = 0x1b56100 num_args = 1 #6 0x0000000000ab790b in ZEND_DO_FCALL_SPEC_CONST_HANDLER (execute_data=0x7f29243a7c00) at /home/zhangfan/env-trunk/php/php-5.6.11/Zend/zend_vm_execute.h:2599 opline = 0x7f291e7b18b8 fname = 0x7f291e7afc38 call = 0x7f29243a7d68 #7 0x0000000000ab156f in execute_ex (execute_data=0x7f29243a7c00) at /home/zhangfan/env-trunk/php/php-5.6.11/Zend/zend_vm_execute.h:363 Expected result: ---------------- (gdb) bt full #0 _get_record_gl (gi=0x0, ipnum=2976376787, gl=0x7fff69cd0ad0) at GeoIPCity.c:185 seek_record = <value optimized out> r = <value optimized out> #1 0x00007f292359acf5 in _get_record (gi=0x0, name=<value optimized out>) at GeoIPCity.c:206 gl = {netmask = 1132003024} #2 GeoIP_record_by_name (gi=0x0, name=<value optimized out>) at GeoIPCity.c:282 ipnum = <value optimized out> #3 0x00007f29237c83dc in zif_geoip_record_by_name (ht=1, return_value=0x7f291d8aad60, return_value_ptr=0x7f29243a7be8, this_ptr=0x0, return_value_used=1) at /home/zhangfan/php/modules/geoip-1.1.0/geoip.c:560 gi = 0x0 hostname = 0x7f291d8a5958 "177.103.231.211" arglen = 15 gir = 0x7f291e7af850 #4 0x00007f2922aaead8 in phalcon_execute_internal (execute_data_ptr=0x7f29243a7c00, fci=0x0, return_value_used=1) at /home/zhangfan/php/modules/cphalcon-phalcon-v1.3.4/ext/phalcon.c:57 return_value_ptr = 0x7f29243a7be8 #5 0x0000000000ab1f39 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f29243a7c00) at /home/zhangfan/env-trunk/php/php-5.6.11/Zend/zend_vm_execute.h:560 ret = 0x7f29243a7be0 opline = 0x7f291e7b18b8 should_change_scope = 0 '\000' fbc = 0x1b56100 num_args = 1 #6 0x0000000000ab790b in ZEND_DO_FCALL_SPEC_CONST_HANDLER (execute_data=0x7f29243a7c00) at /home/zhangfan/env-trunk/php/php-5.6.11/Zend/zend_vm_execute.h:2599 opline = 0x7f291e7b18b8 fname = 0x7f291e7afc38 call = 0x7f29243a7d68 #7 0x0000000000ab156f in execute_ex (execute_data=0x7f29243a7c00) at /home/zhangfan/env-trunk/php/php-5.6.11/Zend/zend_vm_execute.h:363 Actual result: -------------- (gdb) bt full #0 _get_record_gl (gi=0x0, ipnum=2976376787, gl=0x7fff69cd0ad0) at GeoIPCity.c:185 seek_record = <value optimized out> r = <value optimized out> #1 0x00007f292359acf5 in _get_record (gi=0x0, name=<value optimized out>) at GeoIPCity.c:206 gl = {netmask = 1132003024} #2 GeoIP_record_by_name (gi=0x0, name=<value optimized out>) at GeoIPCity.c:282 ipnum = <value optimized out> #3 0x00007f29237c83dc in zif_geoip_record_by_name (ht=1, return_value=0x7f291d8aad60, return_value_ptr=0x7f29243a7be8, this_ptr=0x0, return_value_used=1) at /home/zhangfan/php/modules/geoip-1.1.0/geoip.c:560 gi = 0x0 hostname = 0x7f291d8a5958 "177.103.231.211" arglen = 15 gir = 0x7f291e7af850 #4 0x00007f2922aaead8 in phalcon_execute_internal (execute_data_ptr=0x7f29243a7c00, fci=0x0, return_value_used=1) at /home/zhangfan/php/modules/cphalcon-phalcon-v1.3.4/ext/phalcon.c:57 return_value_ptr = 0x7f29243a7be8 #5 0x0000000000ab1f39 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f29243a7c00) at /home/zhangfan/env-trunk/php/php-5.6.11/Zend/zend_vm_execute.h:560 ret = 0x7f29243a7be0 opline = 0x7f291e7b18b8 should_change_scope = 0 '\000' fbc = 0x1b56100 num_args = 1 #6 0x0000000000ab790b in ZEND_DO_FCALL_SPEC_CONST_HANDLER (execute_data=0x7f29243a7c00) at /home/zhangfan/env-trunk/php/php-5.6.11/Zend/zend_vm_execute.h:2599 opline = 0x7f291e7b18b8 fname = 0x7f291e7afc38 call = 0x7f29243a7d68 #7 0x0000000000ab156f in execute_ex (execute_data=0x7f29243a7c00) at /home/zhangfan/env-trunk/php/php-5.6.11/Zend/zend_vm_execute.h:363