>Description:
There is a bug (or undocumented feature?) in libmysqlclient - if
function "strend()" is defined in client code, client will fail
to connect to database with "MySQL client run out of memory"
message.
>How-To-Repeat:
#include <mysql/mysql.h>
#include <stdio.h>
void strend(){} /* Little nifty bug :-) */
int main()
{
MYSQL mysql;
if (mysql_init(&mysql)==NULL) return 1;
if (!mysql_real_connect(&mysql,"localhost","root","","mysql",0,NULL,0)) {
fprintf(stderr, "Failed to connect: %s\n",mysql_error(&mysql));
return 2;
}
return 0;
}
>Fix:
Don't know, maybe wrong external declaration...
>Submitter-Id: <submitter ID>
>Originator: Rastislav Rihak
>Organization:
LoneStar Software <[EMAIL PROTECTED]>
>MySQL support: none
>Synopsis: strend() problem in mysqlclient API
>Severity: non-critical
>Priority: low
>Category: mysql
>Class: sw-bug
>Release: mysql-3.23.33 (Source distribution)
>Environment:
Slackware Linux 7.1, AMD Duron 750MHz 128MB RAM
System: Linux agnetha 2.2.16 #5 Ut jan 2 20:14:03 CET 2001 i686 unknown
Architecture: i686
Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc
/usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/egcs-
2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
Compilation info: CC='gcc' CFLAGS='' CXX='c++' CXXFLAGS='' LDFLAGS=''
LIBC:
lrwxrwxrwx 1 root root 13 Feb 16 2000 /lib/libc.so.6 -> libc-
2.1.2.so -rwxr-xr-x 1 root root 1008844 Sep 10 1999
/lib/libc-2.1.2.so -rw-r--r-- 1 root root 20019674 Sep 16 1999
/usr/lib/libc.a -rw-r--r-- 1 root root 178 Sep 16 1999
/usr/lib/libc.so Configure command: ./configure --with-debug Perl: This is
perl, version 5.005_03 built for i386-linux
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php