php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6709 intermittent segmentation faults
Submitted: 2000-09-13 05:56 UTC Modified: 2000-10-19 19:52 UTC
From: reef at totalise dot co dot uk Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.2 OS: rh6.2
Private report: No CVE-ID: None
 [2000-09-13 05:56 UTC] reef at totalise dot co dot uk
I am getting intermittent segmentation faults when running scripts that talk to a remote mysql server.

I have tried running php as dso and cgi and on both rh6.1 & 6.2 - and it doesn't make any difference.

The only success I have had is when I tried running the scripts on the mysql box (so it connects to localhost) and it seems to work fine.

I have tried a back trace and this is what I get:

(gdb) run -X -f /usr/local/apache/conf/httpd.conf
Starting program: /usr/local/apache/bin/httpd -X -f
/usr/local/apache/conf/httpd.conf

Program received signal SIGSEGV, Segmentation fault.
0x4013d0e4 in chunk_free (ar_ptr=0x401d1d60, p=0x8202f18) at
malloc.c:3100
3100    malloc.c: No such file or directory.


Is this something to do with mysql multithreading? Mysql was compiled from source to eliminate linking against pthreads.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-18 16:33 UTC] sniper@php.net
I can not reproduce this.  Which version of mysql do you use?
What is your configure line for PHP ?
And please provide shortest possible reproducing script too.

--Jani
 [2000-10-19 19:52 UTC] sniper@php.net
User feedback:
-----------
I managed to narrow the problem down to the use of --enable-trans-sid

The problem occured when PHP 4.01 or 4.02 were compiled  with

./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars -
-enable-trans-sid

It was occuring at random with any script that produced HREFs.
A re-compile without the above --enable-trans-sid cured the problem.
P.S. Close the report if you want - I have forgoten my password!
----------

This should be fixed by now.

--Jani

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 09:00:01 2026 UTC