Source-Install 5.0.85 on Debian Lenny: MySQL-Client segfaults

Source-Install 5.0.85 on Debian Lenny: MySQL-Client segfaults

am 15.09.2009 18:39:57 von werner

Hi everybody,

I'm currently installing MySQL 5.0.85 from source on Debian Lenny, but do expirience
Problems with the MySQL-Client.

# uname -a
Linux corleone 2.6.26-2-amd64 #1 SMP Wed Aug 19 22:33:18 UTC 2009 x86_64 GNU/Linux


# The following configure-options are used:
../configure --prefix=/usr/local/mysql --with-charset=latin1 --with-mysqld-user=mysql --with-comment=x86_64-SMP --without-debug
--enable-thread-safe-client --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --disable-shared

I'm able to start the database successfully *but* I've I try to connect with the
MySQL-Client - the MySQL-Client dies with a segfault as follows:


server:#/usr/local/mysql/bin/mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.0.84 GOFRESH-x86_64-SMP
Segmentation fault

Any help greatly appreciated.

Thank you,
Werner

PS: Here is the strace of the mysql-Call

corleone:/usr/local/mysql/bin# strace /usr/local/mysql/bin/mysql -u root
execve("/usr/local/mysql/bin/mysql", ["/usr/local/mysql/bin/mysql", "-u", "root"], [/* 15 vars */]) = 0
uname({sys="Linux", node="corleone", ...}) = 0
brk(0) = 0x2647000
brk(0x2647f70) = 0x2647f70
arch_prctl(ARCH_SET_FS, 0x26478b0) = 0
brk(0x2668f70) = 0x2668f70
brk(0x2669000) = 0x2669000
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B9600 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B9600 opost isig icanon echo ...}) = 0
dup(1) = 3
close(3) = 0
stat("/etc/my.cnf", {st_mode=S_IFREG|0644, st_size=2212, ...}) = 0
open("/etc/my.cnf", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2212, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f611564a000
read(3, "# The following options will be p"..., 4096) = 2212
read(3, ""..., 4096) = 0
close(3) = 0
munmap(0x7f611564a000, 4096) = 0
stat("/usr/local/mysql/etc/my.cnf", 0x7fff1d649b30) = -1 ENOENT (No such file or directory)
stat("/root/.my.cnf", 0x7fff1d649b30) = -1 ENOENT (No such file or directory)
socket(PF_FILE, SOCK_STREAM, 0) = 3
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = -1 ENOENT (No such file or directory)
close(3) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 3
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = -1 ENOENT (No such file or directory)
close(3) = 0
open("/etc/nsswitch.conf", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=475, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f611564a000
read(3, "# /etc/nsswitch.conf\n#\n# Example "..., 4096) = 475
read(3, ""..., 4096) = 0
close(3) = 0
munmap(0x7f611564a000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=14229, ...}) = 0
mmap(NULL, 14229, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6115647000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/lib", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
open("/lib/x86_64-linux-gnu/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/x86_64-linux-gnu/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
munmap(0x7f6115647000, 14229) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=14229, ...}) = 0
mmap(NULL, 14229, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6115647000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libnss_files.so.2", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\37\0\0\0 \0\0\0@"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=47520, ...}) = 0
mmap(NULL, 2143528, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f611543b000
mprotect(0x7f6115445000, 2097152, PROT_NONE) = 0
mmap(0x7f6115645000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7f6115645000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\342\1\0\ 0\0\0\0@"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1375536, ...}) = 0
mmap(NULL, 3482232, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f61150e8000
mprotect(0x7f6115232000, 2093056, PROT_NONE) = 0
mmap(0x7f6115431000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x149000) = 0x7f6115431000
mmap(0x7f6115436000, 17016, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f6115436000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/ld-linux-x86-64.so.2", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\n\0\0\0\0\0 \0@"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=119288, ...}) = 0
mmap(NULL, 2215080, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f6114ecb000
mprotect(0x7f6114ee7000, 2093056, PROT_NONE) = 0
mmap(0x7f61150e6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b000) = 0x7f61150e6000
close(3) = 0
mprotect(0x7f6115431000, 12288, PROT_READ) = 0
munmap(0x7f6115647000, 14229) = 0
mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6114dcb000
open("/etc/services", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFD) = 0x1 (flags FD_CLOEXEC)
fstat(3, {st_mode=S_IFREG|0644, st_size=18480, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f611564a000
read(3, "# Network services, Internet styl"..., 4096) = 4096
read(3, "9/tcp\t\t\t\t# Quick Mail Transfer Pr"..., 4096) = 4096
read(3, "note\t1352/tcp\tlotusnotes\t# Lotus "..., 4096) = 4096
close(3) = 0
munmap(0x7f611564a000, 4096) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 3
fcntl(3, F_SETFL, O_RDONLY) = 0
fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
connect(3, {sa_family=AF_FILE, path="/tmp/mysql.sock"...}, 110) = 0
setsockopt(3, SOL_SOCKET, SO_RCVTIMEO, "\2003\341\1\0\0\0\0\0\0\0\0\0\0\0\0"..., 16) = 0
setsockopt(3, SOL_SOCKET, SO_SNDTIMEO, "\2003\341\1\0\0\0\0\0\0\0\0\0\0\0\0"..., 16) = 0
setsockopt(3, SOL_IP, IP_TOS, [8], 4) = -1 EOPNOTSUPP (Operation not supported)
setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
read(3, "4\0\0\0\n5.0.84\0\2\0\0\0xH?Dt=qE\0,\242!\2\0\0\0\0"..., 16384) = 56
stat("/usr/local/mysql/share/mysql/charsets/Index.xml", {st_mode=S_IFREG|0644, st_size=18173, ...}) = 0
open("/usr/local/mysql/share/mysql/charsets/Index.xml", O_RDONLY) = 4
read(4, " close(4) = 0
write(3, "&\0\0\1\5\246\3\0\0\0\0\1\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0"..., 42) = 42
read(3, "\7\0\0\2\0\0\0\2\0\0\0"..., 16384) = 11
rt_sigaction(SIGINT, {0x4046a0, [INT], SA_RESTORER|SA_RESTART, 0x4605b0}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {0x404450, [QUIT], SA_RESTORER|SA_RESTART, 0x4605b0}, {SIG_DFL}, 8) = 0
fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 1), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f611564a000
write(1, "Welcome to the MySQL monitor. Co"..., 58Welcome to the MySQL monitor. Commands end with ; or \g.
) = 58
poll([{fd=3, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(3, "!\0\0\0\3select @@version_comment lim"..., 37) = 37
read(3, "\1\0\0\1\1'\0\0\2\3def\0\0\0\21@@version_commen"..., 16384) = 89
write(1, "Your MySQL connection id is 2\nSer"..., 72Your MySQL connection id is 2
Server version: 5.0.84 GOFRESH-x86_64-SMP
) = 72
write(1, "\n"..., 1
) = 1
open("/usr/lib/locale/locale-archive", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=2461856, ...}) = 0
mmap(NULL, 2461856, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7f6114b71000
close(4) = 0
readlink("/root/.mysql_history", 0x7fff1d649d90, 511) = -1 EINVAL (Invalid argument)
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B9600 opost isig icanon echo ...}) = 0
rt_sigprocmask(SIG_BLOCK, [WINCH], [], 8) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B9600 opost isig icanon echo ...}) = 0
stat("/root/.terminfo", 0x7fff1d6481e0) = -1 ENOENT (No such file or directory)
stat("/etc/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/etc/terminfo/x/xterm-color", R_OK) = -1 ENOENT (No such file or directory)
stat("/lib/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/lib/terminfo/x/xterm-color", R_OK) = 0
open("/lib/terminfo/x/xterm-color", O_RDONLY) = 4
read(4, "\32\0019\0\17\0\20\0\235\1X\2xterm-color|generic \""..., 4097) = 1542
close(4) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B9600 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B9600 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B9600 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=56, ws_col=233, ws_xpixel=1398, ws_ypixel=784}) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++










--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org