Hello!  Am i right here?
It's actually hard to believe the error is on the OpenSSL side,
and i definetely should look deeper before sending this, but on
the other hand this is so deep down in the OpenSSL code...

  ?0[steffen@sherwood src]$ openssl version
  OpenSSL 1.0.1e 11 Feb 2013
  ?0[steffen@sherwood src]$ otool -L ~/usr/bin/s-nail                           
                                                      
  /Users/steffen/usr/bin/s-nail:
    /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 
7.0.0)
    /Users/steffen/usr/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, 
current version 1.0.0)
    /Users/steffen/usr/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, 
current version 1.0.0)
    /Users/steffen/usr/lib/libidn.11.dylib (compatibility version 18.0.0, 
current version 18.10.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 
125.2.11)
  ?0[steffen@sherwood src]$ ll ~/usr/lib/*ssl*
     4 lrwxrwxr-x  1 steffen  staff      18 15 Feb  2013 
/Users/steffen/usr/lib/libssl.dylib@ -> libssl.1.0.0.dylib
   596 -rw-r--r--  1 steffen  staff  609480 15 Feb  2013 
/Users/steffen/usr/lib/libssl.a
   444 -r-xr-xr-x  1 steffen  staff  452952 15 Feb  2013 
/Users/steffen/usr/lib/libssl.1.0.0.dylib*

...

  T1135 OK Returned to authenticated state. (Success)
  >>> T1136 LOGOUT
  * BYE LOGOUT Requested
  s-nail(20015) malloc: *** error for object 0x1004beb00: pointer being freed 
was not allocated
  *** set a breakpoint in malloc_error_break to debug

  Program received signal SIGABRT, Aborted.
  0x00007fff824df0b6 in __kill ()
  (gdb) bt
  #0  0x00007fff824df0b6 in __kill ()
  #1  0x00007fff8257f9f6 in abort ()
  #2  0x00007fff82497195 in free ()
  #3  0x00000001000f61f5 in CRYPTO_free ()
  #4  0x000000010019bcdc in ASN1_primitive_free ()
  #5  0x000000010019c0bc in ASN1_template_free ()
  #6  0x000000010019bfbf in asn1_item_combine_free ()
  #7  0x000000010019c0bc in ASN1_template_free ()
  #8  0x000000010019bfbf in asn1_item_combine_free ()
  #9  0x000000010019c0f7 in ASN1_item_free ()
  #10 0x00000001000b7b80 in SSL_SESSION_free ()
  #11 0x00000001000b49e5 in SSL_free ()
  #12 0x0000000100014519 in sclose ()
->
  #ifdef HAVE_OPENSSL
      if (sp->s_use_ssl) {
        sp->s_use_ssl = 0;
        SSL_shutdown(sp->s_ssl);
        SSL_free(sp->s_ssl);
        sp->s_ssl = NULL;
        SSL_CTX_free(sp->s_ctx);
        sp->s_ctx = NULL;
      }
  #endif
<-
  #13 0x000000010001c46e in imap_exit ()
  #14 0x000000010001bd10 in imap_quit ()
  warning: Could not open object file: "/Users/steffen/src/nail.git/quit.o": No 
such file or directory
  warning: Couldn't open object file '/Users/steffen/src/nail.git/quit.o'
  #15 0x000000010003daed in quit ()
  #16 0x00000001000274ea in setfile ()
  #17 0x000000010000cd90 in cfile ()
  #18 0x0000000100028fb8 in execute ()
  #19 0x00000001000286ed in commands ()
  #20 0x000000010002fd6b in main ()
  (gdb) ?

I hate debuggers and thus i am somewhat lost at this point, but if
there is something i can do, please let me know.
Thank you and ciao,

--steffen
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to