php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1718 ereg_replace crashes (segmentation fault)
Submitted: 1999-07-15 08:32 UTC Modified: 1999-07-15 12:13 UTC
From: zaucker at ee dot ethz dot ch Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0.11 OS: Linux version 2.2.5-15
Private report: No CVE-ID: None
 [1999-07-15 08:32 UTC] zaucker at ee dot ethz dot ch
Running  phpMyAdmin_2.0.2 with MySQL-3.22.25-1 crashes
in several (I guess all) calls to ereg_replace. Here are examples for some of those calls:

   $valuelist = ereg_replace(', $', '', $valuelist);
   $fieldlist = ereg_replace(', $', '', $fieldlist);
   $valuelist = ereg_replace(', $', '', $valuelist);

   switch (ereg_replace("\(.*", "", $row_table_def[Type])) {
	...
	}
   $set = ereg_replace("enum\(|'|\)", "", $row_table_def["Type"]);

Apache (1.3.6) reports to its log file:

[Wed Jul 14 23:06:30 1999] [notice] child pid 15277 exit signal Segmentation fault (11)

This is my php3 configure line

 ./configure --with-apxs=/usr/sbin/apxs --with-mysql
 
I also tried
./configure --with-apxs=/usr/sbin/apxs --with-mysql 		   	               --with--system-regex 
 
with the same result.

I used the php3.ini-dist file.

Unfortunately I don't get much of an output from gdb:

Starting program: /usr/sbin/httpd -X

Program received signal SIGSEGV, Segmentation fault.
0x0 in ?? ()
(gdb) bt
#0  0x0 in ?? ()

Anything else I could provide?

Cheers,
Fritz

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-15 12:13 UTC] sas at cvs dot php dot net
You might try the latest CVS, it should be fixed in there. See http://cvs.php.net for more information
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 00:01:28 2024 UTC