re: Segmentation Fault when connecting via TCP/IP

2002-10-16 Thread Egor Egorov

clint,
Wednesday, October 16, 2002, 1:14:08 AM, you wrote:

caddn Recently the server had to be hard-booted... a safe shutdown was not 
possible. After the server came back up, mysql
caddn has been acting very funny. When the server first boots, mysql wont respond to 
anything. I restart mysql and all works fine 
caddn when connecting to Localhost, however when you try to connect to the server via 
TCP/IP you get the following error on the 
caddn client :

caddn [root@monitor bin]# ./mysqlshow -h www.dis.net -u root -p
caddn Enter password: 
caddn ./mysqlshow: Lost connection to MySQL server during query
caddn [root@monitor bin]#

caddn At the same you do this on the client machine.. you get this on the host 
machine :

caddn /usr/local/bin/safe_mysqld: line 269: 26209 Segmentation fault  
$NOHUP_NICENESS $ledir/$MYSQLD $defaults 
caddn --basedir=$MY_BASEDIR_VERSION --datadir=$DATADIR $USER_OPTION 
--pid-file=$pid_file --skip-locking $err_log 21

caddn Number of processes running now: 1
caddn mysqld process hanging, pid 26212 - killed
caddn 021015 14:54:14  mysqld restarted

caddn I originally thought it may have something to do with the client.. but even a 
simple 'telnet www.host.com 3306' will produce 
caddn the same error on the server.

caddn I tried starting mysql directly (without using safe_mysqld) by using 
/usr/local/libexec/mysqld --user=root. When I did this, 
caddn it 
caddn didnt spit out an error on the client side, but it does cause a segmentation 
fault on the server with no additional warnings 
caddn or logs. After that the server fails to respond to anything.

caddn I have re-installed mysql from a secured distribution, so I know it doesnt have 
anything to do with any tampering. I have run 
caddn checks on all of the databases and they all seem fine. Also, everything works 
fine when connecting with a UNIX socket 
caddn (Localhost), the problem only appears when connecting with TCP/IP.

What do you mean secured distribution?
Re-intsall MySQL from binary distribution and let us know if it appears
again.



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ma02-010c
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com




-
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




Segmentation Fault when connecting via TCP/IP

2002-10-15 Thread clint

Description:
Recently the server had to be hard-booted... a safe shutdown was not possible. 
After the server came back up, mysql 
has been acting very funny. When the server first boots, mysql wont respond to 
anything. I restart mysql and all works fine 
when connecting to Localhost, however when you try to connect to the server via TCP/IP 
you get the following error on the 
client :

[root@monitor bin]# ./mysqlshow -h www.dis.net -u root -p
Enter password: 
./mysqlshow: Lost connection to MySQL server during query
[root@monitor bin]#

At the same you do this on the client machine.. you get this on the host machine :

/usr/local/bin/safe_mysqld: line 269: 26209 Segmentation fault  $NOHUP_NICENESS 
$ledir/$MYSQLD $defaults 
--basedir=$MY_BASEDIR_VERSION --datadir=$DATADIR $USER_OPTION --pid-file=$pid_file 
--skip-locking $err_log 21

Number of processes running now: 1
mysqld process hanging, pid 26212 - killed
021015 14:54:14  mysqld restarted

I originally thought it may have something to do with the client.. but even a simple 
'telnet www.host.com 3306' will produce 
the same error on the server.

I tried starting mysql directly (without using safe_mysqld) by using 
/usr/local/libexec/mysqld --user=root. When I did this, 
it 
didnt spit out an error on the client side, but it does cause a segmentation fault on 
the server with no additional warnings 
or logs. After that the server fails to respond to anything.

I have re-installed mysql from a secured distribution, so I know it doesnt have 
anything to do with any tampering. I have run 
checks on all of the databases and they all seem fine. Also, everything works fine 
when connecting with a UNIX socket 
(Localhost), the problem only appears when connecting with TCP/IP.

How-To-Repeat:
Connect to the server via TCP/IP
Fix:
No Clue.

Submitter-Id:  submitter ID
Originator:[EMAIL PROTECTED]
Organization: Digital Internet Services Corporation
MySQL support: none
Synopsis:  Server crashes on connect via TCP/IP.
Severity:  critical
Priority:  high
Category:  mysql
Class: sw-bug
Release:   mysql-3.23.41 (Source distribution)

Environment: 
System: Linux www.dis.net 2.4.9-31 #1 Tue Feb 26 07:11:02 EST 2002 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-redhat-linux/2.96/specs
gcc version 2.96 2731 (Red Hat Linux 7.1 2.96-85)
Compilation info: CC='gcc'  CFLAGS=''  CXX='c++'  CXXFLAGS=''  LDFLAGS=''
LIBC: 
lrwxrwxrwx1 root root   13 Oct  7 09:33 /lib/libc.so.6 - libc-2.2.4.so
-rwxr-xr-x1 root root  1285884 Sep  9 09:10 /lib/libc-2.2.4.so
-rw-r--r--1 root root 27336078 Sep  9 08:48 /usr/lib/libc.a
-rw-r--r--1 root root  178 Sep  9 08:48 /usr/lib/libc.so
Configure command: ./configure 


-
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