Bug #1718: ereg_replace crashes (segmentation fault)
| From: | zaucker at ee dot ethz dot ch | Date: | Thu, 15 Jul 1999 06:32:55 +0000 |
| Subject: | Bug #1718: ereg_replace crashes (segmentation fault) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-8523@lists.php.net to get a copy of this message | ||
From: zaucker@ee.ethz.ch
Operating system: Linux version 2.2.5-15
PHP version: 3.0.11
PHP Bug Type: Reproduceable crash
Bug description: ereg_replace crashes (segmentation fault)
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