From: Niksa Jurinovic <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Bug in embedded libmysqld library or configuration problem
>Description:
mysql-4.0.1-alpha, Linux Mandrake 8.1, Kernel 2.4.8
I have configured and compiled source code as always, without any problems.
'make test' was successful with all 144 tests passed. The classiccombination
client/server works fine. Unfortunately, when I try to start the standalone
program 'mysql' (client linked with server in ../libmysqld/examples
directory) I get
Segmentation fault (core dumped).
In fact, the program starts and mysql> prompt occurs.
When I type 'help', help is executed. One could think
that all is OK. But when I issue a query, the program
aborts with 'segmentation fault'. Furthermore, it is
enough to start the program and type 'quit' and
'segmentation fault' occurs.
The same is with 'test_libmysqld.c' program built with
'GNUmakefile', both extracted from 'manual.txt'. Compilation was OK, but
when I start standalone executable program - Segmentation fault (core
dumped).
I experimented adding and changing some options and variables in /etc/my.cnf
file inside groups
[mysql_SERVER]/[test_libmysqld_SERVER], [server], [embedded]
but without any results. I also tried without any my.cnf
file with default (compiled) variable values - and nothing!
Is it bug in embedded libmysqld library or configuration
(my.cnf) problem?
>Release: mysql-4.0.1-alpha (Source distribution)
>Environment:
Intel Pentium III, 384 MB RAM
System: Linux localhost.localdomain 2.4.8-26mdk #1 Sun Sep 23 17:06:39 CEST
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/i586-mandrake-linux-gnu/2.96/specs
gcc version 2.96 20000731 (Mandrake Linux 8.1 2.96-0.62mdk)
Compilation info: CC='gcc'
CFLAGS='-fomit-frame-pointer -fexpensive-optimizations -mcpu=pentiumpro -mar
ch=pentiumpro -DCPU=pentiumpro' CXX='gcc'
CXXFLAGS='-fomit-frame-pointer -fexpensive-optimizations -mcpu=pentiumpro -m
arch=pentiumpro -DCPU=pentiumpro' LDFLAGS='-s'
LIBC:
lrwxrwxrwx 1 root root 13 Dec 2 20:41 /lib/libc.so.6 ->
libc-2.2.4.so
-rwxr-xr-x 1 root root 1285480 Sep 10 02:57 /lib/libc-2.2.4.so
-rw-r--r-- 1 root root 27487418 Sep 10 02:30 /usr/lib/libc.a
-rw-r--r-- 1 root root 178 Sep 10 02:30 /usr/lib/libc.so
Configure command:
./configure --prefix=/opt/mysql --localstatedir=/opt/mysql/data --with-unix
-socket-path=/opt/mysql/tmp/mysql.sock --with-mysqld-user=mysql --with-chars
et=latin1 --with-extra-charsets=latin1_de,croat --with-embedded-server --wit
h-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --without-inn
odb --enable-thread-safe-client --enable-assembler --enable-large-files
Best regards
Niksa Jurinovic
[EMAIL PROTECTED]
---------------------------------------------------------------------
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