Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29049 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98300 invoked by uid 1010); 26 Apr 2007 10:36:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 98285 invoked from network); 26 Apr 2007 10:36:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Apr 2007 10:36:12 -0000 Authentication-Results: pb1.pair.com header.from=lists@block-online.eu; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=lists@block-online.eu; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain block-online.eu from 81.169.146.245 cause and error) X-PHP-List-Original-Sender: lists@block-online.eu X-Host-Fingerprint: 81.169.146.245 em-p07-ob.rzone.de Solaris 10 (beta) Received: from [81.169.146.245] ([81.169.146.245:21381] helo=em-p07-ob.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/41-00993-B9080364 for ; Thu, 26 Apr 2007 06:36:12 -0400 Received: from post.webmailer.de (teg.store [192.168.40.117]) by bjorn-em-02.store (RZmta 5.7) with ESMTP id C07007j3PI9t0J ; Thu, 26 Apr 2007 12:36:05 +0200 (MEST) Received: (from httpd@localhost) by post.webmailer.de (8.13.6/8.13.6) id l3QAa4ud021912; Thu, 26 Apr 2007 12:36:04 +0200 (MEST) Date: Thu, 26 Apr 2007 12:36:04 +0200 (MEST) Message-ID: <200704261036.l3QAa4ud021912@post.webmailer.de> X-Authentication-Warning: teg.store: httpd set sender to lists@block-online.eu using -f To: "Marcus Boerger" Cc: internals@lists.php.net X-Priority: 3 X-Abuse: 109444 / 84.63.165.6 X-RZG-MBID: 00HmG4eiyu2pxioG MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-RZG-CLASS-ID: em07 Subject: Re: Re: [PHP-DEV] SIGSEGV/ php_mod_global_dtor From: lists@block-online.eu ("Oliver Block") Hello Marcus, thanks for hinting me to ext_skel. Actually I wanted to avoid copying my co= de 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 > Hello Oliver, >=20 > 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). >=20 > best regards > marcus >=20 > Thursday, April 26, 2007, 12:56:25 AM, you wrote: >=20 > > Hello internals, >=20 > > I am facing a problem with tsrm_ls. I receive a SIGSEGV on a specific > memory address. >=20 > > Program received signal SIGSEGV, Segmentation fault. > > 0x40019880 in ?? () >=20 > > During a second execution I get >=20 > > (gdb) x/ 0x40019880 > > 0x40019880 : 0x5de58955 >=20 > > My code is PHP_MINIT_FUNCTION(cforum) { >=20 > > #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 >=20 > > ... > > } >=20 > > static void php_cforum_globals_ctor( zend_cforum_globals *cforum_global= s > TSRMLS_ > > DC ) > > { > > } > > static void php_cforum_globals_dtor( zend_cforum_globals *cforum_global= s > TSRMLS_ > > DC ) > > { > > } >=20 > > Any suggestions? Help is appreciated. >=20 > > Best regards, >=20 > > Oliver >=20 >=20 >=20 >=20 > Best regards, > Marcus >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >=20 >=20 --- original Nachricht Ende ----