php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11494 mysql_db_query causes apache to "exit signal Segmentation fault (11)"
Submitted: 2001-06-14 15:49 UTC Modified: 2001-06-19 08:24 UTC
From: plamendp at bgstore dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.5 OS: FreeBSD 4.3 RELEASE
Private report: No CVE-ID: None
 [2001-06-14 15:49 UTC] plamendp at bgstore dot com
Apache 1.3.20
PHP 4.0.5
mysql 3.23.38
pgsql 7.1.2

"--with-apxs=/usr/local/sbin/apxs" \
"--with-config-file-path=/usr/local/etc" \
"--with-system-regex" \
"--enable-debug" \
"--enable-track-vars" \
"--without-gd" \
"--disable-pear" \
"--with-zlib" \
"--with-imap=/usr/local" \
"--with-mysql=/usr/local" \
"--with-pgsql=/usr/local" \
"--with-xml=/usr/local" \
"--enable-ftp" \
"--with-gettext=/usr/local" \
"--enable-sockets" \
"--enable-sysvsem" \
"--enable-sysvshm" \
"--prefix=/usr/local" \
"i386--freebsd4.3" \



<?php
$id = mysql_pconnect("myhost","mydatabase","mypass");
$result = mysql_db_query("SELECT blah-blah-bla");
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-14 17:14 UTC] sniper@php.net
I guess this is the PostGreSQL bug that is fixed in
CVS and in PHP 4.0.6RCx:

http://www.php.net/~andi/php-4.0.6RC3.tar.gz

(if above url doesn't work, change the RC3 to RC4)

--Jani

 [2001-06-14 17:14 UTC] sniper@php.net
Reopen if this happens with the 4.0.6.

 [2001-06-15 03:16 UTC] plamendp at bgstore dot com
I forgot to mention that this happens *only* when connection to MySQL *IS* 'persistent', i.e.  mysql_db_query makes this sqgfault to happen after

mysql_pconnect()

Using 

mysql_connect()

is OK ! No segfault ! Zero problem !

p.s. I thought this is a MySQL related problem ? Why PostgreSQL  was involved here ? 
 [2001-06-19 08:24 UTC] sniper@php.net
Without the GDB backtrace I can't be sure if it was
the same bug. Does it work with the RC3 or not?
Reopen if not.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC