Segmentatin fault when running radiusd -X

Felix Brack fb at ltec.ch
Thu Mar 15 10:40:09 CET 2007


Hello,

When running 'radiusd -X' (version 1.1.5) it ends with a
segmentation fault. I did not make any changes to the default
configuration files, just tried to execute the steps in section 2 of
the 'INSTALL' file.

Here is the output of 'radiusd -X':
-----------------------------------

Starting - reading configuration files ...
reread_config:  reading radiusd.conf
Config:   including file: /usr/local/etc/raddb/proxy.conf
Config:   including file: /usr/local/etc/raddb/clients.conf
Config:   including file: /usr/local/etc/raddb/snmp.conf
Config:   including file: /usr/local/etc/raddb/eap.conf
Config:   including file: /usr/local/etc/raddb/sql.conf
 main: prefix = "/usr/local"
 main: localstatedir = "/usr/local/var"
 main: logdir = "/usr/local/var/log/radius"
 main: libdir = "/usr/local/lib"
 main: radacctdir = "/usr/local/var/log/radius/radacct"
 main: hostname_lookups = no
 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 = no
 main: log_stripped_names = no
 main: log_file = "/usr/local/var/log/radius/radius.log"
 main: log_auth = no
 main: log_auth_badpass = no
 main: log_auth_goodpass = no
 main: pidfile = "/usr/local/var/run/radiusd/radiusd.pid"
 main: user = "(null)"
 main: group = "(null)"
 main: usercollide = no
 main: lower_user = "no"
 main: lower_pass = "no"
 main: nospace_user = "no"
 main: nospace_pass = "no"
 main: checkrad = "/usr/local/sbin/checkrad"
 main: proxy_requests = yes
 proxy: retry_delay = 5
 proxy: retry_count = 3
 proxy: synchronous = no
 proxy: default_fallback = yes
 proxy: dead_time = 120
 proxy: post_proxy_authorize = no
 proxy: wake_all_if_all_dead = no
 security: max_attributes = 200
 security: reject_delay = 1
 security: status_server = no
 main: debug_level = 0
read_config_files:  reading dictionary
read_config_files:  reading naslist
Using deprecated naslist file.  Support for this will go away soon.
read_config_files:  reading clients
read_config_files:  reading realms
radiusd:  entering modules setup
Module: Library search path is /usr/local/lib
Module: Loaded exec
 exec: wait = yes
 exec: program = "(null)"
 exec: input_pairs = "request"
Segmentation fault

-----------------------------------


The relevant output of 'strace radiusd -X' is
---------------------------------------------

write(1, "Module: Library search path is /"..., 46Module: Library search path is /usr/local/lib
) = 46
open("/usr/local/lib/rlm_exec.la", O_RDONLY) = 5
brk(0x8145000)                          = 0x8145000
fstat64(5, {st_mode=S_IFREG|0755, st_size=869, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
read(5, "# rlm_exec.la - a libtool librar"..., 4096) = 869
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0x40017000, 4096)                = 0
open("/etc/ld.so.cache", O_RDONLY)      = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=25316, ...}) = 0
old_mmap(NULL, 25316, PROT_READ, MAP_PRIVATE, 5, 0) = 0x402f8000
close(5)                                = 0
open("/lib/i686/mmx/rlm_exec.a", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686/mmx", 0xbfffd9dc)     = -1 ENOENT (No such file or directory)
open("/lib/i686/rlm_exec.a", O_RDONLY)  = -1 ENOENT (No such file or directory)
stat64("/lib/i686", 0xbfffd9dc)         = -1 ENOENT (No such file or directory)
open("/lib/mmx/rlm_exec.a", O_RDONLY)   = -1 ENOENT (No such file or directory)
stat64("/lib/mmx", 0xbfffd9dc)          = -1 ENOENT (No such file or directory)
open("/lib/rlm_exec.a", O_RDONLY)       = -1 ENOENT (No such file or directory)
stat64("/lib", {st_mode=S_IFDIR|0755, st_size=1848, ...}) = 0
open("/usr/lib/i686/mmx/rlm_exec.a", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686/mmx", 0xbfffd9dc) = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/rlm_exec.a", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686", 0xbfffd9dc)     = -1 ENOENT (No such file or directory)
open("/usr/lib/mmx/rlm_exec.a", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/mmx", 0xbfffd9dc)      = -1 ENOENT (No such file or directory)
open("/usr/lib/rlm_exec.a", O_RDONLY)   = -1 ENOENT (No such file or directory)
stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=11311, ...}) = 0
munmap(0x402f8000, 25316)               = 0
open("/usr/local/lib/rlm_exec-1.1.5.so", O_RDONLY) = 5
read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \n\0\000"..., 1024) = 1024
fstat64(5, {st_mode=S_IFREG|0755, st_size=46365, ...}) = 0
old_mmap(NULL, 10132, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 0x40017000
mprotect(0x40019000, 1940, PROT_NONE)   = 0
old_mmap(0x40019000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 5, 0x1000) = 0x40019000
close(5)                                = 0
time(NULL)                              = 1173950765
write(1, "Module: Loaded exec \n", 21Module: Loaded exec
)  = 21
time(NULL)                              = 1173950765
write(1, " exec: wait = yes\n", 18 exec: wait = yes
)     = 18
time(NULL)                              = 1173950765
write(1, " exec: program = \"(null)\"\n", 26 exec: program = "(null)"
) = 26
time(NULL)                              = 1173950765
write(1, " exec: input_pairs = \"request\"\n", 31 exec: input_pairs = "request"
) = 31
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

-----------------------------------


'ldd /usr/local/lib/rlm_exec-1.1.5.so' returns:
-----------------------------------------------

libradius-1.1.5.so => /usr/local/lib/libradius-1.1.5.so (0x4000b000)
libnsl.so.1 => /lib/libnsl.so.1 (0x40021000)
libresolv.so.2 => /lib/libresolv.so.2 (0x40037000)
libpthread.so.0 => /lib/libpthread.so.0 (0x40049000)
libc.so.6 => /lib/libc.so.6 (0x4005f000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x40186000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

-----------------------------------

I am not too lazy to modify the configuration files but I thought it
would be best to run with a default set; is this wrong? Should I first
modify the configuration files and then try again?

many thanks, Felix




More information about the Freeradius-Users mailing list