On Sat, Dec 05, 2009 at 09:45:29AM +0100, Tollef Fog Heen wrote:
> Package: freeradius
> Version: 2.0.4+dfsg-8~lenny3
> Severity: normal
> 
> I'm seeing periodical segfaults in rlm_passwd on lenny.  The backtrace
> is as follows:
> 
> (gdb) c
> Continuing.
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x42045950 (LWP 21769)]
> 0x00007fdeaa28cadb in _IO_file_close_it () from /lib/libc.so.6
> (gdb) bt
> #0  0x00007fdeaa28cadb in _IO_file_close_it () from /lib/libc.so.6
> #1  0x00007fdeaa27fdd0 in fclose () from /lib/libc.so.6
> #2  0x00007fdea3f96197 in get_next (name=0x1ca4a44 "sjoerd", ht=0x1c8eba0) at 
> rlm_passwd.c:288
> #3  0x00007fdea3f96353 in passwd_map (instance=0x1c8eab0, request=0x1ca4f10) 
> at rlm_passwd.c:543
> #4  0x000000000041402a in modcall (component=1, c=<value optimized out>, 
> request=0x1ca4f10) at modcall.c:265
> #5  0x0000000000411951 in indexed_modcall (comp=1, idx=<value optimized out>, 
> request=0x1ca4f10) at modules.c:446
> #6  0x00000000004080c6 in rad_authenticate (request=0x1ca4f10) at auth.c:546
> #7  0x000000000041f4e1 in radius_handle_request (request=0x1ca4f10, 
> fun=0x407fd0 <rad_authenticate>) at event.c:2754
> #8  0x0000000000418924 in request_handler_thread (arg=<value optimized out>) 
> at threads.c:478
> #9  0x00007fdeaac82fc7 in start_thread () from /lib/libpthread.so.0
> #10 0x00007fdeaa2eb5ad in clone () from /lib/libc.so.6
> #11 0x0000000000000000 in ?? ()
> (gdb) up
> #1  0x00007fdeaa27fdd0 in fclose () from /lib/libc.so.6
> (gdb) 
> #2  0x00007fdea3f96197 in get_next (name=0x1ca4a44 "sjoerd", ht=0x1c8eba0) at 
> rlm_passwd.c:288
> 288     rlm_passwd.c: No such file or directory.
>         in rlm_passwd.c
> (gdb) print *ht
> $1 = {tablesize = 0, keyfield = 0, nfields = 2, islist = 0, ignorenis = 0, 
> filename = 0x1c8e2c0 "/var/lib/pglistener/apache", 
>   table = 0x0, last_found = 0x0, 
>   buffer = "<stuff from passwd file>\0' <repeats XXX times>, fp = 0x0, 
> delimiter = 58 ':'}
> (gdb) 
> 
> (As to the version number, I have added a yubikey module, but rlm_passwd
> should be untouched.)

It doesn't seem to be particularly different in the latest version:

% git diff release_2_0_4 HEAD src/modules/rlm_passwd | diffstat
 rlm_passwd.c |   17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)
% git diff release_2_0_4 HEAD src/modules/rlm_passwd | grep @@
@@ -493,7 +493,7 @@ static int passwd_detach (void *instance) {
@@ -505,10 +505,10 @@ static void addresult (struct passwd_instance * inst, 
VALUE_PAIR ** vp, struct m
@@ -530,6 +530,11 @@ static int passwd_map(void *instance, REQUEST *request)
@@ -537,9 +542,9 @@ static int passwd_map(void *instance, REQUEST *request)

I'm forwarding this to the upstream author. Alan, does this sound
familiar?

-- 
     2. That which causes joy or happiness.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to