Progress!
Thank you for the GDB info. Half of my problem is I have no idea how to
run it!
Ok, attached is the gdb info from the latest CVS with the extra option
Alan told me to add into threads.c.
Please advise..
-JL
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of
> Chris Parker
> Sent: October 26, 2001 10:53 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Problems starting radiusd
>
>
> At 10:30 AM 10/26/2001 -0400, Jason Lixfeld wrote:
> >Alan, did you get my message yesterday about the CVS? Incase no, I
> >tried it as you suggested but this time it didn't even allow
> the first
> >transaction before it died with Sig11. No core dump tho, despite it
> >being enabled in the radiusd.conf. I added the extra line
> to threads.c
> >and recompiled, same lack of core dumps.
>
> Run radiusd from gdb. Use the following syntax:
>
> # gdb radiusd
>
> <bunch of startup stuff snipped>
>
> (gdb) set args -X
> (gdb) run
>
> When it crashes, issue 'bt' at the (gdb) prompt.
>
> -Chris
>
> --
> \\\|||/// \ Chris Parker - Manager, Development
> Engineering
> \ ~ ~ / \ WX *is* Wireless! \
> [EMAIL PROTECTED]
> | @ @ | \ http://www.starnetwx.net \ (847) 963-0116
> oOo---(_)---oOo--\--------------------------------------------
> ----------
> \ Without C we would have 'obol', 'basi',
> and 'pasal'
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
[root@industry scripts]# gdb /source/radius/freeradius-CVS-1004053222/src/main/radiusd
GNU gdb 5.0rh-5 Red Hat Linux 7.1
Copyright 2001 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-redhat-linux"...
(gdb) set args -X
(gdb) run
Starting program: /source/radius/freeradius-CVS-1004053222/src/main/radiusd -X
[New Thread 1024 (LWP 3674)]
Starting - reading configuration files ...
reread_config: reading radiusd.conf
Config: including file: /services/radius/conf/proxy.conf
Config: including file: /services/radius/conf/clients.conf
Config: including file: /services/radius/conf/snmp.conf
main: prefix = "/services/radius/freeradius"
main: localstatedir = "/services/radius/var"
main: logdir = "/services/radius/var/log/radius"
main: libdir = "/services/radius/freeradius/lib"
main: radacctdir = "/services/radius/content/radacct"
main: hostname_lookups = no
read_config_files: reading dictionary
read_config_files: reading clients
read_config_files: reading realms
read_config_files: reading naslist
main: max_request_time = 30
main: cleanup_delay = 5
main: max_requests = 1024
main: delete_blocked_requests = 0
main: port = 0
main: allow_core_dumps = yes
main: log_stripped_names = no
main: log_auth = yes
main: log_auth_badpass = yes
main: log_auth_goodpass = yes
main: pidfile = "/services/radius/var/run/radiusd.pid"
main: user = "nobody"
main: group = "nobody"
main: usercollide = no
main: lower_user = "no"
main: lower_pass = "no"
main: nospace_user = "no"
main: nospace_pass = "no"
main: proxy_requests = off
proxy: retry_delay = 5
proxy: retry_count = 3
proxy: synchronous = no
proxy: dead_time = 120
main: debug_level = 0
read_config_files: entering modules setup
Module: Library search path is /services/radius/freeradius/lib
Module: Loaded System
unix: cache = no
unix: passwd = "/etc/passwd"
unix: shadow = "(null)"
unix: group = "/etc/group"
unix: radwtmp = "/services/radius/var/log/radius/radwtmp"
unix: usegroup = no
Module: Instantiated unix (unix)
Module: Loaded preprocess
preprocess: huntgroups = "/services/radius/conf/huntgroups"
preprocess: hints = "/services/radius/conf/hints"
preprocess: with_ascend_hack = no
preprocess: ascend_channels_per_line = 23
preprocess: with_ntdomain_hack = no
preprocess: with_specialix_jetstream_hack = no
preprocess: with_cisco_vsa_hack = yes
Module: Instantiated preprocess (preprocess)
Module: Loaded realm
realm: format = "suffix"
realm: delimiter = "@"
Module: Instantiated realm (suffix)
Module: Loaded files
files: usersfile = "/services/radius/conf/users"
files: acctusersfile = "/services/radius/conf/acct_users"
files: compat = "no"
Module: Instantiated files (files)
Module: Loaded radutmp
radutmp: filename = "/services/radius/var/log/radius/radutmp"
radutmp: perm = 384
radutmp: callerid = yes
Module: Instantiated radutmp (radutmp)
Listening on IP address *, ports 1645/udp and 1646/udp.
Ready to process requests.
rad_recv: Access-Request packet from host 216.7.221.25:2082, id=0, length=44
User-Name = "test"
Password = "\034\344b(--\215\355\000\200\256\256\311\342zt"
modcall: entering group authorize
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 3674)]
0x40019f00 in rad_mangle () at eval.c:41
41 eval.c: No such file or directory.
in eval.c
(gdb) bt
#0 0x40019f00 in rad_mangle () at eval.c:41
#1 0x4001a858 in preprocess_authorize () at eval.c:41
#2 0x08054afd in call_modsingle (component=1, sp=0x80af5c8, request=0x80b6b20,
default_result=6) at modcall.c:205
#3 0x08054c46 in modcall (component=1, c=0x80af5c8, request=0x80b6b20) at
modcall.c:288
#4 0x08054b47 in call_modgroup (component=1, g=0x80afcf0, request=0x80b6b20,
default_result=6) at modcall.c:227
#5 0x08054c0d in modcall (component=1, c=0x80afcf0, request=0x80b6b20) at
modcall.c:281
#6 0x08054746 in module_authorize (request=0x80b6b20) at modules.c:631
#7 0x080517f9 in rad_authenticate (request=0x80b6b20) at auth.c:524
#8 0x0804d5d0 in rad_respond (request=0x80b6b20, fun=0x805169c <rad_authenticate>) at
radiusd.c:1449
#9 0x0804d284 in rad_process (request=0x80b6b20, dospawn=0) at radiusd.c:1227
#10 0x0804cfa1 in main (argc=2, argv=0xbffffb44) at radiusd.c:1035
#11 0x400aa177 in __libc_start_main (main=0x804c3a4 <main>, argc=2, ubp_av=0xbffffb44,
init=0x804b48c <_init>,
fini=0x805c730 <_fini>, rtld_fini=0x4000e184 <_dl_fini>, stack_end=0xbffffb3c) at
../sysdeps/generic/libc-start.c:129
(gdb)