Segmentation fault when processing SNMP

Geoffroy Arnoud garnoud at yahoo.co.uk
Tue Feb 6 09:41:30 CET 2007


I recompiled with --enable-developer.

Here is GDB output

[garnoud at 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



More information about the Freeradius-Devel mailing list