I'm using mysql-3.23.29-gamma on Solaris 2.6 sparc.  I have a
multithreaded mysql client that is linked to libmysqlclient_r.
On startup, it dumps core after mysql_init() is called.  More
specifically, the fault is during the getservbyname() call in
mysql_once_init(), which is part of libmysql.c.

The core dump only happens if /etc/nsswitch.conf specifies:

        services:   files nis

and /etc/inet/services does not contain:

        mysql   3306/tcp

It happens during the search of the NIS services map for the
mysql service.  I can't tell if it's due to a bug in the
/usr/lib/nss_nis.so.1 library or something wrong with the way
that the function is invoked.

If anyone else is running into this problem, the workaround is
either to fix /etc/nsswitch.conf or /etc/inet/services.  Has
anyone seen this problem?  I haven't seen the mysql service name
documented anywhere.  Should it be?


-- 
-Gary Mills-    -Unix Support-    -U of M Academic Computing and Networking-

---------------------------------------------------------------------
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

Reply via email to