memory corruption when proxying accounting requests

Jørn Kostøl jkg at iband.no
Tue Jan 29 22:10:14 CET 2008


Hi, 

 

I’m having problems proxying accounting requests on FreeRadius 2. 

 

Local auth and acct works fine, and proxying auth works. But as soon as I
try to proxy accounting then Freeradius crashes. 

I have tried proxying to an old stable freeradius server, through a home
server, direct to a virtual server, home server pools, and I have tried to
add and remove all the modules and options I can to try to find if there is
a particular part that makes it crash but no luck. 

 

The accounting requests gets sent, and FreeRadius crashes after. 

 

I’ve tried to install both version FreeRadius 2.0.0 and 2.0.1 on two
different servers both running different Ubuntu versions. 

 

Anyone have an idea what I can try next?

 

Here is output from one of the installations: 

 

*** glibc detected *** ../../sbin/radiusd: malloc(): memory corruption:
0x081b7460 ***

======= Backtrace: =========

/lib/tls/i686/cmov/libc.so.6[0xb7c7c1cd]

/lib/tls/i686/cmov/libc.so.6(malloc+0x7f)[0xb7c7d83f]

/usr/local/freeradius2/lib/libfreeradius-radius-2.0.1.so(paircopy2+0x69)[0xb
7f503d9]

/usr/local/freeradius2/lib/libfreeradius-radius-2.0.1.so(paircopy+0x25)[0xb7
f50475]

../../sbin/radiusd[0x806150d]

../../sbin/radiusd(radius_handle_request+0x5b)[0x806160b]

../../sbin/radiusd(thread_pool_addrequest+0x36)[0x805bd56]

../../sbin/radiusd[0x8060c32]

/usr/local/freeradius2/lib/libfreeradius-radius-2.0.1.so(fr_event_loop+0x236
)[0xb7f53db6]

../../sbin/radiusd(radius_event_process+0x30)[0x80624e0]

../../sbin/radiusd(main+0x572)[0x805ad52]

/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0xb7c2a8cc]

../../sbin/radiusd[0x804d1f1]

======= Memory map: ========

08048000-08076000 r-xp 00000000 08:07 326643
/usr/local/freeradius2/sbin/radiusd

08076000-08078000 rw-p 0002d000 08:07 326643
/usr/local/freeradius2/sbin/radiusd

08078000-081d3000 rw-p 08078000 00:00 0          [heap]

b7800000-b7821000 rw-p b7800000 00:00 0

b7821000-b7900000 ---p b7821000 00:00 0

b79ab000-b79b5000 r-xp 00000000 08:01 144592     /lib/libgcc_s.so.1

b79b5000-b79b6000 rw-p 00009000 08:01 144592     /lib/libgcc_s.so.1

b79bb000-b79bd000 r-xp 00000000 08:07 326401
/usr/local/freeradius2/lib/rlm_attr_filter-2.0.1.so

b79bd000-b79be000 rw-p 00001000 08:07 326401
/usr/local/freeradius2/lib/rlm_attr_filter-2.0.1.so

b79be000-b79e2000 r-xp 00000000 08:01 144858
/lib/tls/i686/cmov/libm-2.4.so

b79e2000-b79e4000 rw-p 00023000 08:01 144858
/lib/tls/i686/cmov/libm-2.4.so

b79e4000-b7b73000 r-xp 00000000 08:07 505387
/usr/lib/libmysqlclient_r.so.15.0.0

b7b73000-b7bb7000 rw-p 0018e000 08:07 505387
/usr/lib/libmysqlclient_r.so.15.0.0

b7bb7000-b7bb8000 rw-p b7bb7000 00:00 0

b7bba000-b7bbc000 r-xp 00000000 08:07 326391
/usr/local/freeradius2/lib/rlm_acct_unique-2.0.1.so

b7bbc000-b7bbd000 rw-p 00001000 08:07 326391
/usr/local/freeradius2/lib/rlm_acct_unique-2.0.1.so

b7bbd000-b7bbf000 r-xp 00000000 08:07 326608
/usr/local/freeradius2/lib/rlm_sql_mysql-2.0.1.so

b7bbf000-b7bc0000 rw-p 00001000 08:07 326608
/usr/local/freeradius2/lib/rlm_sql_mysql-2.0.1.so

b7bc0000-b7bc8000 r-xp 00000000 08:07 326613
/usr/local/freeradius2/lib/rlm_sql-2.0.1.so

b7bc8000-b7bc9000 rw-p 00007000 08:07 326613
/usr/local/freeradius2/lib/rlm_sql-2.0.1.so

b7bc9000-b7bcb000 r-xp 00000000 08:07 326598
/usr/local/freeradius2/lib/rlm_realm-2.0.1.so

b7bcb000-b7bcc000 rw-p 00001000 08:07 326598
/usr/local/freeradius2/lib/rlm_realm-2.0.1.so

b7bcc000-b7bce000 r-xp 00000000 08:07 326583
/usr/local/freeradius2/lib/rlm_preprocess-2.0.1.so

b7bce000-b7bcf000 rw-p 00002000 08:07 326583
/usr/local/freeradius2/lib/rlm_preprocess-2.0.1.so

b7bcf000-b7bd1000 r-xp 00000000 08:07 326411
/usr/local/freeradius2/lib/rlm_chap-2.0.1.so

b7bd1000-b7bd2000 rw-p 00001000 08:07 326411
/usr/local/freeradius2/lib/rlm_chap-2.0.1.so

b7bd2000-b7bd5000 r-xp 00000000 08:07 326567
/usr/local/freeradius2/lib/rlm_pap-2.0.1.so

b7bd5000-b7bd6000 rw-p 00003000 08:07 326567
/usr/local/freeradius2/lib/rlm_pap-2.0.1.so

b7bd6000-b7bd9000 r-xp 00000000 08:07 326551
/usr/local/freeradius2/lib/rlm_logintime-2.0.1.so

b7bd9000-b7bda000 rw-p 00002000 08:07 326551
/usr/local/freeradius2/lib/rlm_logintime-2.0.1.so

b7bda000-b7bdc000 r-xp 00000000 08:07 326514
/usr/local/freeradius2/lib/rlm_expiration-2.0.1.so

b7bdc000-b7bdd000 rw-p 00001000 08:07 326514
/usr/local/freeradius2/lib/rlm_expiration-2.0.1.so

b7bdd000-b7be0000 r-xp 00000000 08:07 326519
/usr/local/freeradius2/lib/rlm_expr-2.0.1.so

b7be0000-b7be1000 rw-p 00002000 08:07 326519
/usr/local/freeradius2/lib/rlm_expr-2.0.1.so

b7be1000-b7beaAborted

 

 

 

Cheers, 

Jørn

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20080129/6c769798/attachment.html>


More information about the Freeradius-Users mailing list