Hello Marcus, thanks for hinting me to ext_skel. Actually I wanted to avoid copying my code and tried to set the dtor parameter to NULL and that seems to work too.
Best Regards, Oliver ----- original Nachricht -------- Betreff: Re: [PHP-DEV] SIGSEGV/ php_mod_global_dtor Gesendet: Do, 26. Apr 2007 Von: Marcus Boerger<[EMAIL PROTECTED]> > 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --- original Nachricht Ende ---- -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php