<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000066">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Alan,<br>
<br>
Could this be some sort of a compiler optimization that may be causing
this? May be some memory barrier is required?<br>
<br>
Padam<br>
</font></font><br>
Alan DeKok wrote:
<blockquote cite="mid:4B03CCFC.4040306@deployingradius.com" type="cite">
<pre wrap="">fabiana marvani wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Why is not there a protection for "null pointer" to avoid this kind of
problem?
</pre>
</blockquote>
<pre wrap=""><!---->
Because the design of the server means that this crash *should* be
impossible.
The request packet has been placed in a hash table. The crash comes
because the request data structure is still in the hash, but the request
packet has been freed. This should *not* happen.
And reading src/main/event.c, there are only 3-4 locations in the code
that reads/writes "request->packet". i.e. it FIRST removes the request
from the hash, and THEN frees the packet. It's always in this order,
and always done in the main thread.
So I have no idea why this is happening...
Alan DeKok.
-
List info/subscribe/unsubscribe? See <a class="moz-txt-link-freetext" href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</a>
</pre>
</blockquote>
</body>
</html>