Re: Troubles with DL'ed module

From: Date: Mon, 30 Apr 2001 17:40:04 +0000
Subject: Re: Troubles with DL'ed module
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-53111@lists.php.net to get a copy of this message
I'm going to try and build it statically first. I don't have any problem posting the code (its already avail on sourceforge but you will need some proprietary libraries to build it). The MINIT and/or RINIT is the constants are initialized. You've given me some to go on, I'll work with it for a day or so first. Thanks, Brian Andi Gutmans wrote: > > Sounds like some kind of memory corruption. With these kind of problems > even the order of statements can make a difference. Do you want to post > those two functions and we can take a look at them? Also are your RINIT() & > MINIT() functions doing anything? Maybe they are causing problems? > > Andi > > At 11:17 AM 4/30/2001 -0500, Brian Foddy wrote: > > >One more strange behavior I just saw. > > > >Take this little script: > ><? > >phpinfo (); > > > > > >$tux = tux_tpalloc (TUX_FML32, "", 5000); > >print $tux; > > > > > >tux_tpfree ($tux); > >print $tux; > > > >?> > > > > > >The tux_tpalloc and tux_free are new functions in my module. > >If I comment out everything but the phpinfo () and hit > >a fresh start of the web server, it will not core. My module > >is loaded because I see it in the phpinfo output. After that > >I can uncomment the rest of the script and it will NOT core. > > > >However if I just run this script right away from a fresh > >restart, it will coredump. > > > >Very strange... > >Brian > > > >-- > >PHP Development Mailing List <http://www.php.net/> > >To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > >For additional commands, e-mail: php-dev-help@lists.php.net > >To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.dev (#53111) next »