rlm_dbm segfault debug

Alan DeKok aland at deployingradius.com
Mon Jan 21 08:48:43 CET 2008


Patrick Medina wrote:
> Newbie and non-programmer here, though I've been a
> user of this very useful program for a year now
> (currently on v.2.0.0, CentOS 4.6, x86_64). I'm trying
> to get a MAC and SSID -based system to work with
> rlm_dbm.  The system already works with the "users"
> file as follows:

  Is there a pressing need to use rlm_dbm?  In 2.0.0, the "users" file
should scale to 100's of 1000's of users.  (i.e. I've tested it at
that.)  It takes a few seconds to start the server, but it's just as
fast as rlm_dbm would be.

> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 182915782400 (LWP 23734)]
> 0x000000000041d3c7 in request_data_get (request=0x0,
> unique_ptr=0x0, unique_int=-1379995904) at util.c:145
> 145             for (last = &(request->data); *last !=
> NULL; last = &((*last)->next)) {

  OK, that's a bug.

> I've been scouring the documentation and list, trying
> various running and compiling configuration options,
> all to no avail.  Moreover, the same segfault happens
> with v.1.1.7, though I haven't run gdb on that.

  I've committed a fix to rlm_dbm in CVS.  Check the code out from CVS,
and install that.  It should be OK.

  Alan DeKok.



More information about the Freeradius-Users mailing list