FreeRADIUS 1.0.4: SEGMENTATION FAULT

Alan DeKok aland at ox.org
Thu Aug 25 02:42:09 CEST 2005


Richard Cotrina <rcc at speedy.net.pe> wrote:
> (gdb) display mysql_sock
> 1: mysql_sock = (rlm_sql_mysql_sock *) 0x5f6c7173

  That's bad.  That's very bad.  It's the ASCII string "sql_",
interpreted as a pointer on an x86 machine.  No wonder it crashes.

  The short answer is that there appears to be some memory corruption.
Can you print out the contents of "sqlsocket", too?  Both the
structure contents, and the *hex* contents of that area of memory.

  It looks like the sqlsocket pointer that's being passed is bad.

  Alan DeKok.




More information about the Freeradius-Users mailing list