From owner-freebsd-current@FreeBSD.ORG Sat May 19 20:20:26 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 759CF16A468 for ; Sat, 19 May 2007 20:20:26 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (smtp2.utsp.utwente.nl [130.89.2.9]) by mx1.freebsd.org (Postfix) with ESMTP id E0ECB13C455 for ; Sat, 19 May 2007 20:20:25 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from nox.student.utwente.nl (nox.student.utwente.nl [130.89.165.91]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id l4JJpYox016420; Sat, 19 May 2007 21:51:35 +0200 From: Pieter de Goeje To: freebsd-current@freebsd.org Date: Sat, 19 May 2007 21:51:34 +0200 User-Agent: KMail/1.9.6 References: <299DD8FD-0E7A-4E3D-9902-2C7FE45AA7BC@lerctr.org> <20070519143105.65072348@kan.dnsalias.net> <9F2A10A0-2B58-4BE4-8DD0-9D7811B6BCE6@lerctr.org> In-Reply-To: <9F2A10A0-2B58-4BE4-8DD0-9D7811B6BCE6@lerctr.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705192151.34547.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact helpdesk@ITBE.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: Larry Rosenman Subject: Re: PINE: SIG 6 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 May 2007 20:20:26 -0000 On Saturday 19 May 2007, Larry Rosenman wrote: > On May 19, 2007, at 1:31 PM, Alexander Kabaev wrote: > > On Sat, 19 May 2007 13:20:06 -0500 > > > > Larry Rosenman wrote: > >>> This core is useless. You need need debug symbols in libc and > >>> libssl. > >> > >> How can I enable the debug symbols for libc and libssl/libcrypto? > >> > >> LER > > > > The usual way. > > > > cd /usr/src/lib/lib > > CFLAGS="-O -g" STRIP="" sudo make clean all install > > > > cd /usr/src/secure/lib/libssl > > CFLAGS="-O -g" STRIP="" sudo make clean all install > > > > -- > > Alexander Kabaev > > Here's the new backtrace (I recompiled pine with -g as well): > #0 0x00000008011da3ec in kill () at kill.S:2 > 2 RSYSCALL(kill) > (gdb) bt > #0 0x00000008011da3ec in kill () at kill.S:2 > #1 0x00000008011da391 in __raise (s=6) at /usr/src/lib/libc/gen/ > raise.c:46 > #2 0x00000008011d927e in abort () at /usr/src/lib/libc/stdlib/ > abort.c:65 > #3 0x0000000000556289 in coredump () at os.c:781 > #4 0x0000000000504462 in panic ( > message=0x7fffffffade0 "Received abort signal(sig=?)") at pine.c: > 4366 > #5 0x0000000000532df2 in auger_in_signal () at signals.c:242 > #6 > #7 0x0000000800d4374d in ssl3_send_client_key_exchange (s=0x80154e180) > at /usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/ > s3_clnt.c:1845 > #8 0x0000000800d46420 in ssl3_connect (s=0x80154e180) > at /usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/ > s3_clnt.c:327 > #9 0x0000000800d5026b in ssl3_write_bytes (s=0x80154e180, type=23, > buf_=Variable "buf_" is not available. > ) > at /usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/ > s3_pkt.c:526 > #10 0x0000000800d56628 in ssl3_write (s=0x80154e180, buf=0x7275d3, > len=0) > at /usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/ > s3_lib.c:2327 > #11 0x0000000800d4d19f in SSL_write (s=Variable "s" is not available. > ) > at /usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/ > ssl_lib.c:903 > #12 0x0000000000597c1a in ssl_start_work () > #13 0x00000000005978b9 in ssl_start () > #14 0x00000000005c3a87 in smtp_open_full () > #15 0x00000000005284c8 in call_mailer (header=0x7fffffffdd40, > body=0x80152c080, alt_smtp_servers=0x0) at send.c:7118 > ---Type to continue, or q to quit--- > #16 0x000000000052cf34 in pine_send (outgoing=0x801434150, > body=0x7fffffffe328, editor_title=Variable "editor_title" is not > available. > ) at send.c:5141 > #17 0x000000000052e6ee in compose_mail (given_to=0x0, fcc_arg=0x0, > role_arg=0x0, attach=0x0, inc_text_getc=0) at send.c:984 > #18 0x000000000052e9b8 in compose_screen (pine_state=0x801401000) at > send.c:335 > #19 0x000000000050f385 in main (argc=1, argv=0x7fffffffec90) at > pine.c:1342 > Current language: auto; currently asm > (gdb) I believe libssl is broken if not compiled with -DOPENSSL_NO_DH. Gcc will warn that the program will abort if the code reaches any call to DHparams_dup() when compiling libssl. ssl3_send_client_key_exchange calls this (macro) at s3_clnt.c:1856. There are other places too. - Pieter de Goeje