From nobody@FreeBSD.org  Thu Feb  6 19:53:31 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 79647A80
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 Feb 2014 19:53:31 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 623F61DFA
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 Feb 2014 19:53:31 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id s16JrV6c039713
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 6 Feb 2014 19:53:31 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id s16JrVj6039712;
	Thu, 6 Feb 2014 19:53:31 GMT
	(envelope-from nobody)
Message-Id: <201402061953.s16JrVj6039712@oldred.freebsd.org>
Date: Thu, 6 Feb 2014 19:53:31 GMT
From: Yan Batyuto <yan.batuto@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: crash in libssl during connect (kopete via libqca-ossl)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         186517
>Category:       kern
>Synopsis:       [libssl] crash in libssl during connect (kopete via libqca-ossl)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 06 20:00:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Tue May 20 20:20:00 UTC 2014
>Originator:     Yan Batyuto
>Release:        10.0-STABLE r261494
>Organization:
>Environment:
FreeBSD home-rud 10.0-STABLE FreeBSD 10.0-STABLE #0 r261494: Wed Feb  5 22:47:05 MSK 2014     batuto@home-rud:/usr/home/obj/usr/home/src10svn/sys/HOMERUDx64  amd64

>Description:
Thread 4 (Thread 810406400 (LWP 101479/kopete)):
[KCrash Handler]
#8  0x0000000000000000 in ?? ()
#9  0x000000081deabb82 in tls1_mac (ssl=0x8104a0a80, 
    md=0x81d821018 "\2005&#9564;&)\024]&#9563;~w&#1062;&#1079;\033&#1048;s\"&#1070;\233&#1070;7&#1068;&#1084;\t\222\0178d\025\\q&#1088;&#1093;&#9555;\223\036&#1089;b\025&#1061;&#9571;&#1097;EJ[\1773&#1048;\216<&#1051;.Q\003&#9571;&#1078;k\203\202\231M&#1092;\222&#1083;c\2119\036&#1096;~)\0227b", send=1)
    at /usr/home/src10svn/secure/lib/libssl/../../../crypto/openssl/ssl/t1_enc.c:1033
#10 0x000000081debadf0 in do_ssl3_write (s=0x8104a0a80, type=22, buf=0x819e6f000 "\024", len=16, create_empty_fragment=0)
    at /usr/home/src10svn/secure/lib/libssl/../../../crypto/openssl/ssl/s3_pkt.c:808
#11 0x000000081deba720 in ssl3_write_bytes (s=0x8104a0a80, type=22, buf_=0x819e6f000, len=16) at /usr/home/src10svn/secure/lib/libssl/../../../crypto/openssl/ssl/s3_pkt.c:609
#12 0x000000081dec79e2 in ssl3_do_write (s=0x8104a0a80, type=22) at /usr/home/src10svn/secure/lib/libssl/../../../crypto/openssl/ssl/s3_both.c:132
#13 0x000000081dec7d61 in ssl3_send_finished (s=0x8104a0a80, a=4528, b=4529, sender=0x81dedc154 "client finished", slen=15)
    at /usr/home/src10svn/secure/lib/libssl/../../../crypto/openssl/ssl/s3_both.c:202
