More coredumps, FreeBSD 5.4 / FR 1.1.1
Hi, I did a simple upgrade from 1.1.0 to 1.1.1. All old modules was removed, new compile / install went without problems. I also updated my database from mysql 4 to 5.0 - also working without problems. Running with -X, I'm getting VERY little info here... sql: postauth_table = "radpostauth" sql: postauth_query = "INSERT into radpostauth (id, user, pass, reply, date) values ('', '%{User-Name}', '%{User-Password:-Chap-Password}', '%{reply:Packet-Type}', NOW())" sql: safe-characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /" Bus error root@netsphere:/usr/local/etc/raddb# radiusd -v radiusd: FreeRADIUS Version 1.1.1, for host , built on May 17 2006 at 15:33:24 Copyright (C) 2000-2006 The FreeRADIUS server project. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You may redistribute copies of FreeRADIUS under the terms of the GNU General Public License. For more information about these matters, see the file named COPYRIGHT. root@netsphere:/usr/local/etc/raddb# The -X run reports nothing abnormal, except for the bus error. Under gdb: sql: postauth_table = "radpostauth" sql: postauth_query = "INSERT into radpostauth (id, user, pass, reply, date) values ('', '%{User-Name}', '%{User-Password:-Chap-Password}', '%{reply:Packet-Type}', NOW())" sql: safe-characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /" rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked rlm_sql (sql): Attempting to connect to radius@mysqldb01.blah.com:/RADIUS rlm_sql (sql): starting 0 rlm_sql (sql): Attempting to connect rlm_sql_mysql #0 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1 (LWP 100079)] 0x282f2677 in memset () from /lib/libc.so.5 (gdb) back #0 0x282f2677 in memset () from /lib/libc.so.5 #1 0x09afc4c0 in ?? () #2 0x286e5cb5 in sql_init_socket (sqlsocket=0x70657270, config=0x9d02600) at sql_mysql.c:71 #3 0x2858afcc in connect_single_socket (sqlsocket=0x9afc4c0, inst=0x9afc700) at sql.c:70 #4 0x2858b134 in sql_init_socketpool (inst=0x9afc700) at sql.c:131 #5 0x28589507 in rlm_sql_instantiate (conf=0x9d03bf8, instance=0x0) at rlm_sql.c:713 #6 0x08052b11 in find_module_instance () #7 0x08053f9e in modcallable_free () #8 0x0805317b in setup_modules () #9 0x08055996 in main () 1.1.0 runs fine, with exactly the same configuration... :-( Regards, Chris.
"Chris Knipe" <savage@savage.za.org> wrote:
Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1 (LWP 100079)] 0x282f2677 in memset () from /lib/libc.so.5 (gdb) back #0 0x282f2677 in memset () from /lib/libc.so.5 #1 0x09afc4c0 in ?? () #2 0x286e5cb5 in sql_init_socket (sqlsocket=3D0x70657270, = config=3D0x9d02600)=20 at sql_mysql.c:71
I've seen that before on FreeBSD. I have no idea why it's happening. Maybe try the "branch_1_1" code from CVS? Alan DEKok.
"Chris Knipe" <savage@savage.za.org> wrote:
Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1 (LWP 100079)] 0x282f2677 in memset () from /lib/libc.so.5 (gdb) back #0 0x282f2677 in memset () from /lib/libc.so.5 #1 0x09afc4c0 in ?? () #2 0x286e5cb5 in sql_init_socket (sqlsocket=3D0x70657270, = config=3D0x9d02600)=20 at sql_mysql.c:71
I've seen that before on FreeBSD. I have no idea why it's happening. Maybe try the "branch_1_1" code from CVS?
Hi Alan, Don't know if this would help you track it down... I recompiled --without-threads, it seems to have solved the *original* problem. Are threads deemed to be stable yet in 1.1.1? If so, can it be rechecked? What I'm picking up: MySQL 5.0.21, Muli Threaded Perl 5.8.8, Multi Threaded FR 1.1.1, Debug I don't know the order in which these modules load, so you'll sort that out better than me... But... FR with Theads, cores loading rlm_sql_mysql FR without Theads, loads rlm_sql_mysql, BUT, now cores loading rlm_perl I kind of find it strange that it's only with threaded applications that this is happening... I know that FreeBSD *had* issues in the past with threads, but that is long since gone MySQL Multi-Threaded is quite normal on FreeBSD, and Threaded Perl is also pretty stable these days (according to the mailing lists). Could it be that FR maybe has issues with it? Right now, without rlm_perl and FreeRadius in a single-threaded compile, I have no issues... When I change FR to multi-threaded rlm_sql_mysql crash, when FR is single threaded, rlm_perl (because I have a threaded perl compile) cores... The trace for the rlm_perl crash: read_config_files: reading dictionary read_config_files: reading naslist read_config_files: reading clients read_config_files: reading realms radiusd: entering modules setup Module: Library search path is /usr/local/lib Program received signal SIGSEGV, Segmentation fault. 0x281c3e2d in perl_init () at rlm_perl.c:602 602 PL_perl_destruct_level = 2; (gdb) bt #0 0x281c3e2d in perl_init () at rlm_perl.c:602 #1 0x08052062 in find_module_instance () #2 0x08052414 in setup_modules () #3 0x08054d36 in main () -- Chris.
participants (2)
-
Alan DeKok -
Chris Knipe