Problem with custom accounting module.

Chaigneau, Nicolas nicolas.chaigneau at
Tue Apr 22 14:45:08 CEST 2014

I've stumbled onto this also.

Suddenly my server started crashing.
So I checked what I added recently. Removed stuff, until there was almost nothing left in the module, but still it crashed (on "request->packet->anything").

And then I noticed someone had changed the build procedure, adding "--enable-developer" to the FreeRADIUS build.
(module wasn't built with "-DNDEBUG").

Since several (at least two !) people have had this problem, maybe something could be done.

Perhaps adding a public function in FreeRADIUS, which would allow to check if it was built or not with "NDEBUG" ?
This would allow a module, upon instantiate, to check that its build is consistent with the server build, and if not complain and return "fail".

What do you think ?

> On 21 Apr 2014, at 14:52, Bill Schoolfield <bill at> wrote:
> > ...and this is probably the culprit (in radiusd.h):
> >
> > struct auth_req {
> > #ifndef NDEBUG
> >        uint32_t                magic; /* for debugging only */
> > #endif
> > ...
> >
> > Moral of the story when compiling freeradius source outside of its
> source tree/environment, make sure this define is consistent for all
> sources.
> Yeah i've bitched about this before. NDEBUG should be included in
> features.h really, but Alan had objections.
> Arran Cudbard-Bell <a.cudbardb at>
> FreeRADIUS Development Team
> FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

More information about the Freeradius-Devel mailing list