Re: Re[2]: mysql 4.0.8- crash on TCP connection

2003-01-09 Thread Gelu Gogancea
sql,query,queries,smallint
> No, the glibc gethostby* will walk the tree defined in hosts.conf,
> normally files,dns.  A non-find in /etc/hosts followed by a >NXDOMAIN
If you said soanyhow gethostby* is used by DNS and no reverse.
The Name Server(named) use this both functions depending  by the order line
in /etc/host.conf.And after this read the /etc/hosts.Depend on the action
this file is call "host database file" or "static table for host names".

> from DNS results in a negative return from the gethostby* call. 

If it find something return a hostent data struct else is a NULL POINTER.

Conclusioni think we talk about two different  thing

Regards,

Gelu
_
G.NET SOFTWARE COMPANY

Permanent e-mail address : [EMAIL PROTECTED]
  [EMAIL PROTECTED]
- Original Message - 
From: "Christopher E. Brown" <[EMAIL PROTECTED]>
To: "Gelu Gogancea" <[EMAIL PROTECTED]>
Cc: "Andrew Sitnikov" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, January 09, 2003 9:38 PM
Subject: Re: Re[2]: mysql 4.0.8- crash on TCP connection



-
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




Re: Re[2]: mysql 4.0.8- crash on TCP connection

2003-01-09 Thread Christopher E. Brown
On Thu, 9 Jan 2003, Gelu Gogancea wrote:

>
> Functions gethostby* ,from glibc, work directly with the /etc/hosts file.If
> this functions didn't find an entry for the client, will be crashed.
> I try to find in the Andrew e-mail if he has installed the glibc 2.2.x but i
> don't see nothing about it.What i see is, he use 2.95.x which is declared by
> MySQL like unstable.In this context can be a coincidence what is happened.
> Also i don't find difference in MYSQL daemon source code(hostname.cc)
> between 4.0.7 and 4.0.8.
> Regards,
>
> Gelu


No, the glibc gethostby* will walk the tree defined in hosts.conf,
normally files,dns.  A non-find in /etc/hosts followed by a NXDOMAIN
from DNS results in a negative return from the gethostby* call.  *This
should never cause a crash*, it is not a failure in the resolver code,
it is a negative result.


As to gcc, 2.95.3 is fine and stable, the notes you mention refer to
gcc 2.96, an *unofficial* gcc release, a heavily patched monster
released by RedHat and (for a while) used in alot of places.


-- 
I route, therefore you are.


-
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




Re: Re[2]: mysql 4.0.8- crash on TCP connection

2003-01-09 Thread Gelu Gogancea

Functions gethostby* ,from glibc, work directly with the /etc/hosts file.If
this functions didn't find an entry for the client, will be crashed.
I try to find in the Andrew e-mail if he has installed the glibc 2.2.x but i
don't see nothing about it.What i see is, he use 2.95.x which is declared by
MySQL like unstable.In this context can be a coincidence what is happened.
Also i don't find difference in MYSQL daemon source code(hostname.cc)
between 4.0.7 and 4.0.8.
Regards,

Gelu
_
G.NET SOFTWARE COMPANY

Permanent e-mail address : [EMAIL PROTECTED]
  [EMAIL PROTECTED]
- Original Message -
From: "Christopher E. Brown" <[EMAIL PROTECTED]>
To: "Gelu Gogancea" <[EMAIL PROTECTED]>
Cc: "Andrew Sitnikov" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, January 09, 2003 7:48 PM
Subject: Re: Re[2]: mysql 4.0.8- crash on TCP connection


> On Thu, 9 Jan 2003, Gelu Gogancea wrote:
>
> > Hi,
> > This is a glibc problem.In this case you can start mysql daemon with
option
> > "--skip-name-resolve" and in this situation is no need to add the IP
address
> > of every client in hosts file.The disadvantage is that the client can
not
> > connect to the server using host alias.
> > Regards,
> >
> > Gelu
>
>
> Could you clarify "This is a glibc problem"?  A known standard glibc
> 2.2.5 against which every other piece of software functions correctly,
> even when receiving null returns on reverse lookups, but 4.0.8 (both
> precompiled binary and locally build) crashes on a null return.
> Specially when (according to other reports) 4.0.7 functions correctly.
>
>
> --
> I route, therefore you are.
>
>


-
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




Re: Re[2]: mysql 4.0.8- crash on TCP connection

2003-01-09 Thread Christopher E. Brown
On Thu, 9 Jan 2003, Gelu Gogancea wrote:

> Hi,
> This is a glibc problem.In this case you can start mysql daemon with option
> "--skip-name-resolve" and in this situation is no need to add the IP address
> of every client in hosts file.The disadvantage is that the client can not
> connect to the server using host alias.
> Regards,
>
> Gelu


Could you clarify "This is a glibc problem"?  A known standard glibc
2.2.5 against which every other piece of software functions correctly,
even when receiving null returns on reverse lookups, but 4.0.8 (both
precompiled binary and locally build) crashes on a null return.
Specially when (according to other reports) 4.0.7 functions correctly.


-- 
I route, therefore you are.


-
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




Re: Re[2]: mysql 4.0.8- crash on TCP connection

2003-01-09 Thread Gelu Gogancea
Hi,
This is a glibc problem.In this case you can start mysql daemon with option
"--skip-name-resolve" and in this situation is no need to add the IP address
of every client in hosts file.The disadvantage is that the client can not
connect to the server using host alias.
Regards,

Gelu
_
G.NET SOFTWARE COMPANY

Permanent e-mail address : [EMAIL PROTECTED]
  [EMAIL PROTECTED]
- Original Message -
From: "Andrew Sitnikov" <[EMAIL PROTECTED]>
To: "Christopher E. Brown" <[EMAIL PROTECTED]>
Cc: "Gelu Gogancea" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, January 09, 2003 7:19 PM
Subject: Re[2]: mysql 4.0.8- crash on TCP connection


> Hello Christopher,
>
> CEB> This sounds like what I just submitted a bug report for.  Connections
> CEB> to 4.0.8 (compiled locally or binary distro) cause a server crash if
> CEB> the IP of the client is not resolvable in DNS.
> Yes ! I really have crash only when client(user) not has DNS records !
> But with 4.0.7 this client(user) working properly.
>
> CEB> One can add an entry to the hosts file for certain IPs to stop this,
> CEB> however this still leaves the fact that ANY IP that can connect to
the
> CEB> server can crash it if there is no reverse entry.
>
>
> CEB>  --
> CEB> I route, therefore you are.
>
>
>
>
> Best regards,
>  Andrew Sitnikov
>  e-mail : [EMAIL PROTECTED]
>  GSM: (+372) 56491109
>
>


-
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