radiusplugin-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Radiusplugin-devel] Segmentation fault bug detected and fixed...


From: Ralf
Subject: Re: [Radiusplugin-devel] Segmentation fault bug detected and fixed...
Date: Sat, 26 Nov 2011 09:14:53 +0100
User-agent: KMail/4.7.2 (Linux/3.0.0-13-generic-pae; KDE/4.7.2; i686; ; )

Hi,

which version of the plugin did you use? 

The current CVS should avoid such a problem. But maybe an additional check 
have to be done in accountingonly=true mode .

Regards,
Ralf

Am Dienstag, 1. November 2011, 16:53:33 schrieb Sameh Shaker:
> Dears,
> When the plugin is in accountingonly=true mode, closing openvpn will cause
> a segmentation fault causing all sorts of accounting loss, and NULL end
> time for sessions ...
> 
> When it's in accounting only mode *context->getThread() would always return
> 0 causing a segmentation fault on the call
> pthread_join(*context->getThread(),NULL) in radiusplugin.cpp ...
> 
> So a simple dirty workaround was to the following :
> 
> radiusplugin.cpp:682
> 
>         //wait for the thread to exit
>             if (*context->getThread()!=0){
>                 pthread_join(*context->getThread(),NULL);
>                 pthread_cond_destroy(context->getCondSend( ));
>                 pthread_cond_destroy(context->getCondRecv( ));
>                 pthread_mutex_destroy(context->getMutexSend());
>                 pthread_mutex_destroy(context->getMutexRecv());
>             }
> 
> Just did the trick, and now openvpn closes cleanly, closing all accounting
> sessions....



reply via email to

[Prev in Thread] Current Thread [Next in Thread]