Skip to Content.
Sympa Menu

freetds - freetds and freeradius

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Andrew G. Buenaventura" <andrew AT teamyehey.com>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: freetds and freeradius
  • Date: Wed, 25 Sep 2002 11:16:07 +0800


I installed freetds-0.6.0 in my redhat 7.x and freebsd 4.x boxes. After
that, I installed freeradius-0.7 (and later freeradius-0.5) hoping that
I could make it authenticate with my MSSQL 2K. I get the following
errors when I run radiusd -xx

rlm_sql: Driver rlm_sql_freetds loaded and linked
rlm_sql: Attempting to connect to raddb AT drew.teamyehey.local:/radius
Segmentation fault (core dumped)

When I posted this issue to the mailing list of freeradius, they told me
that the problem is with freetds. Allow me to quote the reply from one
of the developers who's kind enough to help me:

"Yes, but the problem appears to be in the tds libraries on your
system. The tds_alloc_config() function is passing a bad pointer to
strdup(), so it crashes."


Output of gdb are as follows:

(gdb) bt
#0 0x4012bb5d in __strdup (s=0x655f7375 <Error reading address
0x655f7375: No such process>)
at ../sysdeps/i386/i486/bits/string.h:530
#1 0x401f11a6 in tds_alloc_config (locale=0x80b8a30) at mem.c:311
#2 0x401fca97 in tds_get_config (tds=0x0, login=0x80b90d0,
locale=0x80b8a30) at config.c:98
#3 0x401f4d01 in tds_connect (login=0x80b90d0, context=0x80b9020,
parent=0x80b89d0) at login.c:139
#4 0x40029da5 in sql_init_socket () at eval.c:41
#5 0x401e9210 in connect_single_socket (sqlsocket=0x80b9000,
inst=0x80b7620) at sql.c:64
#6 0x401e933f in sql_init_socketpool (inst=0x80b7620) at sql.c:118
#7 0x401e8115 in rlm_sql_instantiate (conf=0x8069798,
instance=0x80b7420) at rlm_sql.c:377
#8 0x08054dca in find_module_instance () at eval.c:41
#9 0x08055b46 in modcall () at eval.c:41
#10 0x08055bac in compile_modsingle () at eval.c:41
#11 0x080550ea in find_module_instance () at eval.c:41
#12 0x08055321 in setup_modules () at eval.c:41
#13 0x0804c03c in _start () at eval.c:41
#14 0x0804c7aa in main () at eval.c:41
#15 0x400c2177 in __libc_start_main (main=0x804c490 <main>, argc=2,
ubp_av=0xbffffafc, init=0x804b378 <_init>,
fini=0x8058270 <_fini>, rtld_fini=0x4000e184 <_dl_fini>,
stack_end=0xbffffaec) at ../sysdeps/generic/libc-start.c:129

Any help will be greatly appreciated.





Archive powered by MHonArc 2.6.24.

Top of Page