Hello Paul, i just edited sql_mysql.c and added what you suggested. like
this:
mysql_sock = sqlsocket->conn;
radlog(L_DBG, "rlm_sql_mysql: *mysql_sock: %d, rlm_sql_mysql_sock: %d",
sizeof(*mysql_sock), sizeof(rlm_sql_mysql_sock));
memset(mysql_sock, 0, sizeof(*mysql_sock));
radlog(L_INFO, "rlm_sql_mysql: Starting connect to MySQL server for #%d",
sqlsocket->id);
And here's the core dump output:
(gdb) bt
#0 0x28398a57 in sql_init_socket (sqlsocket=0x809e640, config=0x80a2300)
at sql_mysql.c:75
#1 0x2834bdee in connect_single_socket (sqlsocket=0x809e640,
inst=0x809e580) at sql.c:70
#2 0x2834bf4f in sql_init_socketpool (inst=0x809e580) at sql.c:130
#3 0x2834a84a in rlm_sql_instantiate (conf=0x809f7c0, instance=0x8170508)
at rlm_sql.c:699
#4 0x80542d7 in find_module_instance (instname=0x80a06b0 "sql") at
modules.c:358
#5 0x80554fe in do_compile_modsingle (component=1, ci=0x80a3740,
filename=0x805dd67 "radiusd.conf", grouptype=0,
modname=0xbfbfeacc) at modcall.c:814
#6 0x805556b in compile_modsingle (component=1, ci=0x80a3740,
filename=0x805dd67 "radiusd.conf", modname=0xbfbfeacc)
at modcall.c:829
#7 0x8054738 in load_component_section (cs=0x80a36c0, comp=1,
filename=0x805dd67 "radiusd.conf") at modules.c:584
#8 0x8054bbd in setup_modules () at modules.c:874
#9 0x804c95c in main (argc=2, argv=0xbfbffc48) at radiusd.c:961
thanks very much ...
> 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
> #1 0x2834bdee in connect_single_socket (sqlsocket=0x809e640,
> inst=0x809e580)
> at sql.c:70
> #2 0x2834bf4f in sql_init_socketpool (inst=0x809e580) at sql.c:130
> #3 0x2834a84a in rlm_sql_instantiate (conf=0x809f7c0, instance=0x8170508)
> at rlm_sql.c:699
> #4 0x80542d7 in find_module_instance (instname=0x80a06b0 "sql")
> at modules.c:358
> #5 0x80554fe in do_compile_modsingle (component=1, ci=0x80a3740,
> filename=0x805dd67 "radiusd.conf", grouptype=0, modname=0xbfbfeabc)
> at modcall.c:814
> #6 0x805556b in compile_modsingle (component=1, ci=0x80a3740,
> filename=0x805dd67 "radiusd.conf", modname=0xbfbfeabc) at
> modcall.c:829
> #7 0x8054738 in load_component_section (cs=0x80a36c0, comp=1,
> filename=0x805dd67 "radiusd.conf") at modules.c:584
> #8 0x8054bbd in setup_modules () at modules.c:874
> #9 0x804c95c in main (argc=2, argv=0xbfbffc30) at radiusd.c:961
> (gdb)
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
>
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html