Segmentation fault when processing SNMP
Hi all, I am experiencing FreeRADIUS SNMP with FreeRADIUS CVS snapshot (20070201). I use Net-SNMP. FreeRADIUS makes a segmentation fault when processing the following SNMP request: snmpwalk -Cc -v 1 -m /PATH-TO-MIBs/RADIUS-AUTH-SERVER-MIB.txt -c verysecret 172.26.233.2 radiusAuth I use the configuration "out-of-the-box", except for snmp.conf, that is: smux_password = verysecret snmp_write_access = yes I run radiusd -X. Here is the output: [garnoud@loo sbin]$ ./radiusd -X Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/radiusd.conf Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/proxy.conf Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/clients.conf Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/snmp.conf Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/eap.conf Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/sql.conf Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/sql/mysql-dialup.conf FreeRADIUS Version 2.0.0-pre0, for host i686-pc-linux-gnu, built on Feb 5 2007 at 14:49:12 Starting - reading configuration files ... read_config_files: reading dictionary main: prefix = "/users/garnoud/freeradius/V2-20070201" main: localstatedir = "/users/garnoud/freeradius/V2-20070201/var" main: logdir = "/users/garnoud/freeradius/V2-20070201/var/log/radius" main: libdir = "/users/garnoud/freeradius/V2-20070201/lib" main: radacctdir = "/users/garnoud/freeradius/V2-20070201/var/log/radius/radacct" main: hostname_lookups = no main: snmp = yes main: max_request_time = 30 main: cleanup_delay = 5 main: max_requests = 1024 main: delete_blocked_requests = 0 main: allow_core_dumps = no main: log_stripped_names = no main: log_file = "/users/garnoud/freeradius/V2-20070201/var/log/radius/radius.log" main: log_auth = no main: log_auth_badpass = no main: log_auth_goodpass = no main: pidfile = "/users/garnoud/freeradius/V2-20070201/var/run/radiusd/radiusd.pid" main: checkrad = "/users/garnoud/freeradius/V2-20070201/sbin/checkrad" main: debug_level = 0 main: proxy_requests = yes log: syslog_facility = "daemon" proxy: retry_delay = 5 proxy: retry_count = 3 proxy: default_fallback = yes proxy: dead_time = 120 proxy: wake_all_if_all_dead = no security: max_attributes = 200 security: reject_delay = 1 security: status_server = no read_config_files: reading realms main: port = 1812 listen: type = "auth" listen: ipaddr = * listen: port = 0 listen: type = "acct" listen: ipaddr = * listen: port = 0 client: secret = "testing123" client: shortname = "localhost" client: nastype = "other" radiusd: entering modules setup Module: Library search path is /users/garnoud/freeradius/V2-20070201/lib Module: Loaded exec exec: wait = yes exec: input_pairs = "request" exec: shell_escape = yes rlm_exec: wait=yes but no output defined. Did you mean output=none? Module: Instantiated exec (exec) Module: Loaded expr Module: Instantiated expr (expr) Module: Loaded expiration expiration: reply-message = "Password Has Expired " Module: Instantiated expiration (expiration) Module: Loaded logintime logintime: reply-message = "You are calling outside your allowed timespan " logintime: minimum-timeout = 60 Module: Instantiated logintime (logintime) Module: Loaded PAP pap: encryption_scheme = "auto" pap: auto_header = no Module: Instantiated pap (pap) Module: Loaded CHAP Module: Instantiated chap (chap) Module: Loaded MS-CHAP mschap: use_mppe = yes mschap: require_encryption = no mschap: require_strong = no mschap: with_ntdomain_hack = no Module: Instantiated mschap (mschap) Module: Loaded System unix: radwtmp = "/users/garnoud/freeradius/V2-20070201/var/log/radius/radwtmp" Module: Instantiated unix (unix) Module: Loaded eap eap: default_eap_type = "md5" eap: timer_expire = 60 eap: ignore_unknown_eap_types = no eap: cisco_accounting_username_bug = no rlm_eap: Loaded and initialized type md5 rlm_eap: Loaded and initialized type leap gtc: challenge = "Password: " gtc: auth_type = "PAP" rlm_eap: Loaded and initialized type gtc mschapv2: with_ntdomain_hack = no rlm_eap: Loaded and initialized type mschapv2 Module: Instantiated eap (eap) Module: Loaded preprocess preprocess: huntgroups = "/users/garnoud/freeradius/V2-20070201/etc/raddb/huntgroups" preprocess: hints = "/users/garnoud/freeradius/V2-20070201/etc/raddb/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 = no preprocess: with_alvarion_vsa_hack = no Module: Instantiated preprocess (preprocess) Module: Loaded realm realm: format = "suffix" realm: delimiter = "@" realm: ignore_default = no realm: ignore_null = no Module: Instantiated realm (suffix) Module: Loaded files files: usersfile = "/users/garnoud/freeradius/V2-20070201/etc/raddb/users" files: acctusersfile = "/users/garnoud/freeradius/V2-20070201/etc/raddb/acct_users" files: preproxy_usersfile = "/users/garnoud/freeradius/V2-20070201/etc/raddb/preproxy_users" files: compat = "no" Module: Instantiated files (files) Module: Loaded Acct-Unique-Session-Id acct_unique: key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, NAS-Port" Module: Instantiated acct_unique (acct_unique) Module: Loaded detail detail: detailfile = "/users/garnoud/freeradius/V2-20070201/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d" detail: header = "%t" detail: detailperm = 384 detail: dirperm = 493 detail: locking = no detail: log_packet_header = no Module: Instantiated detail (detail) Module: Loaded radutmp radutmp: filename = "/users/garnoud/freeradius/V2-20070201/var/log/radius/radutmp" radutmp: username = "%{User-Name}" radutmp: case_sensitive = yes radutmp: check_with_nas = yes radutmp: perm = 384 radutmp: callerid = yes Module: Instantiated radutmp (radutmp) Module: Loaded attr_filter attr_filter: attrsfile = "/users/garnoud/freeradius/V2-20070201/etc/raddb/attrs.accounting_response" attr_filter: key = "%{User-Name}" Module: Instantiated attr_filter (attr_filter.accounting_response) attr_filter: attrsfile = "/users/garnoud/freeradius/V2-20070201/etc/raddb/attrs.access_reject" attr_filter: key = "%{User-Name}" Module: Instantiated attr_filter (attr_filter.access_reject) main: smux_password = "verysecret" main: snmp_write_access = yes SMUX connect try 1 SMUX open oid: 1.3.6.1.4.1.3317.1.3.1 SMUX open progname: radiusd SMUX open password: verysecret SMUX register oid: 1.3.6.1.2.1.67.1.1.1.1 SMUX register priority: -1 SMUX register operation: 2 SMUX register oid: 1.3.6.1.2.1.67.2.1.1.1 SMUX register priority: -1 SMUX register operation: 2 Initializing the thread pool... Listening on authentication address * port 1812 Listening on accounting address * port 1813 Listening on proxy address * port 1814 Ready to process requests. Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 12 SMUX message received type: 67 rest len: 4 SMUX_RRSP SMUX_RRSP value: 0 errstat: 0 --- Walking the entire request list --- Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 32 SMUX message received type: 161 rest len: 28 SMUX_GETNEXT SMUX GET message parse: len 28 SMUX GET reqid: 33 len: 25 SMUX GET errstat 0 len: 22 SMUX GET errindex 0 len: 19 SMUX var parse: len 19 SMUX var parse: type 48 len 15 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1 SMUX val_type: 5 ASN_NULL SMUX function call index is 1 SMUX GETRSP send SMUX GETRSP reqid: 33 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 128 --- Walking the entire request list --- Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 34 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.1.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 1 SMUX function call index is 2 SMUX GETRSP send SMUX GETRSP reqid: 34 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 39 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 35 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.2.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 2 SMUX function call index is 3 SMUX GETRSP send SMUX GETRSP reqid: 35 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 39 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 36 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.3.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 3 SMUX function call index is 4 SMUX GETRSP send SMUX GETRSP reqid: 36 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 37 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.4.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 4 SMUX function call index is 5 SMUX GETRSP send SMUX GETRSP reqid: 37 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 38 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.5.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 5 SMUX function call index is 6 SMUX GETRSP send SMUX GETRSP reqid: 38 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 39 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.6.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 6 SMUX function call index is 7 SMUX GETRSP send SMUX GETRSP reqid: 39 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 40 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.7.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 7 SMUX function call index is 8 SMUX GETRSP send SMUX GETRSP reqid: 40 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 41 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.8.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 8 SMUX function call index is 9 SMUX GETRSP send SMUX GETRSP reqid: 41 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 42 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.9.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 9 SMUX function call index is 10 SMUX GETRSP send SMUX GETRSP reqid: 42 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 43 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.10.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 10 SMUX function call index is 11 SMUX GETRSP send SMUX GETRSP reqid: 43 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 44 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.11.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 11 SMUX function call index is 12 SMUX GETRSP send SMUX GETRSP reqid: 44 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 45 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.12.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 12 SMUX function call index is 13 SMUX GETRSP send SMUX GETRSP reqid: 45 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 46 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.13.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 13 SMUX function call index is 14 SMUX GETRSP send SMUX GETRSP reqid: 46 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 47 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.14.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 14 SMUX function call index is 2 SMUX GETRSP send SMUX GETRSP reqid: 47 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 59 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 39 SMUX message received type: 161 rest len: 35 SMUX_GETNEXT SMUX GET message parse: len 35 SMUX GET reqid: 48 len: 32 SMUX GET errstat 0 len: 29 SMUX GET errindex 0 len: 26 SMUX var parse: len 26 SMUX var parse: type 48 len 22 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.15.1.2.1 SMUX val_type: 5 ASN_NULL SMUX function call index is 2 SMUX function call index is 3 Segmentation fault Has anyone already encountered this issue? Best regards, Geoff. ___________________________________________________________________________ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
On Monday 05 February 2007 10:10, Geoffroy Arnoud wrote:
Request OID: 1.3.6.1.2.1.67.1.1.1.1.15.1.2.1 SMUX val_type: 5 ASN_NULL SMUX function call index is 2 SMUX function call index is 3 Segmentation fault
Has anyone already encountered this issue?
Can you provide gdb backtrace output as requested in doc/bugs? OID 67.1.1.1.1.15.1.2.1 is the last client IP address listed in your clients.conf file. What does that entry look like? Kevin Bonner
--- Kevin Bonner <keb@pa.net> a écrit :
On Monday 05 February 2007 10:10, Geoffroy Arnoud wrote:
Request OID: 1.3.6.1.2.1.67.1.1.1.1.15.1.2.1 SMUX val_type: 5 ASN_NULL SMUX function call index is 2 SMUX function call index is 3 Segmentation fault
Has anyone already encountered this issue?
Can you provide gdb backtrace output as requested in doc/bugs? OID 67.1.1.1.1.15.1.2.1 is the last client IP address listed in your clients.conf file. What does that entry look like?
I use the default clients.conf (actually, I am just trying to test SNMP) I ran gdb radiusd / start -X Here is the output and bt (not very useful) ... Request OID: 1.3.6.1.2.1.67.1.1.1.1.15.1.2.1 SMUX val_type: 5 ASN_NULL SMUX function call index is 2 SMUX function call index is 3 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1218493184 (LWP 8913)] 0x0805ed49 in main () (gdb) (gdb) bt #0 0x0805ed49 in main () Thanks Geoff. ___________________________________________________________________________ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
I recompiled with --enable-developer. Here is GDB output [garnoud@loo sbin]$ gdb radiusd GNU gdb Red Hat Linux (6.3.0.0-1.62rh) 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-redhat-linux-gnu"...(no debugging symbols found) Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) run -X Starting program: /users/garnoud/freeradius/V2-20070201/sbin/radiusd -X (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1218501376 (LWP 24613)] (no debugging symbols found) Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/radiusd.conf Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/proxy.conf Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/clients.conf Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/snmp.conf Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/eap.conf Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/sql.conf Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/sql/mysql-dialup.conf FreeRADIUS Version 2.0.0-pre0, for host i686-pc-linux-gnu, built on Feb 5 2007 at 17:39:17 Starting - reading configuration files ... read_config_files: reading dictionary main: prefix = "/users/garnoud/freeradius/V2-20070201" main: localstatedir = "/users/garnoud/freeradius/V2-20070201/var" main: logdir = "/users/garnoud/freeradius/V2-20070201/var/log/radius" main: libdir = "/users/garnoud/freeradius/V2-20070201/lib" main: radacctdir = "/users/garnoud/freeradius/V2-20070201/var/log/radius/radacct" main: hostname_lookups = no main: snmp = yes main: max_request_time = 30 main: cleanup_delay = 5 main: max_requests = 1024 main: delete_blocked_requests = 0 main: allow_core_dumps = no main: log_stripped_names = no main: log_file = "/users/garnoud/freeradius/V2-20070201/var/log/radius/radius.log" main: log_auth = no main: log_auth_badpass = no main: log_auth_goodpass = no main: pidfile = "/users/garnoud/freeradius/V2-20070201/var/run/radiusd/radiusd.pid" main: checkrad = "/users/garnoud/freeradius/V2-20070201/sbin/checkrad" main: debug_level = 0 main: proxy_requests = yes log: syslog_facility = "daemon" proxy: retry_delay = 5 proxy: retry_count = 3 proxy: default_fallback = yes proxy: dead_time = 120 proxy: wake_all_if_all_dead = no security: max_attributes = 200 security: reject_delay = 1 security: status_server = no read_config_files: reading realms main: port = 1812 listen: type = "auth" listen: ipaddr = * listen: port = 0 listen: type = "acct" listen: ipaddr = * listen: port = 0 client: secret = "pc_gao" client: shortname = "localhost" client: nastype = "other" client: secret = "pc_gao" client: shortname = "PC_GAO" client: secret = "pc_gao" client: shortname = "LOO" radiusd: entering modules setup Module: Library search path is /users/garnoud/freeradius/V2-20070201/lib Module: Loaded exec exec: wait = yes exec: input_pairs = "request" exec: shell_escape = yes rlm_exec: wait=yes but no output defined. Did you mean output=none? Module: Instantiated exec (exec) Module: Loaded expr Module: Instantiated expr (expr) Module: Loaded expiration expiration: reply-message = "Password Has Expired " Module: Instantiated expiration (expiration) Module: Loaded logintime logintime: reply-message = "You are calling outside your allowed timespan " logintime: minimum-timeout = 60 Module: Instantiated logintime (logintime) Module: Loaded PAP pap: encryption_scheme = "auto" pap: auto_header = no Module: Instantiated pap (pap) Module: Loaded CHAP Module: Instantiated chap (chap) Module: Loaded MS-CHAP mschap: use_mppe = yes mschap: require_encryption = no mschap: require_strong = no mschap: with_ntdomain_hack = no Module: Instantiated mschap (mschap) Module: Loaded System unix: radwtmp = "/users/garnoud/freeradius/V2-20070201/var/log/radius/radwtmp" Module: Instantiated unix (unix) Module: Loaded eap eap: default_eap_type = "md5" eap: timer_expire = 60 eap: ignore_unknown_eap_types = no eap: cisco_accounting_username_bug = no rlm_eap: Loaded and initialized type md5 rlm_eap: Loaded and initialized type leap gtc: challenge = "Password: " gtc: auth_type = "PAP" rlm_eap: Loaded and initialized type gtc mschapv2: with_ntdomain_hack = no rlm_eap: Loaded and initialized type mschapv2 Module: Instantiated eap (eap) Module: Loaded preprocess preprocess: huntgroups = "/users/garnoud/freeradius/V2-20070201/etc/raddb/huntgroups" preprocess: hints = "/users/garnoud/freeradius/V2-20070201/etc/raddb/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 = no preprocess: with_alvarion_vsa_hack = no Module: Instantiated preprocess (preprocess) Module: Loaded realm realm: format = "suffix" realm: delimiter = "@" realm: ignore_default = no realm: ignore_null = no Module: Instantiated realm (suffix) Module: Loaded files files: usersfile = "/users/garnoud/freeradius/V2-20070201/etc/raddb/users" files: acctusersfile = "/users/garnoud/freeradius/V2-20070201/etc/raddb/acct_users" files: preproxy_usersfile = "/users/garnoud/freeradius/V2-20070201/etc/raddb/preproxy_users" files: compat = "no" Module: Instantiated files (files) Module: Loaded Acct-Unique-Session-Id acct_unique: key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, NAS-Port" Module: Instantiated acct_unique (acct_unique) Module: Loaded detail detail: detailfile = "/users/garnoud/freeradius/V2-20070201/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d" detail: header = "%t" detail: detailperm = 384 detail: dirperm = 493 detail: locking = no detail: log_packet_header = no Module: Instantiated detail (detail) Module: Loaded radutmp radutmp: filename = "/users/garnoud/freeradius/V2-20070201/var/log/radius/radutmp" radutmp: username = "%{User-Name}" radutmp: case_sensitive = yes radutmp: check_with_nas = yes radutmp: perm = 384 radutmp: callerid = yes Module: Instantiated radutmp (radutmp) Module: Loaded attr_filter attr_filter: attrsfile = "/users/garnoud/freeradius/V2-20070201/etc/raddb/attrs.accounting_response" attr_filter: key = "%{User-Name}" Module: Instantiated attr_filter (attr_filter.accounting_response) attr_filter: attrsfile = "/users/garnoud/freeradius/V2-20070201/etc/raddb/attrs.access_reject" attr_filter: key = "%{User-Name}" Module: Instantiated attr_filter (attr_filter.access_reject) main: smux_password = "verysecret" main: snmp_write_access = yes SMUX connect try 1 SMUX open oid: 1.3.6.1.4.1.3317.1.3.1 SMUX open progname: radiusd SMUX open password: verysecret SMUX register oid: 1.3.6.1.2.1.67.1.1.1.1 SMUX register priority: -1 SMUX register operation: 2 SMUX register oid: 1.3.6.1.2.1.67.2.1.1.1 SMUX register priority: -1 SMUX register operation: 2 Initializing the thread pool... Listening on authentication address * port 1812 Listening on accounting address * port 1813 Listening on proxy address * port 1814 Ready to process requests. Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 12 SMUX message received type: 67 rest len: 4 SMUX_RRSP SMUX_RRSP value: 0 errstat: 0 --- Walking the entire request list --- Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 32 SMUX message received type: 161 rest len: 28 SMUX_GETNEXT SMUX GET message parse: len 28 SMUX GET reqid: 17 len: 25 SMUX GET errstat 0 len: 22 SMUX GET errindex 0 len: 19 SMUX var parse: len 19 SMUX var parse: type 48 len 15 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1 SMUX val_type: 5 ASN_NULL SMUX function call index is 1 SMUX GETRSP send SMUX GETRSP reqid: 17 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 128 --- Walking the entire request list --- Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 18 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.1.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 1 SMUX function call index is 2 SMUX GETRSP send SMUX GETRSP reqid: 18 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 39 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 19 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.2.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 2 SMUX function call index is 3 SMUX GETRSP send SMUX GETRSP reqid: 19 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 39 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 20 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.3.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 3 SMUX function call index is 4 SMUX GETRSP send SMUX GETRSP reqid: 20 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 21 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.4.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 4 SMUX function call index is 5 SMUX GETRSP send SMUX GETRSP reqid: 21 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 22 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.5.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 5 SMUX function call index is 6 SMUX GETRSP send SMUX GETRSP reqid: 22 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 23 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.6.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 6 SMUX function call index is 7 SMUX GETRSP send SMUX GETRSP reqid: 23 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 24 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.7.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 7 SMUX function call index is 8 SMUX GETRSP send SMUX GETRSP reqid: 24 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 25 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.8.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 8 SMUX function call index is 9 SMUX GETRSP send SMUX GETRSP reqid: 25 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 26 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.9.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 9 SMUX function call index is 10 SMUX GETRSP send SMUX GETRSP reqid: 26 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 27 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.10.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 10 SMUX function call index is 11 SMUX GETRSP send SMUX GETRSP reqid: 27 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 28 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.11.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 11 SMUX function call index is 12 SMUX GETRSP send SMUX GETRSP reqid: 28 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 29 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.12.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 12 SMUX function call index is 13 SMUX GETRSP send SMUX GETRSP reqid: 29 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 30 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.13.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 13 SMUX function call index is 14 SMUX GETRSP send SMUX GETRSP reqid: 30 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 31 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.14.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 14 SMUX function call index is 2 SMUX GETRSP send SMUX GETRSP reqid: 31 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 59 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 39 SMUX message received type: 161 rest len: 35 SMUX_GETNEXT SMUX GET message parse: len 35 SMUX GET reqid: 32 len: 32 SMUX GET errstat 0 len: 29 SMUX GET errindex 0 len: 26 SMUX var parse: len 26 SMUX var parse: type 48 len 22 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.15.1.2.1 SMUX val_type: 5 ASN_NULL SMUX function call index is 2 SMUX function call index is 3 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1218501376 (LWP 24613)] 0x0805ed49 in radAuthEntry () (gdb) (gdb) (gdb) (gdb) (gdb) (gdb) bt #0 0x0805ed49 in radAuthEntry () #1 0x08061ea6 in smux_getnext () #2 0x08062256 in smux_parse_get () #3 0x08062681 in smux_parse () #4 0x0806289b in smux_read () #5 0x0805e0fc in main () (gdb) I will try valgrind later Regards, Geoff. ___________________________________________________________________________ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
Sorry for sending too much messages but here gdb output with debug symbols Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1218493184 (LWP 8127)] 0x0805ed49 in radAuthEntry (vp=0x8078794, name=0xbfff981c, length=0xbfff9574, exact=0, var_len=0xbfff97e0, write_method=0xbfff956c) at radius_snmp.c:492 492 if (strlen(c->shortname)) { (gdb) (gdb) (gdb) (gdb) (gdb) (gdb) bt #0 0x0805ed49 in radAuthEntry (vp=0x8078794, name=0xbfff981c, length=0xbfff9574, exact=0, var_len=0xbfff97e0, write_method=0xbfff956c) at radius_snmp.c:492 #1 0x08061ea6 in smux_getnext (reqid=0xbfff97f0, reqid_len=0xbfff97ec, exact=0, val_type=0xbfff97eb "@\017", val=0xbfff97e4, val_len=0xbfff97e0) at smux.c:574 #2 0x08062256 in smux_parse_get (ptr=0xbfff9a97 "", len=26, exact=0) at smux.c:669 #3 0x08062681 in smux_parse (ptr=0xbfff9a74 "\002\001 \002\001", len=35) at smux.c:786 #4 0x0806289b in smux_read () at smux.c:836 #5 0x0805e0fc in main (argc=2, argv=0xbfffb284) at radiusd.c:696 Geoff. ___________________________________________________________________________ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
Geoffroy Arnoud wrote:
Sorry for sending too much messages but here gdb output with debug symbols
write_method=0xbfff956c) at radius_snmp.c:492 492 if (strlen(c->shortname)) {
That's what I suspected. The shortname MUST be defined. Add it to the "clients.conf" file. But... it is a bug. The code that creates the RADCLIENT structure should ensure that the "shortname" field is initialized. I'll go look at that. Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog
That's what I suspected. The shortname MUST be defined. Add it to the "clients.conf" file.
I'm sorry, but it seems that shortname is defined, see clients.conf is attachement. Regards, Geoff. ___________________________________________________________________________ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com # # clients.conf - client configuration directives # ####################################################################### ####################################################################### # # Definition of a RADIUS client (usually a NAS). # # The information given here over rides anything given in the # 'clients' file, or in the 'naslist' file. The configuration here # contains all of the information from those two files, and allows # for more configuration items. # # The "shortname" is be used for logging. The "nastype", "login" and # "password" fields are mainly used for checkrad and are optional. # # # Defines a RADIUS client. The format is 'client [hostname|ip-address]' # # '127.0.0.1' is another name for 'localhost'. It is enabled by default, # to allow testing of the server after an initial installation. If you # are not going to be permitting RADIUS queries from localhost, we suggest # that you delete, or comment out, this entry. # # # Rules for Prefixes # ------------------ # IPv6 prefixes MUST end with :: or IPv6 Address or hostname # IPv4 Prefixes MUST end with .0 or IPv4 Address or hostname # A hostname is a valid DNS lookup name # # Valid Prefixes # -------------- # For IPv4: # 192.168.1.1/24 # 10.0/8 = 10.0.0.0/16 = 10.0.0.1/8 != 10/8 # 192.168.1.1/32 = 192.168.1.1/0 # hostname/32 = hostname/0 = hostname # (32 or 0 or NULL prefix lengths are treated same) # # For IPv6: # fec0::/64 # fec0::1/100 # fec0::1/128 = fec0::1/0 = fec0::1 # hostname/128 = hostname/0 = hostname # (128 or 0 or NULL prefix lengths are treated same) # # Invalid prefixes # ---------------- # For IPv4: # 1) 192.168/16 # (MUST end with .0) # (replace with 192.168.0/16 or 192.168.0.0/16 or 192.168.1.1/16) # 2) 192.168 # (No Prefix, so it is considered as hostname # and also returns 192.0.0.168 instead of 192.168.0.0) # # For IPv6: # 1) fec0/16 # (MUST end with ::) # (replace with fec0::/16 or fec0::1/16) # 2) fec0:: # (No prefix, so it is considered as hostname) # client 127.0.0.1 { # # The shared secret use to "encrypt" and "sign" packets between # the NAS and FreeRADIUS. You MUST change this secret from the # default, otherwise it's not a secret any more! # # The secret can be any string, up to 8k characters in length. # # Control codes can be entered vi octal encoding, # e.g. "\101\102" == "AB" # Quotation marks can be entered by escaping them, # e.g. "foo\"bar" # secret = pc_gao # # The short name is used as an alias for the fully qualified # domain name, or the IP address. # shortname = localhost # # the following three fields are optional, but may be used by # checkrad.pl for simultaneous use checks # # # The nastype tells 'checkrad.pl' which NAS-specific method to # use to query the NAS for simultaneous use. # # Permitted NAS types are: # # cisco # computone # livingston # max40xx # multitech # netserver # pathras # patton # portslave # tc # usrhiper # other # for all other types # nastype = other # localhost isn't usually a NAS... # # The following two configurations are for future use. # The 'naspasswd' file is currently used to store the NAS # login name and password, which is used by checkrad.pl # when querying the NAS for simultaneous use. # # login = !root # password = someadminpas } # IPv6 Client #client ::1 { # secret = testing123 # shortname = localhost #} # # All IPv6 Site-local clients #client fe80::/16 { # secret = testing123 # shortname = localhost #} #client some.host.org { # secret = testing123 # shortname = localhost #} # # You can now specify one secret for a network of clients. # When a client request comes in, the BEST match is chosen. # i.e. The entry from the smallest possible network. # #client 192.168.0.0/24 { # secret = testing123-1 # shortname = private-network-1 #} # #client 192.168.0.0/16 { # secret = testing123-2 # shortname = private-network-2 #} #client 10.10.10.10 { # # secret and password are mapped through the "secrets" file. # secret = testing123 # shortname = liv1 # # the following three fields are optional, but may be used by # # checkrad.pl for simultaneous usage checks # nastype = livingston # login = !root # password = someadminpas #} ####################################################################### # # Per-socket client lists. The configuration entries are exactly # the same as above, but they are nested inside of a section. # # You can have as many per-socket client lists as you have "listen" # sections, or you can re-use a list among multiple "listen" sections. # #per_socket_clients { # client 192.168.3.4 { # secret = testing123 # } #} #client 10.67.189.3 { # secret = pc_gao # shortname = PC_GAO #} #client 172.26.233.2 { # secret = pc_gao # shortname = LOO #}
Geoffroy Arnoud wrote:
That's what I suspected. The shortname MUST be defined. Add it to the "clients.conf" file.
I'm sorry, but it seems that shortname is defined, see clients.conf is attachement.
Then... why is the server dying? a) There is another client defined somewhere other than clients.conf b) there's a bug in the server Either way, tracking down the root cause of the problem involves some serious debugging work on the running system. I don't see the problem, so it's a little difficult for me to see why it's broken. Or, you can edit the source code to remove that check, or to make the check more robust. Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog
On Feb 6, 2007, at 7:27 AM, Geoffroy Arnoud wrote:
That's what I suspected. The shortname MUST be defined. Add it to the "clients.conf" file.
I'm sorry, but it seems that shortname is defined, see clients.conf is attachement.
Dump it again, and use gdb to probe the clients structure to determine which client entry it is: typedef struct radclient { lrad_ipaddr_t ipaddr; int prefix; char *longname; char *secret; char *shortname; char *nastype; char *login; char *password; int number; /* internal use only */ } RADCLIENT; gdb> print c gdb> print c->shortname gdb> print c->secret etc. -- Chris Parker Director, Engineering US LEC Corp. Internet Telephony & ISP Operations (888)212-0099 Fax (847)963-1302 Wholesale Internet Services http://www.megapop.net VoiceEclipse, The Fresh Alternative http://www.voiceeclipse.com NOTICE: Message is sent IN CONFIDENCE to addressees. It may contain information that is privileged, proprietary or confidential.
Geoffroy Arnoud wrote:
I recompiled with --enable-developer.
Nope.
Here is GDB output
(gdb) run -X Starting program: /users/garnoud/freeradius/V2-20070201/sbin/radiusd -X (no debugging symbols found)
That means either --enable-developer didn't work, or you didn't re-install the version with the symbols, or it was still stripped. Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog
Geoffroy Arnoud wrote:
Hi all,
I am experiencing FreeRADIUS SNMP with FreeRADIUS CVS snapshot (20070201). I use Net-SNMP.
FreeRADIUS makes a segmentation fault when processing the following SNMP request: ... Has anyone already encountered this issue?
Nope. What does valgrind say? Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog
Nope. What does valgrind say? valgrind output is attached
Best regards, Geoff. ___________________________________________________________________________ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com [garnoud@loo sbin]$ valgrind --leak-check=yes ./radiusd -X ==8144== Memcheck, a memory error detector. ==8144== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==8144== Using LibVEX rev 1732, a library for dynamic binary translation. ==8144== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==8144== Using valgrind-3.2.3, a dynamic binary instrumentation framework. ==8144== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==8144== For more details, rerun with: -v ==8144== Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/radiusd.conf Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/proxy.conf Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/clients.conf Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/snmp.conf Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/eap.conf Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/sql.conf Config: including file: /users/garnoud/freeradius/V2-20070201/etc/raddb/sql/mysql-dialup.conf FreeRADIUS Version 2.0.0-pre0, for host i686-pc-linux-gnu, built on Feb 6 2007 at 09:47:17 Starting - reading configuration files ... read_config_files: reading dictionary main: prefix = "/users/garnoud/freeradius/V2-20070201" main: localstatedir = "/users/garnoud/freeradius/V2-20070201/var" main: logdir = "/users/garnoud/freeradius/V2-20070201/var/log/radius" main: libdir = "/users/garnoud/freeradius/V2-20070201/lib" main: radacctdir = "/users/garnoud/freeradius/V2-20070201/var/log/radius/radacct" main: hostname_lookups = no main: snmp = yes main: max_request_time = 30 main: cleanup_delay = 5 main: max_requests = 1024 main: delete_blocked_requests = 0 main: allow_core_dumps = no main: log_stripped_names = no main: log_file = "/users/garnoud/freeradius/V2-20070201/var/log/radius/radius.log" main: log_auth = no main: log_auth_badpass = no main: log_auth_goodpass = no main: pidfile = "/users/garnoud/freeradius/V2-20070201/var/run/radiusd/radiusd.pid" main: checkrad = "/users/garnoud/freeradius/V2-20070201/sbin/checkrad" main: debug_level = 0 main: proxy_requests = yes log: syslog_facility = "daemon" proxy: retry_delay = 5 proxy: retry_count = 3 proxy: default_fallback = yes proxy: dead_time = 120 proxy: wake_all_if_all_dead = no security: max_attributes = 200 security: reject_delay = 1 security: status_server = no read_config_files: reading realms main: port = 1812 listen: type = "auth" listen: ipaddr = * listen: port = 0 listen: type = "acct" listen: ipaddr = * listen: port = 0 client: secret = "pc_gao" client: shortname = "localhost" client: nastype = "other" client: secret = "pc_gao" client: shortname = "PC_GAO" client: secret = "pc_gao" client: shortname = "LOO" radiusd: entering modules setup Module: Library search path is /users/garnoud/freeradius/V2-20070201/lib Module: Loaded exec exec: wait = yes exec: input_pairs = "request" exec: shell_escape = yes rlm_exec: wait=yes but no output defined. Did you mean output=none? Module: Instantiated exec (exec) Module: Loaded expr Module: Instantiated expr (expr) Module: Loaded expiration expiration: reply-message = "Password Has Expired " Module: Instantiated expiration (expiration) Module: Loaded logintime logintime: reply-message = "You are calling outside your allowed timespan " logintime: minimum-timeout = 60 Module: Instantiated logintime (logintime) Module: Loaded PAP pap: encryption_scheme = "auto" pap: auto_header = no Module: Instantiated pap (pap) Module: Loaded CHAP Module: Instantiated chap (chap) Module: Loaded MS-CHAP mschap: use_mppe = yes mschap: require_encryption = no mschap: require_strong = no mschap: with_ntdomain_hack = no Module: Instantiated mschap (mschap) Module: Loaded System unix: radwtmp = "/users/garnoud/freeradius/V2-20070201/var/log/radius/radwtmp" Module: Instantiated unix (unix) Module: Loaded eap eap: default_eap_type = "md5" eap: timer_expire = 60 eap: ignore_unknown_eap_types = no eap: cisco_accounting_username_bug = no rlm_eap: Loaded and initialized type md5 rlm_eap: Loaded and initialized type leap gtc: challenge = "Password: " gtc: auth_type = "PAP" rlm_eap: Loaded and initialized type gtc mschapv2: with_ntdomain_hack = no rlm_eap: Loaded and initialized type mschapv2 Module: Instantiated eap (eap) Module: Loaded preprocess preprocess: huntgroups = "/users/garnoud/freeradius/V2-20070201/etc/raddb/huntgroups" preprocess: hints = "/users/garnoud/freeradius/V2-20070201/etc/raddb/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 = no preprocess: with_alvarion_vsa_hack = no Module: Instantiated preprocess (preprocess) Module: Loaded realm realm: format = "suffix" realm: delimiter = "@" realm: ignore_default = no realm: ignore_null = no Module: Instantiated realm (suffix) Module: Loaded files files: usersfile = "/users/garnoud/freeradius/V2-20070201/etc/raddb/users" files: acctusersfile = "/users/garnoud/freeradius/V2-20070201/etc/raddb/acct_users" files: preproxy_usersfile = "/users/garnoud/freeradius/V2-20070201/etc/raddb/preproxy_users" files: compat = "no" Module: Instantiated files (files) Module: Loaded Acct-Unique-Session-Id acct_unique: key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, NAS-Port" Module: Instantiated acct_unique (acct_unique) Module: Loaded detail detail: detailfile = "/users/garnoud/freeradius/V2-20070201/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d" detail: header = "%t" detail: detailperm = 384 detail: dirperm = 493 detail: locking = no detail: log_packet_header = no Module: Instantiated detail (detail) Module: Loaded radutmp radutmp: filename = "/users/garnoud/freeradius/V2-20070201/var/log/radius/radutmp" radutmp: username = "%{User-Name}" radutmp: case_sensitive = yes radutmp: check_with_nas = yes radutmp: perm = 384 radutmp: callerid = yes Module: Instantiated radutmp (radutmp) Module: Loaded attr_filter attr_filter: attrsfile = "/users/garnoud/freeradius/V2-20070201/etc/raddb/attrs.accounting_response" attr_filter: key = "%{User-Name}" Module: Instantiated attr_filter (attr_filter.accounting_response) attr_filter: attrsfile = "/users/garnoud/freeradius/V2-20070201/etc/raddb/attrs.access_reject" attr_filter: key = "%{User-Name}" Module: Instantiated attr_filter (attr_filter.access_reject) main: smux_password = "verysecret" main: snmp_write_access = yes SMUX connect try 1 SMUX open oid: 1.3.6.1.4.1.3317.1.3.1 SMUX open progname: radiusd SMUX open password: verysecret SMUX register oid: 1.3.6.1.2.1.67.1.1.1.1 SMUX register priority: -1 SMUX register operation: 2 SMUX register oid: 1.3.6.1.2.1.67.2.1.1.1 SMUX register priority: -1 SMUX register operation: 2 Initializing the thread pool... Listening on authentication address * port 1812 Listening on accounting address * port 1813 Listening on proxy address * port 1814 Ready to process requests. Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 12 SMUX message received type: 67 rest len: 4 SMUX_RRSP SMUX_RRSP value: 0 errstat: 0 --- Walking the entire request list --- Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 32 SMUX message received type: 161 rest len: 28 SMUX_GETNEXT SMUX GET message parse: len 28 SMUX GET reqid: 1 len: 25 SMUX GET errstat 0 len: 22 SMUX GET errindex 0 len: 19 SMUX var parse: len 19 SMUX var parse: type 48 len 15 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1 SMUX val_type: 5 ASN_NULL SMUX function call index is 1 SMUX GETRSP send SMUX GETRSP reqid: 1 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 128 --- Walking the entire request list --- Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 2 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.1.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 1 SMUX function call index is 2 SMUX GETRSP send SMUX GETRSP reqid: 2 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 39 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 3 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.2.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 2 SMUX function call index is 3 SMUX GETRSP send SMUX GETRSP reqid: 3 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 39 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 4 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.3.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 3 SMUX function call index is 4 SMUX GETRSP send SMUX GETRSP reqid: 4 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 5 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.4.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 4 SMUX function call index is 5 SMUX GETRSP send SMUX GETRSP reqid: 5 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 6 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.5.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 5 SMUX function call index is 6 SMUX GETRSP send SMUX GETRSP reqid: 6 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 7 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.6.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 6 SMUX function call index is 7 SMUX GETRSP send SMUX GETRSP reqid: 7 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 8 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.7.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 7 SMUX function call index is 8 SMUX GETRSP send SMUX GETRSP reqid: 8 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 9 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.8.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 8 SMUX function call index is 9 SMUX GETRSP send SMUX GETRSP reqid: 9 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 10 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.9.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 9 SMUX function call index is 10 SMUX GETRSP send SMUX GETRSP reqid: 10 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 11 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.10.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 10 SMUX function call index is 11 SMUX GETRSP send SMUX GETRSP reqid: 11 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 12 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.11.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 11 SMUX function call index is 12 SMUX GETRSP send SMUX GETRSP reqid: 12 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 13 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.12.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 12 SMUX function call index is 13 SMUX GETRSP send SMUX GETRSP reqid: 13 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 14 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.13.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 13 SMUX function call index is 14 SMUX GETRSP send SMUX GETRSP reqid: 14 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 38 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 37 SMUX message received type: 161 rest len: 33 SMUX_GETNEXT SMUX GET message parse: len 33 SMUX GET reqid: 15 len: 30 SMUX GET errstat 0 len: 27 SMUX GET errindex 0 len: 24 SMUX var parse: len 24 SMUX var parse: type 48 len 20 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.14.0 SMUX val_type: 5 ASN_NULL SMUX function call index is 14 SMUX function call index is 2 SMUX GETRSP send SMUX GETRSP reqid: 15 SMUX GETRSP errstat: 0 SMUX GETRSP errindex: 0 SMUX getresp send: 59 Nothing to do. Sleeping until we see a request. SMUX read start SMUX read len: 39 SMUX message received type: 161 rest len: 35 SMUX_GETNEXT SMUX GET message parse: len 35 SMUX GET reqid: 16 len: 32 SMUX GET errstat 0 len: 29 SMUX GET errindex 0 len: 26 SMUX var parse: len 26 SMUX var parse: type 48 len 22 SMUX var parse: type must be 48 Request OID: 1.3.6.1.2.1.67.1.1.1.1.15.1.2.1 SMUX val_type: 5 ASN_NULL SMUX function call index is 2 SMUX function call index is 3 ==8144== Invalid read of size 1 ==8144== at 0x805ED49: radAuthEntry (radius_snmp.c:492) ==8144== by 0x8061EA5: smux_getnext (smux.c:574) ==8144== by 0x8062255: smux_parse_get (smux.c:669) ==8144== by 0x8062680: smux_parse (smux.c:786) ==8144== by 0x806289A: smux_read (smux.c:836) ==8144== by 0x805E0FB: main (radiusd.c:696) ==8144== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==8144== ==8144== Process terminating with default action of signal 11 (SIGSEGV) ==8144== Access not within mapped region at address 0x0 ==8144== at 0x805ED49: radAuthEntry (radius_snmp.c:492) ==8144== by 0x8061EA5: smux_getnext (smux.c:574) ==8144== by 0x8062255: smux_parse_get (smux.c:669) ==8144== by 0x8062680: smux_parse (smux.c:786) ==8144== by 0x806289A: smux_read (smux.c:836) ==8144== by 0x805E0FB: main (radiusd.c:696) ==8144== ==8144== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 74 from 2) ==8144== malloc/free: in use at exit: 749,970 bytes in 27,962 blocks. ==8144== malloc/free: 28,621 allocs, 659 frees, 893,190 bytes allocated. ==8144== For counts of detected errors, rerun with: -v ==8144== searching for pointers to 27,962 not-freed blocks. ==8144== checked 1,189,660 bytes. ==8144== ==8144== ==8144== 16 bytes in 1 blocks are definitely lost in loss record 4 of 34 ==8144== at 0x401A846: malloc (vg_replace_malloc.c:149) ==8144== by 0x4060ED3: lrad_hash_table_insert (hash.c:418) ==8144== by 0x45CF1CF: getusersfile (rlm_files.c:297) ==8144== by 0x45CF445: file_instantiate (rlm_files.c:366) ==8144== by 0x8059B1A: find_module_instance (modules.c:321) ==8144== by 0x805BF96: do_compile_modsingle (modcall.c:1199) ==8144== by 0x805C317: compile_modsingle (modcall.c:1306) ==8144== by 0x805A1A4: load_component_section (modules.c:565) ==8144== by 0x805AA98: setup_modules (modules.c:933) ==8144== by 0x80593C3: read_mainconfig (mainconfig.c:1136) ==8144== by 0x805D7F9: main (radiusd.c:288) ==8144== ==8144== ==8144== 72 bytes in 3 blocks are definitely lost in loss record 8 of 34 ==8144== at 0x401A846: malloc (vg_replace_malloc.c:149) ==8144== by 0x4069653: rbtree_create (rbtree.c:100) ==8144== by 0x804EAA0: client_add (client.c:234) ==8144== by 0x804F0AC: clients_parse_section (client.c:487) ==8144== by 0x8059351: read_mainconfig (mainconfig.c:1119) ==8144== by 0x805D7F9: main (radiusd.c:288) ==8144== ==8144== ==8144== 296 bytes in 20 blocks are definitely lost in loss record 12 of 34 ==8144== at 0x401A846: malloc (vg_replace_malloc.c:149) ==8144== by 0x413C750: lt_emalloc (ltdl.c:1016) ==8144== by 0x413D36A: canonicalize_path (ltdl.c:2561) ==8144== by 0x413DC0D: try_dlopen (ltdl.c:3078) ==8144== by 0x413E77F: lt_dlopenext (ltdl.c:3479) ==8144== by 0x80596F1: linkto_module (modules.c:195) ==8144== by 0x8059AB0: find_module_instance (modules.c:309) ==8144== by 0x805AA0B: setup_modules (modules.c:913) ==8144== by 0x80593C3: read_mainconfig (mainconfig.c:1136) ==8144== by 0x805D7F9: main (radiusd.c:288) ==8144== ==8144== LEAK SUMMARY: ==8144== definitely lost: 384 bytes in 24 blocks. ==8144== possibly lost: 0 bytes in 0 blocks. ==8144== still reachable: 749,586 bytes in 27,938 blocks. ==8144== suppressed: 0 bytes in 0 blocks. ==8144== Reachable blocks (those to which a pointer was found) are not shown. ==8144== To see them, rerun with: --leak-check=full --show-reachable=yes Segmentation fault
participants (4)
-
Alan DeKok -
Chris Parker -
Geoffroy Arnoud -
Kevin Bonner