Hello, i 've been encountering core dumps with freeradius-1.1.3 in the mysql module.

Information:

OS: SunOS radius 5.8 Generic_108528-29 sun4u sparc SUNW,UltraAX-i2
After code dump: Radius process still exists but won't handle requests
GDB:
#0 0xfdfc89e4 in mysql_errno () from /opt/csw/mysql4/lib/mysql/libmysqlclient_r.so.14 #1 0xfe150e38 in sql_query () from /usr/local/freeradius-1.1.3/lib/rlm_sql_mysql-1.1.3.so #2 0xfe176fc0 in rlm_sql_query () from /usr/local/freeradius-1.1.3/lib/rlm_sql-1.1.3.so #3 0xfe174fe8 in rlm_sql_accounting () from /usr/local/freeradius-1.1.3/lib/rlm_sql-1.1.3.so
#4  0x22568 in module_post_auth ()
#5  0x23088 in modcall ()
#6  0x2262c in module_post_auth ()
#7  0x227ec in module_post_auth ()
#8  0x22fbc in modcall ()
#9  0x210c8 in find_module_instance ()
#10 0x21fd0 in module_accounting ()
#11 0x139d8 in rad_accounting ()
#12 0x2c008 in session_zap ()
#13 0xfe175ed0 in rlm_sql_checksimul () from /usr/local/freeradius-1.1.3/lib/rlm_sql-1.1.3.so
#14 0x22568 in module_post_auth ()
#15 0x23088 in modcall ()
#16 0x2262c in module_post_auth ()
#17 0x227ec in module_post_auth ()
#18 0x22fbc in modcall ()
#19 0x210c8 in find_module_instance ()
#20 0x22078 in module_checksimul ()
#21 0x155f8 in rad_authenticate ()
#22 0x284f4 in rad_respond ()
#23 0x2cf88 in rad_check_ts ()

As can be seen, i m using the thread safe mysql libraries.
  PKGINST:  CSWmysql4rt
     NAME:  mysql4rt - run-time libraries for mysql4
 CATEGORY:  system
     ARCH:  sparc
  VERSION:  4.1.21,REV=2006.07.29


Lines in source file:

/src/freeradius-1.1.3/src/modules/rlm_sql/drivers/rlm_sql_mysql/sql_mysql.c

static int sql_query(SQLSOCK * sqlsocket, SQL_CONFIG *config, char *querystr)
{
     [..........]

       mysql_query(mysql_sock->sock, querystr);
       return sql_check_error(mysql_errno(mysql_sock->sock));
}


Log file:

Tue Oct 17 11:11:51 2006 : Error: Discarding duplicate request from client adsl.ira:1645 - ID: 141 due to unfinished request 482895 Tue Oct 17 11:11:51 2006 : Auth: Login OK: [r-165dim-athin] (from client cas1.att port 20211 cli XXXXXXXX) Tue Oct 17 11:11:52 2006 : Error: Discarding duplicate request from client adsl.ira:1645 - ID: 144 due to unfinished request 482980 Tue Oct 17 11:11:52 2006 : Info: rlm_sql (radacct): There are no DB handles to use! skipped 0, tried to connect 0 Tue Oct 17 11:11:52 2006 : Info: rlm_sql (radacct): There are no DB handles to use! skipped 0, tried to connect 0 Tue Oct 17 11:11:52 2006 : Info: rlm_sql (radacct): There are no DB handles to use! skipped 0, tried to connect 0 Tue Oct 17 11:11:52 2006 : Auth: Login incorrect: [sch.gr] (from client adsl.ach port 581 cli atm 2) Tue Oct 17 11:11:52 2006 : Auth: Login OK: [r-gym-amaliad] (from client cas.ilei port 20026 cli XXXXXXX) Tue Oct 17 11:11:52 2006 : Auth: Login OK: [r-gym-saval] (from client cas.ilei port 20111 cli XXXXXXX) Tue Oct 17 11:11:52 2006 : Auth: Login OK: [digital] (from client cas1.att port 20629 cli XXXXXX) Tue Oct 17 11:11:52 2006 : Info: rlm_sql (radacct): There are no DB handles to use! skipped 0, tried to connect 0 Tue Oct 17 11:11:53 2006 : Auth: Login OK: [EMAIL PROTECTED] (from client adsl.ach port 382 cli atm 2) Tue Oct 17 11:11:53 2006 : Info: rlm_sql (radacct): There are no DB handles to use! skipped 0, tried to connect 0 Tue Oct 17 11:11:53 2006 : Auth: Login OK: [distrat] (from client cas.ait port 20006 cli XXXXXX) Tue Oct 17 11:11:53 2006 : Error: Discarding duplicate request from client adsl.att:1645 - ID: 182 due to unfinished request 482899 Tue Oct 17 11:11:53 2006 : Auth: Login OK: [digital] (from client cas1.att port 20725 cli XXXXXX) Tue Oct 17 11:11:53 2006 : Error: Discarding duplicate request from client adsl.ira:1645 - ID: 142 due to unfinished request 482907 Tue Oct 17 11:11:53 2006 : Info: rlm_sql (radacct): There are no DB handles to use! skipped 0, tried to connect 0 Tue Oct 17 11:11:53 2006 : Info: rlm_sql (radacct): There are no DB handles to use! skipped 0, tried to connect 0 Tue Oct 17 11:11:53 2006 : Info: rlm_sql (radacct): There are no DB handles to use! skipped 0, tried to connect 0 Tue Oct 17 11:11:53 2006 : Info: rlm_sql (radacct): There are no DB handles to use! skipped 0, tried to connect 0 Tue Oct 17 11:11:53 2006 : Info: rlm_sql (radacct): There are no DB handles to use! skipped 0, tried to connect 0 Tue Oct 17 11:11:53 2006 : Info: rlm_sql (radacct): There are no DB handles to use! skipped 0, tried to connect 0 Tue Oct 17 11:11:53 2006 : Info: rlm_sql (radacct): There are no DB handles to use! skipped 0, tried to connect 0 Tue Oct 17 11:11:53 2006 : Auth: Login OK: [EMAIL PROTECTED] (from client adsl.ira port 1039 cli atm 10) Tue Oct 17 11:11:53 2006 : Info: rlm_sql (radacct): There are no DB handles to use! skipped 0, tried to connect 0 Tue Oct 17 11:11:53 2006 : Info: rlm_sql (radacct): There are no DB handles to use! skipped 0, tried to connect 0 Tue Oct 17 11:11:53 2006 : Info: rlm_sql (radacct): There are no DB handles to use! skipped 0, tried to connect 0 Tue Oct 17 11:11:53 2006 : Info: rlm_sql (radacct): There are no DB handles to use! skipped 0, tried to connect 0 Tue Oct 17 11:11:53 2006 : Info: rlm_sql (radacct): There are no DB handles to use! skipped 0, tried to connect 0 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to