#14 0x000000081de83d56 in ssl3_connect (s=0x8104a0a80) at /usr/home/src10svn/secure/lib/libssl/../../../crypto/openssl/ssl/s3_clnt.c:508
#15 0x000000081deb4959 in SSL_connect (s=0x8104a0a80) at /usr/home/src10svn/secure/lib/libssl/../../../crypto/openssl/ssl/ssl_lib.c:949
#16 0x000000081dc3bf18 in opensslQCAPlugin::MyTLSContext::priv_handshake () from /usr/local/lib/qt4/plugins/crypto/libqca-ossl.so
#17 0x000000081dc3b1ed in opensslQCAPlugin::MyTLSContext::update () from /usr/local/lib/qt4/plugins/crypto/libqca-ossl.so
#18 0x000000080a87ac0b in QCA::TLS::Private::update () from /usr/local/lib/libqca.so.2
#19 0x000000080a87844d in QCA::TLS::writeIncoming () from /usr/local/lib/libqca.so.2
#20 0x000000081c851e29 in JabberClient::qt_metacall () from /usr/local/kde4/lib/kde4/kopete_jabber.so
#21 0x00000008050c07f2 in QMetaObject::activate () from /usr/local/lib/qt4/libQtCore.so.4
#22 0x00000008050c07f2 in QMetaObject::activate () from /usr/local/lib/qt4/libQtCore.so.4
#23 0x000000081c7c6056 in JabberClient::qt_metacall () from /usr/local/kde4/lib/kde4/kopete_jabber.so
#24 0x00000008050bc52e in QObject::event () from /usr/local/lib/qt4/libQtCore.so.4
#25 0x00000008058bb41b in QApplicationPrivate::notify_helper () from /usr/local/lib/qt4/libQtGui.so.4
#26 0x00000008058be0f8 in QApplication::notify () from /usr/local/lib/qt4/libQtGui.so.4
#27 0x00000008044560c0 in KApplication::notify () from /usr/local/kde4/lib/libkdeui.so.7
#28 0x00000008050a9515 in QCoreApplication::notifyInternal () from /usr/local/lib/qt4/libQtCore.so.4
#29 0x00000008050aa04b in QCoreApplicationPrivate::sendPostedEvents () from /usr/local/lib/qt4/libQtCore.so.4
#30 0x00000008050d62c8 in QEventDispatcherGlib::QEventDispatcherGlib () from /usr/local/lib/qt4/libQtCore.so.4
#31 0x000000080c0ba6f2 in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.0
#32 0x000000080c0baa93 in g_main_context_iterate () from /usr/local/lib/libglib-2.0.so.0
#33 0x000000080c0bab24 in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0
#34 0x00000008050d5a0e in QEventDispatcherGlib::processEvents () from /usr/local/lib/qt4/libQtCore.so.4
#35 0x000000080595aefd in QX11Info::isCompositingManagerRunning () from /usr/local/lib/qt4/libQtGui.so.4
#36 0x00000008050a6ae7 in QEventLoop::exec () from /usr/local/lib/qt4/libQtCore.so.4
#37 0x00000008050a9aad in QCoreApplication::exec () from /usr/local/lib/qt4/libQtCore.so.4
#38 0x0000000000416096 in ?? ()
#39 0x000000000041371f in ?? ()
#40 0x0000000800667000 in ?? ()
#41 0x0000000000000000 in ?? ()
>How-To-Repeat:
Install kde and kopete-4.10.5_1 (from ports or packages, source doesn't
matter), add GTalk account (talk.google.com:5223), try to connect to it.
Get immediate crash.
>Fix:


>Release-Note:
>Audit-Trail:

From: Raphael Kubo da Costa <rakuco@FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc: Yan Batyuto <yan.batuto@gmail.com>
Subject: Re: kern/186517: [libssl] crash in libssl during connect (kopete via libqca-ossl)
Date: Tue, 22 Apr 2014 05:15:10 -0300

 Hi,
 
 Have you been able to update your 10-STABLE checkout lately? This looks
 like
 https://rt.openssl.org/Ticket/Display.html?id=3201&user=guest&pass=guest
 which should have been fixed with the update to OpenSSL 1.0.1g.

From: "Yan V. Batyuto" <yan.batuto@gmail.com>
To: Raphael Kubo da Costa <rakuco@freebsd.org>
Cc: bug-followup@freebsd.org
Subject: Re: kern/186517: [libssl] crash in libssl during connect (kopete via libqca-ossl)
Date: Tue, 22 Apr 2014 12:40:49 +0400

 --001a11340566e0569904f79d931d
 Content-Type: text/plain; charset=UTF-8
 
 Hi!
 Yes, it looks very similar.
 I switched to "WITH_OPENSSL_PORT=yes" and kopete works ok with libssl from
 port.
 But I'll check kopete with system libssl as soon as I can.
 --001a11340566e0569904f79d931d--

