Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29037 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56315 invoked by uid 1010); 25 Apr 2007 23:15:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 56300 invoked from network); 25 Apr 2007 23:15:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Apr 2007 23:15:54 -0000 Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 85.214.94.56 cause and error) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Received: from [85.214.94.56] ([85.214.94.56:33836] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 81/81-00993-821EF264 for ; Wed, 25 Apr 2007 19:15:54 -0400 Received: from baumbart.mbo (dslb-084-063-037-061.pools.arcor-ip.net [84.63.37.61]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id 47F001B34A5; Thu, 26 Apr 2007 01:15:50 +0200 (CEST) Date: Thu, 26 Apr 2007 01:16:48 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <196465637.20070426011648@marcus-boerger.de> To: Oliver Block CC: internals@lists.php.net In-Reply-To: <200704252256.l3PMuPFZ014420@post.webmailer.de> References: <200704252256.l3PMuPFZ014420@post.webmailer.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] SIGSEGV/ php_mod_global_dtor From: helly@php.net (Marcus Boerger) 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 : 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