5 messages in com.mysql.lists.bugsBug in embedded libmysqld library or ...
FromSent OnAttachments
Niksa Jurinovic26 Dec 2001 18:41 
Miguel Angel Solorzano26 Dec 2001 22:56 
Michael Widenius27 Dec 2001 04:50 
Miguel Angel Solorzano29 Dec 2001 01:41 
Michael Widenius30 Dec 2001 04:53 
Subject:Bug in embedded libmysqld library or configuration problem?
From:Niksa Jurinovic (nik@jurinovic.de)
Date:12/26/2001 06:41:51 PM
List:com.mysql.lists.bugs

From: Niksa Jurinovic <nik@jurinovic.de> To: bu@lists.mysql.com 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 classic combination 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, butwhen 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?

How-To-Repeat:

Simply compile and start 'mysql' standalone program in ../libmysqld/example/ directory of original mysql-4.0.1-alpha source distibution.

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