On Wed, May 19, 2004 at 09:56:17PM +0800, [EMAIL PROTECTED] wrote:
> Im using:

> Freebsd 4.9
> mysql  Ver 12.22 Distrib 4.0.20, for portbld-freebsd4.9 (i386)
> GNU Make 3.80
> Freeradius May 19, 2004 CVS snapshot

> (gdb) bt
> #0  0x28398a35 in sql_init_socket (sqlsocket=0x809e640, config=0x80a2300)
>     at sql_mysql.c:71

That's deranged...
71: memset(mysql_sock, 0, sizeof(*mysql_sock));

And directly above that, we ensure that mysql_sock is allocated...

Please try putting a radlog() right before that line outputting
sizeof(*mysql_sock) and sizeof(rlm_sql_mysql_sock). They should
be the same.

Something like:
radlog(L_DBG, "rlm_sql_mysql: *mysql_sock: %d, rlm_sql_mysql_sock: %d",
        sizeof(*mysql_sock), sizeof(rlm_sql_mysql_sock));

-- 
Paul "TBBle" Hampson, on an alternate email client.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to