SIGSEGV/ php_mod_global_dtor
| From: | Oliver Block | Date: | Wed, 25 Apr 2007 22:56:25 +0000 |
| Subject: | SIGSEGV/ php_mod_global_dtor | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-29036@lists.php.net to get a copy of this message | ||
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