radiusd crashes. ASSERT FAILED src/main/threads.c[794]

Alan DeKok aland at deployingradius.com
Thu May 22 22:06:20 UTC 2025


On May 21, 2025, at 7:23 AM, Sergei Kodentsev <sergk at ic.vrn.ru> wrote:
> 
> On 21.05.2025 15:14, Alan DeKok wrote:
>> Hm... what's the rest of the debug log?
> 
> Wed May 21 12:15:21 2025 : Error: (1707753) Ignoring duplicate packet from client dhcp port 67 - ID: 45241580 due to unfinished request in component post-auth module dhcplog
> Wed May 21 12:15:21 2025 : Error: (1707764) Ignoring duplicate packet from client dhcp port 67 - ID: 336510328 due to unfinished request in component post-auth module dhcpstaticnd

  I'll take a look and see if I can reproduce this.  But the underlying issue is that those modules are slow, and are blocking the server.

  It's possible to update the server so it doesn't hit this assertion, but the server will still be unable to make progress.  It won't process packets, and it won't respond to packets.

  The only fix is to make sure that modules do not block the server.

> Wed May 21 12:15:21 2025 : WARNING: (1707865) WARNING: Module dhcpstaticnd(rlm_sql) became unblocked
...
> Wed May 21 12:15:21 2025 : WARNING: (1707913) WARNING: Module dhcproute(rlm_sql) became unblocked
> Wed May 21 12:15:21 2025 : Error: (1707919) Ignoring duplicate packet from client dhcp port 67 - ID: 632528912 due to unfinished request in component post-auth module dhcpstaticnd

 The SQL databases which these modules are querying is taking 5-30 seconds to respond.  No amount of poking FreeRADIUS will make the SQL database faster.

  Fix the SQL database so that it replies within a second, ideally much less.  FreeRADIUS will then be able to operate normally.

  Alan DeKok.



More information about the Freeradius-Users mailing list