Re: Troubles with DL'ed module

From: Date: Mon, 30 Apr 2001 04:36:51 +0000
Subject: Re: Troubles with DL'ed module
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-53095@lists.php.net to get a copy of this message
On Mon, 30 Apr 2001, Andi Gutmans wrote: > Your module is probably causing some memory corruption. The best way to > debug it is building the module statically into PHP. You need to copy it to > ext/your_module/ (assuming you have a standard config.m4). > Then in php4/ run ./buildconf and you should see your module when you do > ./configure --help. > ./configure and compile PHP with your module statically (best is even as a > CGI) and then you can really debug it and see if it's a problem with the > build as a shared library or if you have some bugs. > also, configuring with --enable-debug often helps... -Sterling > Andi > > At 11:01 AM 4/30/2001 -0500, Brian Foddy wrote: > >Andi Gutmans wrote: > > > > > > Did you compile with debug on or off? > > > Please try without debug in both PHP and your module and let us know if > > > something changes. > > > Also can you try and load it via php.ini (extension=module.so) and not with > > > dl(). > > > > > > > > >I rebuilt php 4.0.4p1 with debug off, rebuilt my module with debug off, > >and switched from using DL to the extension load in the php.ini. > >Unfortunately I still get the same coredump at the same line, just > >a different constant. > > > >As before I can step though it with the debugger and the address > >it cores in is viewable and has data. > > > >My gut is telling me its a build problem. Some address not aligned > >right or something. For example shouldn't the -KPIC have been > >used in the build argument list to libtool? > > > >But yet, in a seperate install without my new module the > >same version of php on the same machine is running in production > >very stable. > > > >Any ideas? > >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 (#53095) next »