Re: need help to debug SIGSEGV in ssl3_get_message

2014-09-25 Thread Marcus Meissner
On Thu, Sep 25, 2014 at 02:41:56PM +0200, Andy Polyakov wrote: > >>> >>> in that case it crashes here: > >>> >>> > >>> >>> if (s->msg_callback) > >>> >>> s->msg_callback(0, s->version, SSL3_RT_HANDSHAKE, > >>> >>> s->init_buf->data, (size_t)s->init_num + 4, s, s->msg_callbac

Re: need help to debug SIGSEGV in ssl3_get_message

2014-09-25 Thread Andy Polyakov
>>> >>> in that case it crashes here: >>> >>> >>> >>> if (s->msg_callback) >>> >>> s->msg_callback(0, s->version, SSL3_RT_HANDSHAKE, >>> >>> s->init_buf->data, (size_t)s->init_num + 4, s, s->msg_callback_arg); >>> >>> >>> >> >>> >> So is the pointer to the callback wrong, or

Re: need help to debug SIGSEGV in ssl3_get_message

2014-09-25 Thread Michael Menge
Quoting Martin Simmons : On Thu, 25 Sep 2014 11:24:36 +0200, Michael Menge said: Quoting Andy Polyakov : >>> in that case it crashes here: >>> >>> if (s->msg_callback) >>> s->msg_callback(0, s->version, SSL3_RT_HANDSHAKE, >>> s->init_buf->data, (size_t)s->init_num + 4,

Re: need help to debug SIGSEGV in ssl3_get_message

2014-09-25 Thread Martin Simmons
> On Thu, 25 Sep 2014 11:24:36 +0200, Michael Menge said: > > Quoting Andy Polyakov : > > >>> in that case it crashes here: > >>> > >>> if (s->msg_callback) > >>> s->msg_callback(0, s->version, SSL3_RT_HANDSHAKE, > >>> s->init_buf->data, (size_t)s->init_num + 4, s, s->

Re: need help to debug SIGSEGV in ssl3_get_message

2014-09-25 Thread Michael Menge
Quoting Andy Polyakov : in that case it crashes here: if (s->msg_callback) s->msg_callback(0, s->version, SSL3_RT_HANDSHAKE, s->init_buf->data, (size_t)s->init_num + 4, s, s->msg_callback_arg); So is the pointer to the callback wrong, or is the SIGSEGV in the called f

Re: need help to debug SIGSEGV in ssl3_get_message

2014-09-25 Thread Andy Polyakov
>> in that case it crashes here: >> >> if (s->msg_callback) >> s->msg_callback(0, s->version, SSL3_RT_HANDSHAKE, >> s->init_buf->data, (size_t)s->init_num + 4, s, s->msg_callback_arg); >> > > So is the pointer to the callback wrong, or is the SIGSEGV in the > called functio

Re: need help to debug SIGSEGV in ssl3_get_message

2014-09-25 Thread Michael Menge
Marcus and Andy, thank you very much for your help so far. I have a few more questions, see below. Quoting Marcus Meissner : On Wed, Sep 24, 2014 at 01:13:51PM +0200, Michael Menge wrote: Quoting Matt Caswell : >On 24 September 2014 10:03, Michael Menge < >michael.me...@zdv.uni-tuebingen.de>

Re: need help to debug SIGSEGV in ssl3_get_message

2014-09-24 Thread Marcus Meissner
On Wed, Sep 24, 2014 at 01:13:51PM +0200, Michael Menge wrote: > Quoting Matt Caswell : > > >On 24 September 2014 10:03, Michael Menge < > >michael.me...@zdv.uni-tuebingen.de> wrote: > > > >>Hi, > >> > >>Last week i asked on openssl-user Mailinglist about an SIGSEGV > >>in Cyrus-Imapd 2.4.17 which

Re: need help to debug SIGSEGV in ssl3_get_message

2014-09-24 Thread Michael Menge
Quoting Andy Polyakov : What OS/platform is this, and what version of OpenSSL? Also, run 'disass ssl3_get_message' at debugger prompt, advance to vicinity of address provided in back-trace, 0x7fe5a839334f in provided example, and send that page. I mean it's lesser point to send whole disas

Re: need help to debug SIGSEGV in ssl3_get_message

2014-09-24 Thread Andy Polyakov
>>> What OS/platform is this, and what version of OpenSSL? >> >> Also, run 'disass ssl3_get_message' at debugger prompt, advance to >> vicinity of address provided in back-trace, 0x7fe5a839334f in >> provided example, and send that page. I mean it's lesser point to send >> whole disass output,

Re: need help to debug SIGSEGV in ssl3_get_message

2014-09-24 Thread Michael Menge
Quoting Andy Polyakov : Last week i asked on openssl-user Mailinglist about an SIGSEGV in Cyrus-Imapd 2.4.17 which seems to be received in ssl3_get_message or a function called by ssl3_get_message, but received no reply. I asked on the cyrus mailinglists as well, but the develop

Re: need help to debug SIGSEGV in ssl3_get_message

2014-09-24 Thread Michael Menge
Quoting Matt Caswell : On 24 September 2014 10:03, Michael Menge < michael.me...@zdv.uni-tuebingen.de> wrote: Hi, Last week i asked on openssl-user Mailinglist about an SIGSEGV in Cyrus-Imapd 2.4.17 which seems to be received in ssl3_get_message or a function called by ssl3_get_message, but r

Re: need help to debug SIGSEGV in ssl3_get_message

2014-09-24 Thread Andy Polyakov
> Last week i asked on openssl-user Mailinglist about an SIGSEGV > in Cyrus-Imapd 2.4.17 which seems to be received in ssl3_get_message > or a function called by ssl3_get_message, but received no reply. > > I asked on the cyrus mailinglists as well, but the developer have no >

Re: need help to debug SIGSEGV in ssl3_get_message

2014-09-24 Thread Matt Caswell
On 24 September 2014 10:03, Michael Menge < michael.me...@zdv.uni-tuebingen.de> wrote: > Hi, > > Last week i asked on openssl-user Mailinglist about an SIGSEGV > in Cyrus-Imapd 2.4.17 which seems to be received in ssl3_get_message > or a function called by ssl3_get_message, but received no reply.

need help to debug SIGSEGV in ssl3_get_message

2014-09-24 Thread Michael Menge
Hi, Last week i asked on openssl-user Mailinglist about an SIGSEGV in Cyrus-Imapd 2.4.17 which seems to be received in ssl3_get_message or a function called by ssl3_get_message, but received no reply. I asked on the cyrus mailinglists as well, but the developer have no idea what could cause this