php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14486 mysql: "describe non_existing_table" causes segfault
Submitted: 2001-12-13 09:01 UTC Modified: 2002-01-03 18:01 UTC
From: mop at globalpark dot de Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.0.6 OS: Linux 2.4.x
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mop at globalpark dot de
New email:
PHP Version: OS:

 

 [2001-12-13 09:01 UTC] mop at globalpark dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-13 09:12 UTC] derick@php.net
Can you make a backtrace? >> bugs.php.net/how-to-report.php

Derick
 [2001-12-13 09:19 UTC] 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 12:01 UTC] mop at globalpark dot 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 12:45 UTC] 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.
 [2002-01-03 18:01 UTC] lobbin@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 13 05:01:27 2024 UTC