I ran it two different ways; once with set args -f, other with -X
# gdb radiusd
(gdb) set args -f
(gdb) run
Starting program: /usr/local/radiusd/sbin/radiusd -f
[Thread debugging using libthread_db enabled]
[New Thread -1084436352 (LWP 21287)]
Fri May 14 09:16:36 2004 : Info: Starting - reading configuration files
...
[New Thread 26926000 (LWP 21294)]
[New Thread 63564720 (LWP 21295)]
[New Thread 132168624 (LWP 21296)]
[New Thread 155868080 (LWP 21297)]
[New Thread 37415856 (LWP 21298)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 26926000 (LWP 21294)]
0x0066d6ea in sasl_client_new () from /usr/lib/libsasl.so.7
(gdb) bt
#0 0x0066d6ea in sasl_client_new () from /usr/lib/libsasl.so.7
#1 0x007287f8 in ldap_int_sasl_open (ld=0x9fb76c0, lc=0x7b0d00,
host=0x7badf6 "ldap") at cyrus.c:476
#2 0x00722f7e in ldap_int_open_connection (ld=0x9fb76c0,
conn=0x9fb7a90, srv=0x9fb7a10, async=0) at open.c:348
#3 0x00735249 in ldap_new_connection (ld=0x9fb76c0, srvlist=0x9fb7a10,
use_ldsb=1, connect=1, bind=0x0) at request.c:315
#4 0x00722a31 in ldap_open_defconn (ld=0x9fb76c0) at open.c:32
#5 0x00734dbf in ldap_send_initial_request (ld=0x9fb76c0, msgtype=96,
dn=0x9faf2c8 "cn=ldap,dc=host,dc=com",
ber=0x9fb7770) at request.c:98
#6 0x0072abf7 in ldap_sasl_bind (ld=0x9fb76c0, dn=0x9faf2c8
"cn=ldap,dc=host,dc=com", mechanism=0x0, cred=0x19ac1f0,
sctrls=0x9fb7f18, cctrls=0x9fb7f18, msgidp=0x19ac1ec) at sasl.c:143
#7 0x0072b610 in ldap_simple_bind (ld=0x9fb76c0, dn=0x9fb7f18 "Hc_",
passwd=0x0) at sbind.c:81
#8 0x007228f5 in ldap_bind (ld=0x9fb76c0, dn=0x9fb7f18 "Hc_",
passwd=0x9fb7f18 "Hc_", authmethod=128) at bind.c:71
#9 0x00a85d83 in ldap_connect (instance=0x9faf238, dn=0x9faf2c8
"cn=ldap,dc=host,dc=com",
password=0x9fae470 "password", auth=0, result=0x19ac2a8) at
rlm_ldap.c:1509
#10 0x00a830d8 in perform_search (instance=0x9faf238, conn=0x9fb08b0,
search_basedn=0x19ac430 "dc=host,dc=com", scope=2,
filter=0x19ac830
"(&(samaccountname=test)(objectcategory=cn=person,cn=schema,cn=configura
tion,host,dc=com))",
attrs=0x9fb0968, result=0x19ac328) at rlm_ldap.c:615
#11 0x00a8467d in ldap_authorize (instance=0x9faf238, request=0x9fb6b58)
at rlm_ldap.c:1075
#12 0x08056c20 in call_modsingle (component=1, sp=0x9fb2208,
request=0x9fb6b58, default_result=6) at modcall.c:201
#13 0x08056d81 in modcall (component=1, c=0x9fb2208, request=0x9fb6b58)
at modcall.c:312
#14 0x08056cf6 in call_modgroup (component=1, g=0x9fb7f18,
request=0x9fb6b58, default_result=6) at modcall.c:226
#15 0x08056e15 in modcall (component=1, c=0x9fb1aa0, request=0x9fb6b58)
at modcall.c:303
#16 0x080567c1 in module_authorize (autz_type=167477016,
request=0x9fb7f18) at modules.c:857
#17 0x0805345c in rad_authenticate (request=0x9fb6b58) at auth.c:500
#18 0x0804d8bd in rad_respond (request=0x9fb6b58, fun=0x80533e0
<rad_authenticate>) at radiusd.c:1537
#19 0x08058d69 in request_handler_thread (arg=0x9fb6858) at
threads.c:228
#20 0x0011579c in start_thread () from /lib/tls/libpthread.so.0
#21 0x0059b27a in clone () from /lib/tls/libc.so.6
------------------------------------------------------------
# gdb radiusd
(gdb) set args -X
(gdb) run
<snip>
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1084985216 (LWP 21400)]
0x0066d6ea in sasl_client_new () from /usr/lib/libsasl.so.7
(gdb) bt
#0 0x0066d6ea in sasl_client_new () from /usr/lib/libsasl.so.7
#1 0x00e457f8 in ldap_int_sasl_open (ld=0x9b53440, lc=0xecdd00,
host=0xed7df6 "ldap") at cyrus.c:476
#2 0x00e3ff7e in ldap_int_open_connection (ld=0x9b53440,
conn=0x9b53810, srv=0x9b53790, async=0) at open.c:348
#3 0x00e52249 in ldap_new_connection (ld=0x9b53440, srvlist=0x9b53790,
use_ldsb=1, connect=1, bind=0x0) at request.c:315
#4 0x00e3fa31 in ldap_open_defconn (ld=0x9b53440) at open.c:32
#5 0x00e51dbf in ldap_send_initial_request (ld=0x9b53440, msgtype=96,
dn=0x9b4b2c8 "cn=ldapbind,cn=users,dc=ambrose,dc=sau,dc=edu",
ber=0x9b534f0) at request.c:98
#6 0x00e47bf7 in ldap_sasl_bind (ld=0x9b53440, dn=0x9b4b2c8
"cn=ldapbind,cn=users,dc=ambrose,dc=sau,dc=edu", mechanism=0x0,
cred=0xbff64030, sctrls=0x9b53c98, cctrls=0x9b53c98,
msgidp=0xbff6402c) at sasl.c:143
#7 0x00e48610 in ldap_simple_bind (ld=0x9b53440, dn=0x9b53c98 "Hs$",
passwd=0x0) at sbind.c:81
#8 0x00e3f8f5 in ldap_bind (ld=0x9b53440, dn=0x9b53c98 "Hs$",
passwd=0x9b53c98 "Hs$", authmethod=128) at bind.c:71
#9 0x00c2fd83 in ldap_connect (instance=0x9b4b238, dn=0x9b4b2c8
"cn=ldapbind,cn=users,dc=ambrose,dc=sau,dc=edu",
password=0x9b4a470 "bindwin2k", auth=0, result=0xbff640e8) at
rlm_ldap.c:1509
#10 0x00c2d0d8 in perform_search (instance=0x9b4b238, conn=0x9b4c8b0,
search_basedn=0xbff64270 "dc=ambrose,dc=sau,dc=edu", scope=2,
filter=0xbff64670
"(&(samaccountname=test)(objectcategory=cn=person,cn=schema,cn=configura
tion,dc=ambrose,dc=sau,dc=edu))",
attrs=0x9b4c968, result=0xbff64168) at rlm_ldap.c:615
#11 0x00c2e67d in ldap_authorize (instance=0x9b4b238, request=0x9b528d8)
at rlm_ldap.c:1075
#12 0x08056c20 in call_modsingle (component=1, sp=0x9b4e208,
request=0x9b528d8, default_result=6) at modcall.c:201
#13 0x08056d81 in modcall (component=1, c=0x9b4e208, request=0x9b528d8)
at modcall.c:312
#14 0x08056cf6 in call_modgroup (component=1, g=0x9b53c98,
request=0x9b528d8, default_result=6) at modcall.c:226
#15 0x08056e15 in modcall (component=1, c=0x9b4daa0, request=0x9b528d8)
at modcall.c:303
#16 0x080567c1 in module_authorize (autz_type=162872472,
request=0x9b53c98) at modules.c:857
#17 0x0805345c in rad_authenticate (request=0x9b528d8) at auth.c:500
#18 0x0804d8bd in rad_respond (request=0x9b528d8, fun=0x80533e0
<rad_authenticate>) at radiusd.c:1537
#19 0x0804d2dc in rad_process (request=0x9b528d8, dospawn=0) at
radiusd.c:1244
#20 0x0804cbbb in main (argc=0, argv=0x9b528d8) at radiusd.c:1020
-----Original Message-----
From: Alan DeKok [mailto:[EMAIL PROTECTED]
Sent: Friday, May 14, 2004 8:49 AM
To: [EMAIL PROTECTED]
Subject: Re: Segmentation fault on freeradius-0.9.3 and openldap-2.1.29
"Willey Kurt D" <[EMAIL PROTECTED]> wrote:
> Thanks for the reply. I did that but there is no core file.
Run it under gdb, I guess.
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html