Re: Bug #4045: Apache segfaults when PHP is loaded
| From: | admin at weirdness dot com | Date: | Thu, 06 Apr 2000 04:18:16 +0000 |
| Subject: | Re: Bug #4045: Apache segfaults when PHP is loaded | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17661@lists.php.net to get a copy of this message | ||
---- you wrote:
> On Wed, 5 Apr 2000 admin@weirdness.com wrote:
>
> > Apologies for the lousy webmail (iName) but my usual server is sitting beside me (instead
> > of sitting at the ISP) and is the one with the offending problem on it.
> >
> > ---- you wrote:
> > > MySQL from rpms? If so, try compiling from source and see if you have the
> > > same problem.
> >
> > Well, both.
> >
> > I did rpm --rebuild MySQL-3.22.32-1.src.rpm and then installed the subsequent binary RPMs.
>
> Well, that probably built the threaded libmysqlclient.so library. Compile
> from the actual tarball instead.
Just compiled from the tarball, installed, and got the same thing:
#0 0x402f0224 in ?? ()
#1 0x400cceaa in _IO_new_file_close_it (fp=0x8179c88) at fileops.c:136
#2 0x400c873a in _IO_new_fclose (fp=0x8179c88) at iofclose.c:50
#3 0x4035eb9e in php3_init_config () at configuration-parser.y:226
Grr. (expletives withheld)
Outside the directives on where to put things, the RPM compile and the one I just did do the
following:
CFLAGS=" -O6 -fomit-frame-pointer"
CXXFLAGS=" -O6 -fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti"
./configure --enable-shared
--enable-thread-safe-client
--enable-assembler
--with-mysqld-user=mysql
--with-unix-socket-path=/var/lib/mysql/mysql.sock
The build appears to be using -lpthread. I have:
/lib/libpthread-0.8.so
/lib/libpthread.so.0
/usr/lib/libpthread.a
/usr/lib/libpthread.so
/usr/i586-glibc20-linux/lib/libpthread-0.7.so
/usr/i586-glibc20-linux/lib/libpthread.so
/usr/i586-glibc20-linux/lib/libpthread.so.0
Any help or suggestions on what I options I should be throwing at MySQL or any other things to try
would be most appreciated.
------------------------------------------------------
Get free personalized email at http://four11.iname.com