5 messages in com.mysql.lists.bugsSegmentation fault starting mysql cli...| From | Sent On | Attachments |
|---|---|---|
| root | 12 Apr 2003 18:00 | |
| Martin Gainty | 13 Apr 2003 16:20 | |
| root | 13 Apr 2003 17:16 | |
| Niksa Jurinovic | 13 Apr 2003 17:46 | |
| Holyfoot | 16 Apr 2003 05:11 |
| Subject: | Segmentation fault starting mysql client linked with embedded library![]() |
|---|---|
| From: | root (nik...@jurinovic.de) |
| Date: | 04/12/2003 06:00:26 PM |
| List: | com.mysql.lists.bugs |
From: Niksa Jurinovic To: bu...@mysql.com Subject: Segmentation fault starting mysql client linked with embedded library
Description:
Mysql client in classic client-server combination works fine. Only mysql client linked with embedded libmysqld.a library crashes with segmentation fault at start time.
How-To-Repeat:
Start mysql client linked with embedded library in ../libmysqld/examples directory.
Fix:
The problem didn't exist in mysql-4.0.12. It seems the problem is in mysql.cc source code with points related to embedded library. Linked with libmysqlclient, it works fine. At the other side, any other program linked with embedded libmysqld.a library also works fine. Only combination mysql.cc - libmysqld.a produces segmentation fault.
Submitter-Id: <submitter ID> Originator: root Organization: MySQL support: [none | licence | email support | extended email support ] Synopsis: # ../libmysqld/examples/mysql Severity: <[ non-critical | serious | critical ] (one line)> Priority: <[ low | medium | high ] (one line)> Category: mysql Class: <[ sw-bug | doc-bug | change-request | support ] (one line)> Release: mysql-4.1.0-alpha (Source distribution) Server: /opt/mysql/bin/mysqladmin Ver 8.40 Distrib 4.1.0-alpha, for pc-linux
on i686 Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL license
Server version 4.1.0-alpha Protocol version 10 Connection Localhost via UNIX socket UNIX socket /opt/mysql/tmp/mysql.sock Uptime: 2 hours 10 min 59 sec
Threads: 1 Questions: 802 Slow queries: 0 Opens: 35 Flush tables: 1 Open tables: 11 Queries per second avg: 0.102
C compiler: gcc-3.2.2 (GCC) 3.2.2 (Mandrake Linux 9.2 3.2.2-5mdk) C++ compiler: gcc-3.2.2 (GCC) 3.2.2 (Mandrake Linux 9.2 3.2.2-5mdk) Environment:
<machine, os, target, libraries (multiple lines)> System: Linux localhost 2.4.21-0.16mdkenterprise #1 SMP Fri Apr 11 06:09:08 CEST 2003 i686 unknown unknown GNU/Linux 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/3.2.2/specs Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-languages=c,c++,ada,f77,objc,java --host=i586-mandrake-linux-gnu --target=i586-mandrake-linux-gnu --with-system-zlib Thread model: posix gcc version 3.2.2 (Mandrake Linux 9.2 3.2.2-5mdk) Compilation info: CC='gcc' CFLAGS='-W -Wall -O6 -fomit-frame-pointer -pipe -mcpu=pentium4 -march=pentium4 -DCPU=pentium4 -ffast-math -fno-strength-reduce' CXX='gcc' CXXFLAGS='-W -Wall -O6 -fomit-frame-pointer -pipe -mcpu=pentium4 -march=pentium4 -DCPU=pentium4 -ffast-math -fno-strength-reduce -felide-constructors' LDFLAGS='-s' ASFLAGS='' LIBC: lrwxrwxrwx 1 root root 13 Apr 6 03:55 /lib/libc.so.6 -> libc-2.3.1.so -rwxr-xr-x 1 root root 1229764 Feb 17 11:31 /lib/libc-2.3.1.so -rw-r--r-- 1 root root 2367496 Feb 17 11:30 /usr/lib/libc.a -rw-r--r-- 1 root root 204 Feb 17 11:13 /usr/lib/libc.so -rw-r--r-- 1 root root 2316670 Jan 8 11:17 /usr/lib/libc-client-PHP4.a -rw-r--r-- 1 root root 2256934 Jan 8 11:17 /usr/lib/libc-client-nossl.a -rw-r--r-- 1 root root 2339648 Jan 8 11:17 /usr/lib/libc-client.a Configure command: ./configure '--prefix=/opt/mysql' '--localstatedir=/opt/mysql/data' '--with-unix-socket-path=/opt/mysql/tmp/mysql.sock' '--with-mysqld-user=mysql' '--with-charset=latin1' '--with-extra-charsets=latin1_de,croat,ucs2,utf8' '--with-embedded-server' '--with-client-ldflags=-all-static' '--with-mysqld-ldflags=-all-static' '--enable-local-infile' '--without-innodb' '--enable-thread-safe-client' '--enable-assembler' '--enable-large-files' 'CC=gcc' 'CFLAGS=-W -Wall -O6 -fomit-frame-pointer -pipe -mcpu=pentium4 -march=pentium4 -DCPU=pentium4 -ffast-math -fno-strength-reduce' 'CXXFLAGS=-W -Wall -O6 -fomit-frame-pointer -pipe -mcpu=pentium4 -march=pentium4 -DCPU=pentium4 -ffast-math -fno-strength-reduce -felide-constructors -fno-rtti -fno-exceptions' 'CXX=gcc' 'LDFLAGS=-s'




