Freeradius 2.0.3 crashing when in proxy mode Segmentation fault.

2008-04-10 Thread Vikash Badal
Greetings,

Can you please assist me with this issue.

I set up this server to be the authorative radius server for a realm and
no issues were encountered

Once I set up the server to proxy, the following issue occured. 



Thu Apr 10 06:49:01 2008 : Debug: Finished request 33.
Thu Apr 10 06:49:01 2008 : Debug: Cleaning up request 33 ID 170 with
timestamp +451
Thu Apr 10 06:49:01 2008 : Debug: Going to the next request
Thu Apr 10 06:49:01 2008 : Debug: Waking up in 4.6 seconds.
Thu Apr 10 06:49:06 2008 : Error: Rejecting request 31 due to lack of
any response from home server 196.26.56.8 port 1646
Thu Apr 10 06:49:06 2008 : Debug: Finished request 31.
Thu Apr 10 06:49:06 2008 : Debug: Cleaning up request 31 ID 169 with
timestamp +442

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x28401100 (LWP 100207)]
0x0806417d in cleanup_delay (ctx=0x287fe110) at event.c:477
477 DEBUG2(Cleaning up request %d ID %d with timestamp
+%d,

(gdb) bt
#0  0x0806417d in cleanup_delay (ctx=0x287fe110) at event.c:477
#1  0x080651ae in wait_a_bit (ctx=0x287fe110) at event.c:947
#2  0x08064dec in post_proxy_fail_handler (request=0x287fe110) at
event.c:794
#3  0x08064ea5 in no_response_to_proxied_request (ctx=0x287fe110)
at event.c:819
#4  0x280c8a9d in fr_event_run (el=0x287fb000, when=0xbfbfe828) at
event.c:214
#5  0x280c9078 in fr_event_loop (el=0x287fb000) at event.c:381
#6  0x080681bd in radius_event_process () at event.c:2675
#7  0x0805d376 in main (argc=2, argv=0xbfbfe928) at radiusd.c:394
(gdb) up
#1  0x080651ae in wait_a_bit (ctx=0x287fe110) at event.c:947
947 cleanup_delay(request);
(gdb) p/x *request
$1 = {packet = 0x0, proxy = 0x0, reply = 0x0, proxy_reply = 0x0,
  config_items = 0x0, username = 0x0, password = 0x0, root = 0x0, data =
0x0,
  client = 0x0, child_pid = 0x0, timestamp = 0x47fd9c34, number = 0x1f,
  listener = 0x28495ac0, proxy_listener = 0x28495af0, simul_max = 0x2,
  simul_count = 0x0, simul_mpp = 0x0, options = 0x0, module = 0x80734f5,
  component = 0x80734f5, received = {tv_sec = 0x47fd9c34, tv_usec =
0x45fa},
  when = {tv_sec = 0x47fd9c42, tv_usec = 0x6f03}, delay = 0x186a0,
  master_state = 0x1, child_state = 0x6, priority = 0x3, ev = 0x0,
  next_when = {tv_sec = 0x47fd9c42, tv_usec = 0x6f03}, next_callback =
0x0,
  in_request_hash = 0x0, in_proxy_hash = 0x0, home_server = 0x0,
  home_pool = 0x2848a240, proxy_when = {tv_sec = 0x47fd9c34,
tv_usec = 0x6f03}, num_proxied_requests = 0x1,
  num_proxied_responses = 0x0, server = 0x0, parent = 0x0}
(gdb)




Vikash
Please note: This email and its content are subject to the disclaimer as 
displayed at the following link 
http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. 
Should you not have Web access, send a mail to [EMAIL PROTECTED] and a copy 
will be emailed to you.

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


Please advise : Freeradius 2.0.3 on FreeBSD 7.0 Crashing ... Signal 11 ...

2008-04-02 Thread Vikash Badal
Greetings,

Can someone please assist me with Freeradius 2.0.3 crashes on FreeBSD
7.0 .

Below is the outputs from radiusd -X and backtraces from the core files

Crash 1 

Wed Apr  2 15:22:44 2008 : Debug: Going to the next request
Wed Apr  2 15:22:44 2008 : Debug: Waking up in 9.6 seconds.
Wed Apr  2 15:22:54 2008 : Error: Rejecting request 258 due to lack of
any response from home server xxx.xxx.xxx.xxx port 1646
Wed Apr  2 15:22:54 2008 : Debug: Finished request 258.
Wed Apr  2 15:22:54 2008 : Debug: Cleaning up request 258 ID 26 with
timestamp +2133
Segmentation fault (core dumped)

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for
details.
This GDB was configured as i386-marcel-freebsd...
Core was generated by `radiusd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from
/usr/local/lib/libfreeradius-radius-2.0.3.so...done.
Loaded symbols for /usr/local/lib/libfreeradius-radius-2.0.3.so
SNIP
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x0806416d in cleanup_delay (ctx=0x28571060) at event.c:477
477 DEBUG2(Cleaning up request %d ID %d with timestamp
+%d,
[New Thread 0x28401100 (LWP 100774)]
(gdb) bt
#0  0x0806416d in cleanup_delay (ctx=0x28571060) at event.c:477
#1  0x0806519c in wait_a_bit (ctx=0x28571060) at event.c:947
#2  0x08064ddc in post_proxy_fail_handler (request=0x28571060) at
event.c:794
#3  0x08064e95 in no_response_to_proxied_request (ctx=0x28571060)
at event.c:819
#4  0x280c8a9d in fr_event_run (el=0x2856e000, when=0xbfbfe838) at
event.c:214
#5  0x280c9078 in fr_event_loop (el=0x2856e000) at event.c:381
#6  0x0806814d in radius_event_process () at event.c:2660
#7  0x0805d366 in main (argc=2, argv=0xbfbfe93c) at radiusd.c:394
(gdb) frame 7
#7  0x0805d366 in main (argc=2, argv=0xbfbfe93c) at radiusd.c:394
394 while ((rcode = radius_event_process()) == 0x80) {
(gdb) q



Crash 2
--
Wed Apr  2 15:46:06 2008 : Debug: Going to the next request
Wed Apr  2 15:46:06 2008 : Debug: Waking up in 1.8 seconds.
Wed Apr  2 15:46:08 2008 : Error: Rejecting request 49 due to lack of
any response from home server xxx.xxx.xxx.xxx port 1646
Wed Apr  2 15:46:08 2008 : Debug: Finished request 49.
Wed Apr  2 15:46:08 2008 : Debug: Cleaning up request 49 ID 93 with
timestamp +673
Segmentation fault (core dumped)



GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for
details.
This GDB was configured as i386-marcel-freebsd...
Core was generated by `radiusd'.
Program terminated with signal 11, Segmentation fault.
SNIP
#0  0x0806416d in cleanup_delay (ctx=0x28571060) at event.c:477
477 DEBUG2(Cleaning up request %d ID %d with timestamp
+%d,
[New Thread 0x28401100 (LWP 100467)]
(gdb) bt
#0  0x0806416d in cleanup_delay (ctx=0x28571060) at event.c:477
#1  0x0806519c in wait_a_bit (ctx=0x28571060) at event.c:947
#2  0x08064ddc in post_proxy_fail_handler (request=0x28571060) at
event.c:794
#3  0x08064e95 in no_response_to_proxied_request (ctx=0x28571060)
at event.c:819
#4  0x280c8a9d in fr_event_run (el=0x2856e000, when=0xbfbfe838) at
event.c:214
#5  0x280c9078 in fr_event_loop (el=0x2856e000) at event.c:381
#6  0x0806814d in radius_event_process () at event.c:2660
#7  0x0805d366 in main (argc=2, argv=0xbfbfe93c) at radiusd.c:394
(gdb) frame 7
#7  0x0805d366 in main (argc=2, argv=0xbfbfe93c) at radiusd.c:394
394 while ((rcode = radius_event_process()) == 0x80) {


Please let me know if more information is required


Thanks
Vikash
Please note: This email and its content are subject to the disclaimer as 
displayed at the following link 
http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. 
Should you not have Web access, send a mail to [EMAIL PROTECTED] and a copy 
will be emailed to you.

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


RE: Please advise : Freeradius 2.0.3 on FreeBSD 7.0 Crashing ...Signal 11 ...

2008-04-02 Thread Vikash Badal
 -Original Message-
 From: 
 [EMAIL PROTECTED]
 s.org 
 [mailto:[EMAIL PROTECTED]
 reeradius.org] On Behalf Of Alan DeKok
 Sent: 02 April 2008 04:50 PM
 To: FreeRadius users mailing list
 Subject: Re: Please advise : Freeradius 2.0.3 on FreeBSD 7.0 
 Crashing ...Signal 11 ...
 
 Vikash Badal wrote:
  Greetings,
  
  Can someone please assist me with Freeradius 2.0.3 crashes 
 on FreeBSD 
  7.0 .
 
   It seems to be crashing in the same place, but it's not clear why.
 
   Did you have an earlier version of FreeRADIUS installed on 
 that machine?
 

I had radius 2.0.1 installed and then removed ( via the ports tree )

Please note: This email and its content are subject to the disclaimer as 
displayed at the following link 
http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. 
Should you not have Web access, send a mail to [EMAIL PROTECTED] and a copy 
will be emailed to you.

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


RE: Please advise : Freeradius 2.0.3 on FreeBSD 7.0 Crashing...Signal 11 ...

2008-04-02 Thread Vikash Badal
 -Original Message-
 From: 
 [EMAIL PROTECTED]
 s.org 
 [mailto:[EMAIL PROTECTED]
 reeradius.org] On Behalf Of [EMAIL PROTECTED]
 Sent: 02 April 2008 05:11 PM
 To: FreeRadius users mailing list
 Subject: Re: Please advise : Freeradius 2.0.3 on FreeBSD 7.0 
 Crashing...Signal 11 ...
 
 Hi,
 
  I had radius 2.0.1 installed and then removed ( via the ports tree )
 
 s'cuse my ignorance - been a while since i dipped into the 
 world of BSD ports - does the uninstall remove libraries that 
 have been installed and unlink them etc?

Old libraries are moved to /usr/local/lib/compat


I cleaned out /usr/local/lib/compat and the problem still exists.


Please note: This email and its content are subject to the disclaimer as 
displayed at the following link 
http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. 
Should you not have Web access, send a mail to [EMAIL PROTECTED] and a copy 
will be emailed to you.

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