From: "Yan V. Batyuto" <yan.batuto@gmail.com>
To: Raphael Kubo da Costa <rakuco@freebsd.org>
Cc: bug-followup@freebsd.org
Subject: Re: kern/186517: [libssl] crash in libssl during connect (kopete via libqca-ossl)
Date: Wed, 21 May 2014 00:10:06 +0400

 --001a113aac4a83258004f9da7869
 Content-Type: text/plain; charset=UTF-8
 
 Hi!
 Sorry for long delay.
 I recompiled all qt/kde stuff with system libssl and now all works ok.
 
 
 
 
 2014-04-22 12:40 GMT+04:00 Yan V. Batyuto <yan.batuto@gmail.com>:
 
 > Hi!
 > Yes, it looks very similar.
 > I switched to "WITH_OPENSSL_PORT=yes" and kopete works ok with libssl from
 > port.
 > But I'll check kopete with system libssl as soon as I can.
 >
 >
 >
 > 2014-04-22 12:15 GMT+04:00 Raphael Kubo da Costa <rakuco@freebsd.org>:
 >
 > Hi,
 >>
 >> Have you been able to update your 10-STABLE checkout lately? This looks
 >> like
 >> https://rt.openssl.org/Ticket/Display.html?id=3201&user=guest&pass=guest
 >> which should have been fixed with the update to OpenSSL 1.0.1g.
 >>
 >
 >
 
 --001a113aac4a83258004f9da7869
 Content-Type: text/html; charset=UTF-8
 Content-Transfer-Encoding: quoted-printable
 
 <div dir=3D"ltr"><div><div><div>Hi!<br>Sorry for long delay.<br></div>I rec=
 ompiled all qt/kde stuff with system libssl and now all works ok.<br></div>=
 <br></div><br></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_=
 quote">
 
 2014-04-22 12:40 GMT+04:00 Yan V. Batyuto <span dir=3D"ltr">&lt;<a href=3D"=
 mailto:yan.batuto@gmail.com" target=3D"_blank">yan.batuto@gmail.com</a>&gt;=
 </span>:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo=
 rder-left:1px #ccc solid;padding-left:1ex">
 
 <div dir=3D"ltr"><div><div>Hi!<br>Yes, it looks very similar.<br></div>I sw=
 itched to &quot;WITH_OPENSSL_PORT=3Dyes&quot; and kopete works ok with libs=
 sl from port. <br>But I&#39;ll check kopete with system libssl as soon as I=
  can.<br>
 
 
 </div><br></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quot=
 e">2014-04-22 12:15 GMT+04:00 Raphael Kubo da Costa <span dir=3D"ltr">&lt;<=
 a href=3D"mailto:rakuco@freebsd.org" target=3D"_blank">rakuco@freebsd.org</=
 a>&gt;</span>:<div>
 
 <div class=3D"h5"><br>
 <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
 x #ccc solid;padding-left:1ex">Hi,<br>
 <br>
 Have you been able to update your 10-STABLE checkout lately? This looks<br>
 like<br>
 <a href=3D"https://rt.openssl.org/Ticket/Display.html?id=3D3201&amp;user=3D=
 guest&amp;pass=3Dguest" target=3D"_blank">https://rt.openssl.org/Ticket/Dis=
 play.html?id=3D3201&amp;user=3Dguest&amp;pass=3Dguest</a><br>
 which should have been fixed with the update to OpenSSL 1.0.1g.<br>
 </blockquote></div></div></div><br></div>
 </blockquote></div><br></div>
 
 --001a113aac4a83258004f9da7869--
>Unformatted:
