Building on CentOS 7; rlm_sql_mysql segmentation fault
Hi! After testing CoA on the latest HEAD, I wanted to test and use 3.0.8. CentOS 7 repo has 3.0.4 binaries. I used maraidb libs and includes to build mysql driver. I get a segmentation fault when loading. This happened with the latest HEAD. I am yet to build 3.0.8 . debug(bold text present in debug): rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked Creating attribute SQL-Group # Loaded module rlm_sqlcounter # Loading module "dailycounter" from file /usr/local/etc/raddb/mods-enabled/sqlcounter sqlcounter dailycounter { sql_module_instance = "sql" key = "User-Name" query = "SELECT SUM(acctsessiontime - GREATEST((%%b - UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username = '%{User-Name}' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '%%b'" reset = "daily" counter_name = "Daily-Session-Time" check_name = "Max-Daily-Session" reply_name = "Session-Timeout" } Segmentation fault (core dumped) FR
On 30 May 2015, at 16:42, firing neurons <firingneurons@mail.com> wrote:
Hi!
After testing CoA on the latest HEAD, I wanted to test and use 3.0.8. CentOS 7 repo has 3.0.4 binaries.
I used maraidb libs and includes to build mysql driver. I get a segmentation fault when loading.
This happened with the latest HEAD. I am yet to build 3.0.8 .
debug(bold text present in debug):
rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked Creating attribute SQL-Group # Loaded module rlm_sqlcounter # Loading module "dailycounter" from file /usr/local/etc/raddb/mods-enabled/sqlcounter sqlcounter dailycounter { sql_module_instance = "sql" key = "User-Name" query = "SELECT SUM(acctsessiontime - GREATEST((%%b - UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username = '%{User-Name}' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '%%b'" reset = "daily" counter_name = "Daily-Session-Time" check_name = "Max-Daily-Session" reply_name = "Session-Timeout" } Segmentation fault (core dumped)
Backtrace? -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
participants (2)
-
Arran Cudbard-Bell -
firing neurons