Bug #14486 Updated: mysql: "describe non_existing_table" causes segfault
| From: | lobbin@php.net | Date: | Thu, 03 Jan 2002 23:01:35 +0000 |
| Subject: | Bug #14486 Updated: mysql: "describe non_existing_table" causes segfault | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-75819@lists.php.net to get a copy of this message | ||
ID: 14486
Updated by: lobbin
Reported By: mop@globalpark.de
Old Status: Feedback
Status: Closed
Bug Type: Reproducible crash
Operating System: Linux 2.4.x
PHP Version: 4.0.6
New Comment:
No feedback. Closing.
Previous Comments:
------------------------------------------------------------------------
[2001-12-13 12:45:33] mfischer@php.net
Is there a reason why you include the external libraries?
Try compiling without the --with-mysql swich; you don't need it. PHP sources come with the
libmysqlclient sources.
If still crashes, compile with --enable-debug and give us a backtrace with gdb.
Feedback.
------------------------------------------------------------------------
[2001-12-13 12:01:24] mop@globalpark.de
i tried mysql-3.23.37 and 4.0-alpha.
configure options are:
'./configure' '--with-apxs=/opt/pdp/apache/bin/apxs' '--with-zlib'
'--with-mysql=/opt/pdp/mysql' '-- enable-sysvsem' '--enable-sysvshm'
please note that table hund does not exist as stated in the topic.
------------------------------------------------------------------------
[2001-12-13 09:19:59] mfischer@php.net
Not reproducable with 4.0.6.
Are you using external mysql libs?
Please give latest 4.1.0 a try.
------------------------------------------------------------------------
[2001-12-13 09:12:22] derick@php.net
Can you make a backtrace? >> bugs.php.net/how-to-report.php
Derick
------------------------------------------------------------------------
[2001-12-13 09:01:29] mop@globalpark.de
<?
mysql_connect("localhost","hund","test");
mysql_select_db("test");
mysql_query("describe hund");
echo "test";
?>
This small script causes a funny segfault.
Tested with apache 1.3.20 and 1.3.19 with php versions 4.0.2 and 4.0.6
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14486&edit=1