Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22517 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30515 invoked by uid 1010); 18 Mar 2006 02:01:25 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 30500 invoked from network); 18 Mar 2006 02:01:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Mar 2006 02:01:25 -0000 X-Host-Fingerprint: 207.155.252.115 atlas.concentric.com Solaris 9 Received: from ([207.155.252.115:60052] helo=atlas.concentric.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 6E/89-55982-4F96B144 for ; Fri, 17 Mar 2006 21:01:25 -0500 Received: (www@localhost) by atlas.concentric.com id VAA11754; Fri, 17 Mar 2006 21:00:21 -0500 (EST) [ConcentricHost SMTP Relay 1.17] Message-ID: <200603180200.VAA11754@atlas.concentric.com> Errors-To: To: Reply-To: jluedke@concentric.com Date: Fri, 17 Mar 2006 21:00:21 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: apc 3.0.10 dumping core Sol 2.8 From: jluedke@concentric.com (James M Luedke) 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 ho= me INI entry in OnUpdateInt. Spent about an hour pokeing around to make sur= e i wasnt doing anything stupid. My build env. seems stable, as it's the sa= me env i built 3.0.8 on. Figured I would check to see if anyone else has se= en 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=3D0x7ad738, new_value=3D0x7591a0 "90",= new_value_length=3D2, mh_arg1=3D0x31, mh_arg2=3D0xfeee0240, mh_arg3=3D0x0,= stage=3D1) at /php-4.3.11-fastcgi/Zend/zend_ini.c:472 = =20 #1 0x001b9dd4 in zend_register_ini_entries (ini_entry=3D0xfeedfff0, module= _number=3D22) at /php-4.3.11-fastcgi/Zend/zend_ini.c:174 #2 0xfeec4b78 in zm_startup_apc (type=3D1, module_number=3D22) at /APC-3.0= .10/php_apc.c:184 #3 0x00134e88 in php_dl (file=3D0xfeee01ac, type=3D1, return_value=3D0xffb= ef778) at /php-4.3.11-fastcgi/ext/standard/dl.c:238 #4 0x00189094 in php_load_function_extension_cb (arg=3D0x74c1b0) at /php-4= .3.11-fastcgi/main/php_ini.c:219 #5 0x001a8660 in zend_llist_apply (l=3D0x74c1a8, func=3D0x189080 ) 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 =20 #7 0x00183e30 in php_module_startup (sf=3D0x0, additional_modules=3D0x0, n= um_additional_modules=3D0) at /php-4.3.11-fastcgi/main/main.c:1233 #8 0x001d0bf4 in main (argc=3D5, argv=3D0xffbefbdc) at /php-4.3.11-fastcgi= /sapi/cgi/cgi_main.c:1167 (gdb) f 1 = =20 #1 0x001b9dd4 in zend_register_ini_entries (ini_entry=3D0xfeedfff0, module= _number=3D22) at /php-4.3.11-fastcgi/Zend/zend_ini.c:174 174 if (!hashed_ini_entry->on_modify (gdb) print *ini_entry $1 =3D {module_number =3D 22, modifyable =3D 4, name =3D 0xfeecdb90 "apc.sl= am_defense", name_length =3D 17, on_modify =3D 0x1ba4cc , mh_a= rg1 =3D 0x31, mh_arg2 =3D 0xfeee0240, mh_arg3 =3D 0x0, value =3D 0xfeecdc40 "0", value_length =3D 1, orig_value =3D 0x0, orig_va= lue_length =3D 0, modified =3D 0, displayer =3D 0x1ba28c } (gdb) list 169 if (zend_hash_add(directives, p->name, p->name_leng= th, p, sizeof(zend_ini_entry), (void **) &hashed_ini_entry)=3D=3DFAILURE) { 170 zend_unregister_ini_entries(module_number T= SRMLS_CC); 171 return FAILURE; 172 } 173 if ((zend_get_configuration_directive(p->name, p->n= ame_length, &default_value))=3D=3DSUCCESS) { 174 if (!hashed_ini_entry->on_modify 175 || hashed_ini_entry->on_modify(hash= ed_ini_entry, default_value.value.str.val, default_value.value.str.len, has= hed_ini_entry->mh_arg1, hashed_ini_entry->mh_arg2, hashed_ini_en try->mh_arg3, ZEND_INI_STAGE_STARTUP TSRMLS_CC)=3D=3DSUCCESS) { 176 hashed_ini_entry->value =3D default= _value.value.str.val; 177 hashed_ini_entry->value_length =3D = default_value.value.str.len; 178 } (gdb) f 0 #0 0x001ba4dc in OnUpdateInt (entry=3D0x7ad738, new_value=3D0x7591a0 "90",= new_value_length=3D2, mh_arg1=3D0x31, mh_arg2=3D0xfeee0240, mh_arg3=3D0x0,= stage=3D1) at /php-4.3.11-fastcgi/Zend/zend_ini.c:472 472 *p =3D zend_atoi(new_value, new_value_length); (gdb) list 467 base =3D (char *) ts_resource(*((int *) mh_arg2)); 468 #endif 469 470 p =3D (long *) (base+(size_t) mh_arg1); 471 472 *p =3D zend_atoi(new_value, new_value_length); 473 return SUCCESS; 474 } 475 476 (gdb) print new_value_length $3 =3D 2