I'm trying to figure out what goes into the acct_users. I had thought it was user entries like those in the users file, but that doesn't seem to really be the case. It appears to be getting parsed the same way (based on 'My-Key' entries that get rejected). However, at run-time, that doesn't appear to be the case. In fact, I get a seg-fault.


rad_recv: Accounting-Request packet from host xxx.xxx.xxx.xxx:36538, id=167, length=27
User-Name = "test1"
modcall: entering group preacct for request 0
modcall[preacct]: module "preprocess" returns noop for request 0
rlm_realm: No '@' in User-Name = "test1", looking up realm NULL
rlm_realm: No such realm "NULL"
modcall[preacct]: module "suffix" returns noop for request 0
modcall[preacct]: module "files" returns noop for request 0
modcall: group preacct returns noop for request 0
modcall: entering group accounting for request 0
rlm_acct_unique: WARNING: Attribute NAS-Port-Id was not found in request, unique ID MAY be inconsistent
rlm_acct_unique: WARNING: Attribute Acct-Session-Id was not found in request, unique ID MAY be inconsistent
rlm_acct_unique: Hashing ',Client-IP-Address = xxx.xxx.xxx.xxx,NAS-IP-Address = xxx.xxx.xxx.xxx,,User-Name = "test1"'
rlm_acct_unique: Acct-Unique-Session-ID = "4a16e50737b1c920".
modcall[accounting]: module "acct_unique" returns ok for request 0
radius_xlat: '/usr/local/var/log/radius/radacct/xxx.xxx.xxx.xxx/detail-20031121'
rlm_detail: /usr/local/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d expands to /usr/local/var/log/radius/radacct/xxx.xxx.xxx.xxx/detail-20031121
Segmentation Fault(coredump)
#



(gdb) bt
#0 0xff0c69a8 in memccpy () from /usr/lib/libc.so.1
#1 0xff10d6bc in fputs () from /usr/lib/libc.so.1
#2 0xfe6a0c0c in do_detail (instance=0x401c020, request=0x142080, pair=0x142160) at rlm_detail.c:225
#3 0x1d830 in call_modsingle (component=3, sp=0x140800, request=0x142080, default_result=7) at modcall.c:201
#4 0x1d988 in modcall (component=3, c=0x140800, request=0x142080) at modcall.c:312
#5 0x1d8d8 in call_modgroup (component=3, g=0x140800, request=0x142080, default_result=2) at modcall.c:226
#6 0x1da14 in modcall (component=3, c=0x1407c0, request=0x142080) at modcall.c:303
#7 0x17884 in rad_accounting (request=0x142080) at acct.c:69
#8 0x15118 in rad_respond (request=0x142080, fun=0x177c8 <rad_accounting>) at radiusd.c:1537
#9 0x14b84 in rad_process (request=0x142080, dospawn=0) at radiusd.c:1244
#10 0x145b4 in main (argc=1, argv=0xffffef3c) at radiusd.c:1020


Hmm. That line seems to be "fputs(ctime_r(&request->timestamp, buffer), outfp);"

I can't set a breakpoint there, though. I'm not sure if it's in a shared library or because it's getting built with -g -O2.

-Greg G






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

Reply via email to