Re: cronjobs crash with libmysqlclient in PAM-modules

2001-02-14 Thread Michael Widenius


Hi!

> "Jan" == Jan Lukoschus <[EMAIL PROTECTED]> writes:

Jan> On Mon, 6 Nov 2000, Michael Widenius wrote:
>> 
>> Hi!
>> 
>> > "Jan" == Jan Lukoschus <[EMAIL PROTECTED]> writes:
>> 
>> >> Description:
Jan> Operating system: SUN Solaris 7 or 8
Jan> MySQL: 3.22.32 or 3.23.27-beta
>> 
Jan> When cron starts a job and tries to authenticate the associated user
Jan> with a PAM-module which uses libmysqlclient, then the process crashes
Jan> when calling the function mysql_init. All other uses of the PAM-module
Jan> work just fine (login, ssh, dtlogin, xdm, telnet, etc.), Only cron keeps
Jan> constantly crashing (not the demon itself, just the jobs teminate).
>> 
>> >> How-To-Repeat:
>> 
Jan> Just install a PAM-module for authenticating users against a MySQL-DB on
Jan> Solaris 7 or 8 and set up a trivial cron job. We tested MySQL versions
Jan> 3.22.32 and 3.23.27-beta. Both shows the error. We use our own PAM-module,
Jan> but pam-mysql should have the same problem.
>> 
>> >> Fix:
>> 
Jan> The following statements apply to MySQL 3.23.27-beta:
>> 
Jan> The offending statement is in mysql-3.23.27-beta/libmysql/errmsg.c line 81:
>> 
Jan> errmsg[CLIENT_ERRMAP] = &client_errors[0];
>> 
>> 
>> 
>> Thanks;  We will rename errmsg to my_errmsg in 3.23.28

Jan> Is there a specific reason, why that change did not found its way into
Jan> the stable release 3.23-32 (I have not checked the beta versions)?

The only reason was that I forgot about this :(

I have now patched the code for this, so this will appear in the next
MySQL release. (3.23.34, as this is a safe fix)

Regards,
Monty

-
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: cronjobs crash with libmysqlclient in PAM-modules

2001-02-12 Thread Jan Lukoschus

On Mon, 6 Nov 2000, Michael Widenius wrote:

>
> Hi!
>
> > "Jan" == Jan Lukoschus <[EMAIL PROTECTED]> writes:
>
> >> Description:
> Jan> Operating system: SUN Solaris 7 or 8
> Jan> MySQL: 3.22.32 or 3.23.27-beta
>
> Jan> When cron starts a job and tries to authenticate the associated user
> Jan> with a PAM-module which uses libmysqlclient, then the process crashes
> Jan> when calling the function mysql_init. All other uses of the PAM-module
> Jan> work just fine (login, ssh, dtlogin, xdm, telnet, etc.), Only cron keeps
> Jan> constantly crashing (not the demon itself, just the jobs teminate).
>
> >> How-To-Repeat:
>
> Jan> Just install a PAM-module for authenticating users against a MySQL-DB on
> Jan> Solaris 7 or 8 and set up a trivial cron job. We tested MySQL versions
> Jan> 3.22.32 and 3.23.27-beta. Both shows the error. We use our own PAM-module,
> Jan> but pam-mysql should have the same problem.
>
> >> Fix:
>
> Jan> The following statements apply to MySQL 3.23.27-beta:
>
> Jan> The offending statement is in mysql-3.23.27-beta/libmysql/errmsg.c line 81:
>
> Jan>errmsg[CLIENT_ERRMAP] = &client_errors[0];
>
> 
>
> Thanks;  We will rename errmsg to my_errmsg in 3.23.28

Is there a specific reason, why that change did not found its way into
the stable release 3.23-32 (I have not checked the beta versions)?


Jan.

-- 
Jan Lukoschus <[EMAIL PROTECTED]>
I. f. Informatik u. Praktische Mathematik
Olshausenstr. 40, 24118 Kiel, Germany


-
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