Re: SIGSEGV/ php_mod_global_dtor

From: Date: Wed, 25 Apr 2007 23:16:48 +0000
Subject: Re: SIGSEGV/ php_mod_global_dtor
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-29037@lists.php.net to get a copy of this message
Hello Oliver, we have a bunch of macros for globals. Please use those. For example look into ext/ext_skel for help (or any extension php comeswith). best regards marcus Thursday, April 26, 2007, 12:56:25 AM, you wrote: > Hello internals, > I am facing a problem with tsrm_ls. I receive a SIGSEGV on a specific memory address. > Program received signal SIGSEGV, Segmentation fault. > 0x40019880 in ?? () > During a second execution I get > (gdb) x/ 0x40019880 > 0x40019880 <php_cforum_globals_dtor>: 0x5de58955 > My code is PHP_MINIT_FUNCTION(cforum) { > #ifdef ZTS > ts_allocate_id(&cforum_globals_id, > sizeof(zend_cforum_globals), > (ts_allocate_ctor)php_cforum_globals_ctor, > (ts_allocate_dtor)php_cforum_globals_dtor); > #else > php_cforum_globals_ctor(&cforum_globals TSRMLS_CC); > #endif > ... > } > static void php_cforum_globals_ctor( zend_cforum_globals *cforum_globals TSRMLS_ > DC ) > { > } > static void php_cforum_globals_dtor( zend_cforum_globals *cforum_globals TSRMLS_ > DC ) > { > } > Any suggestions? Help is appreciated. > Best regards, > Oliver Best regards, Marcus

« previous php.internals (#29037) next »