radiusclient fails in sendserver.c

Norman Brandinger norm at goes.com
Wed Sep 26 16:21:23 CEST 2007


I'm investigating the possibility of making the integration of
radiusclient with openser a bit smoother.

On the first call to radiusclient, a core at sendserver.c:215 is generated.

A comparison if lib/sendserver.c from the radiusclient-ng distribution
shows the strncpy() that is failing, is new to radiusclient.

Regards,
Norm

p.s. a very minor item is that src/radembedded.c needs stdlib included
to avoid warning messages associated with the use of exit().


(gdb) bt
#0  0xb7e4e9f0 in strncpy () from /lib/libc.so.6
#1  0xb79b2b9d in rc_send_server (rh=0x8390978, data=0xbfff5ea8,
msg=0xbfff4ea8 "") at sendserver.c:215
#2  0xb79b1e3b in rc_acct (rh=0x8390978, client_port=5060,
send=0x83e7fc8) at buildreq.c:271
#3  0xb79c6741 in acc_rad_request (req=0xa7857ae8) at acc.c:547
#4  0xb79ca66b in tmcb_func (t=0xa7852ec8, type=128, ps=0xb7b05454) at
acc_logic.c:316
#5  0xb7ae2fcc in run_trans_callbacks (type=128, trans=0xa7852ec8,
req=0xa7857ae8, rpl=0xffffffff, code=487) at t_hooks.c:205
#6  0xb7af8d74 in relay_reply (t=0xa7852ec8, p_msg=0xffffffff, branch=0,
msg_status=487, cancel_bitmap=0xbfff6150) at t_reply.c:1154
#7  0xb7ae04b9 in e2e_cancel (cancel_msg=0x8287fd8, t_cancel=0xa7854790,
t_invite=0xa7852ec8) at t_fwd.c:571
#8  0xb7ae2cc3 in t_forward_nonack (t=0xa7854790, p_msg=0x8287fd8,
proxy=0x0) at t_fwd.c:671
#9  0xb7addb7d in t_relay_to (p_msg=0x8287fd8, proxy=0x0, flags=<value
optimized out>) at t_funcs.c:253
#10 0xb7aed52a in w_t_relay (p_msg=0x8287fd8, proxy=0x0, flags=0x0) at
tm.c:913
#11 0x08054188 in do_action (a=0x8259668, msg=0x8287fd8) at action.c:815
#12 0x08052afc in run_action_list (a=0x8259668, msg=0x8287fd8) at
action.c:132
#13 0x080a019c in eval_expr (e=0x82596c0, msg=0x8287fd8, val=0x0) at
route.c:1069
#14 0x0809fde6 in eval_expr (e=0x82596e8, msg=0x8287fd8, val=0x0) at
route.c:1376
#15 0x0809fe0e in eval_expr (e=0x8259710, msg=0x8287fd8, val=0x0) at
route.c:1381
#16 0x08053e5d in do_action (a=0x8259818, msg=0x8287fd8) at action.c:671
#17 0x08052afc in run_action_list (a=0x8259588, msg=0x8287fd8) at
action.c:132
#18 0x080555b4 in do_action (a=0x8259a60, msg=0x8287fd8) at action.c:688
#19 0x08052afc in run_action_list (a=0x8258e68, msg=0x8287fd8) at
action.c:132
#20 0x08054d12 in do_action (a=0x818f518, msg=0x8287fd8) at action.c:112
#21 0x08052afc in run_action_list (a=0x818f518, msg=0x8287fd8) at
action.c:132
#22 0x080555b4 in do_action (a=0x818f570, msg=0x8287fd8) at action.c:688
#23 0x08052afc in run_action_list (a=0x818b180, msg=0x8287fd8) at
action.c:132
#24 0x0805651b in run_top_route (a=0x818b180, msg=0x8287fd8) at action.c:112
#25 0x0809073c in receive_msg (...



More information about the Freeradius-Devel mailing list