segfault: Re: [ANN] Release 3.0.4 rc0

Arran Cudbard-Bell a.cudbardb at freeradius.org
Mon May 26 21:31:36 CEST 2014


On 26 May 2014, at 20:03, Polish <pavel.polacek at ujep.cz> wrote:

>  Hello,
> 
> I tried 3.0.4 rc0 radius/tls function. FR segfault during new tls
> connection to server.
> 
> 136             ssn->ctx = conf->ctx;
> (gdb) 138             SSL_CTX_set_mode(ssn->ctx,
> SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER | SSL_MODE_AUTO_RETRY);
> (gdb) 140             ssn->ssl = SSL_new(ssn->ctx);
> (gdb) 147             SSL_set_msg_callback(ssn->ssl, cbtls_msg);
> (gdb) 140             ssn->ssl = SSL_new(ssn->ctx);
> (gdb) 147             SSL_set_msg_callback(ssn->ssl, cbtls_msg);
> (gdb) 148             SSL_set_msg_callback_arg(ssn->ssl, ssn);
> (gdb) 149             SSL_set_info_callback(ssn->ssl, cbtls_info);
> (gdb) 154             DEBUG2("Requiring Server certificate");
> (gdb) Requiring Server certificate
> 157             SSL_set_verify(ssn->ssl, verify_mode, cbtls_verify);
> (gdb) 159             SSL_set_ex_data(ssn->ssl, FR_TLS_EX_INDEX_CONF, (void
> *)conf);
> (gdb) 160             SSL_set_ex_data(ssn->ssl, FR_TLS_EX_INDEX_SSN, (void
> *)ssn);
> (gdb) 161             SSL_set_fd(ssn->ssl, fd);
> (gdb) 162             if (SSL_connect(ssn->ssl) <= 0) {
> (gdb)
> 
> Program received signal SIGSEGV, Segmentation fault.
> radlog_request (type=type at entry=L_DBG, lvl=lvl at entry=L_DBG_LVL_2,
> request=request at entry=0x0, msg=0x444852 "%s: %s") at src/main/log.c:701
> 701             if (request->log.func == NULL) return;
> (gdb) [Thread 0x7fffeecd4700 (LWP 32743) exited]
> [Thread 0x7fffef4d5700 (LWP 32742) exited]
> [Thread 0x7fffefcd6700 (LWP 32741) exited]
> [Thread 0x7ffff04d7700 (LWP 32740) exited]
> [Thread 0x7ffff0cd8700 (LWP 32739) exited]
> 
> Program terminated with signal SIGSEGV, Segmentation fault.
> The program no longer exists.

Could you try with the latest v3.0.x HEAD and provide the backtrace please.

Nothing in the area of code you've included calls radlog_request.

-Arran

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS Development Team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 881 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140526/b73f2517/attachment.pgp>


More information about the Freeradius-Users mailing list