# apc 3.0.10 dumping core Sol 2.8

- Thread: https://externals.io/message/22517
- Original archive: https://news-web.php.net/php.internals/22517
- Started by James M Luedke on 2006-03-18T02:00:21+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #22517 — James M Luedke — 2006-03-18T02:00:21+00:00

URL: https://externals.io/message/22517#22517

Hi:
    I am upgrading my APC to 3.0.10 from 3.0.8 and have run into a strange core at startup. At first glance it seems as though it's pukeing setting home INI entry in OnUpdateInt. Spent about an hour pokeing around to make sure i wasnt doing anything stupid. My build env. seems stable, as it's the same env i built 3.0.8 on. Figured I would check to see if anyone else has seen such an event, and can suggest a fix before i get neck deep into this.

I have attached some gdb info in hopes it will assist.

-James

#0  0x001ba4dc in OnUpdateInt (entry=0x7ad738, new_value=0x7591a0 "90", new_value_length=2, mh_arg1=0x31, mh_arg2=0xfeee0240, mh_arg3=0x0, stage=1)
    at /php-4.3.11-fastcgi/Zend/zend_ini.c:472                                           
#1  0x001b9dd4 in zend_register_ini_entries (ini_entry=0xfeedfff0, module_number=22) at /php-4.3.11-fastcgi/Zend/zend_ini.c:174
#2  0xfeec4b78 in zm_startup_apc (type=1, module_number=22) at /APC-3.0.10/php_apc.c:184
#3  0x00134e88 in php_dl (file=0xfeee01ac, type=1, return_value=0xffbef778) at /php-4.3.11-fastcgi/ext/standard/dl.c:238
#4  0x00189094 in php_load_function_extension_cb (arg=0x74c1b0) at /php-4.3.11-fastcgi/main/php_ini.c:219
#5  0x001a8660 in zend_llist_apply (l=0x74c1a8, func=0x189080 <php_load_function_extension_cb>) at /php-4.3.11-fastcgi/Zend/zend_llist.c:189
#6  0x0018957c in php_ini_delayed_modules_startup () at /php-4.3.11-fastcgi/main/php_ini.c:502      
#7  0x00183e30 in php_module_startup (sf=0x0, additional_modules=0x0, num_additional_modules=0) at /php-4.3.11-fastcgi/main/main.c:1233
#8  0x001d0bf4 in main (argc=5, argv=0xffbefbdc) at /php-4.3.11-fastcgi/sapi/cgi/cgi_main.c:1167
(gdb) f 1                                                                                
#1  0x001b9dd4 in zend_register_ini_entries (ini_entry=0xfeedfff0, module_number=22) at /php-4.3.11-fastcgi/Zend/zend_ini.c:174
174                             if (!hashed_ini_entry->on_modify
(gdb) print *ini_entry
$1 = {module_number = 22, modifyable = 4, name = 0xfeecdb90 "apc.slam_defense", name_length = 17, on_modify = 0x1ba4cc <OnUpdateInt>, mh_arg1 = 0x31, mh_arg2 = 0xfeee0240, mh_arg3 = 0x0,
  value = 0xfeecdc40 "0", value_length = 1, orig_value = 0x0, orig_value_length = 0, modified = 0, displayer = 0x1ba28c <zend_ini_boolean_displayer_cb>}
(gdb) list
169                     if (zend_hash_add(directives, p->name, p->name_length, p, sizeof(zend_ini_entry), (void **) &hashed_ini_entry)==FAILURE) {
170                             zend_unregister_ini_entries(module_number TSRMLS_CC);
171                             return FAILURE;
172                     }
173                     if ((zend_get_configuration_directive(p->name, p->name_length, &default_value))==SUCCESS) {
174                             if (!hashed_ini_entry->on_modify
175                                     || hashed_ini_entry->on_modify(hashed_ini_entry, default_value.value.str.val, default_value.value.str.len, hashed_ini_entry->mh_arg1, hashed_ini_entry->mh_arg2, hashed_ini_en
try->mh_arg3, ZEND_INI_STAGE_STARTUP TSRMLS_CC)==SUCCESS) {
176                                     hashed_ini_entry->value = default_value.value.str.val;
177                                     hashed_ini_entry->value_length = default_value.value.str.len;
178                             }
(gdb) f 0
#0  0x001ba4dc in OnUpdateInt (entry=0x7ad738, new_value=0x7591a0 "90", new_value_length=2, mh_arg1=0x31, mh_arg2=0xfeee0240, mh_arg3=0x0, stage=1)
    at /php-4.3.11-fastcgi/Zend/zend_ini.c:472
472             *p = zend_atoi(new_value, new_value_length);
(gdb) list
467             base = (char *) ts_resource(*((int *) mh_arg2));
468     #endif
469
470             p = (long *) (base+(size_t) mh_arg1);
471
472             *p = zend_atoi(new_value, new_value_length);
473             return SUCCESS;
474     }
475
476
(gdb) print new_value_length
$3 = 2
