From owner-freebsd-current@FreeBSD.ORG Sat May 19 21:00:32 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 E917F16A468 for ; Sat, 19 May 2007 21:00:31 +0000 (UTC) (envelope-from antoine@peanut.dreadbsd.org) Received: from peanut.dreadbsd.org (peanut.dreadbsd.org [82.67.196.50]) by mx1.freebsd.org (Postfix) with ESMTP id 59E9D13C447 for ; Sat, 19 May 2007 21:00:30 +0000 (UTC) (envelope-from antoine@peanut.dreadbsd.org) Received: from peanut.dreadbsd.org (localhost [127.0.0.1]) by peanut.dreadbsd.org (8.14.1/8.14.1) with ESMTP id l4JKf9oQ014628; Sat, 19 May 2007 22:41:09 +0200 (CEST) (envelope-from antoine@peanut.dreadbsd.org) Received: (from antoine@localhost) by peanut.dreadbsd.org (8.14.1/8.14.1/Submit) id l4JKf8gA014627; Sat, 19 May 2007 22:41:08 +0200 (CEST) (envelope-from antoine) From: Antoine Brodin To: Larry Rosenman Message-Id: <20070519224108.85b7410c.antoine.brodin@laposte.net> In-Reply-To: <9F2A10A0-2B58-4BE4-8DD0-9D7811B6BCE6@lerctr.org> References: <299DD8FD-0E7A-4E3D-9902-2C7FE45AA7BC@lerctr.org> <20070519141503.07e94a36@kan.dnsalias.net> <20070519143105.65072348@kan.dnsalias.net> <9F2A10A0-2B58-4BE4-8DD0-9D7811B6BCE6@lerctr.org> X-Mailer: Sylpheed 2.4.0 (GTK+ 2.10.12; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org 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: , Date: Sat, 19 May 2007 21:00:32 -0000 X-Original-Date: Sat, 19 May 2007 22:41:08 +0200 X-List-Received-Date: Sat, 19 May 2007 21:00:32 -0000 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) There are a few warnings during libssl compilation with gcc 4.2: %%% cc -O2 -pipe -DTERMIOS -DANSI_SOURCE -I/src/secure/lib/libssl/../../../crypto/openssl -I/src/secure/lib/libssl/../../../crypto/openssl/crypto -I/obj/src/secure/lib/libssl -DOPENSSL_THREADS -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_IDEA -DL_ENDIAN -DNO_IDEA -c /src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_clnt.c /src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_clnt.c: In function 'ssl3_send_client_key_exchange': /src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_clnt.c:1856: warning: function called through a non-compatible type /src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_clnt.c:1856: note: if this code is reached, the program will abort cc -O2 -pipe -DTERMIOS -DANSI_SOURCE -I/src/secure/lib/libssl/../../../crypto/openssl -I/src/secure/lib/libssl/../../../crypto/openssl/crypto -I/obj/src/secure/lib/libssl -DOPENSSL_THREADS -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_IDEA -DL_ENDIAN -DNO_IDEA -c /src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_enc.c cc -O2 -pipe -DTERMIOS -DANSI_SOURCE -I/src/secure/lib/libssl/../../../crypto/openssl -I/src/secure/lib/libssl/../../../crypto/openssl/crypto -I/obj/src/secure/lib/libssl -DOPENSSL_THREADS -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_IDEA -DL_ENDIAN -DNO_IDEA -c /src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_lib.c /src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_lib.c: In function 'ssl3_ctrl': /src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_lib.c:1756: warning: function called through a non-compatible type /src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_lib.c:1756: note: if this code is reached, the program will abort /src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_lib.c: In function 'ssl3_ctx_ctrl': /src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_lib.c:1937: warning: function called through a non-compatible type /src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_lib.c:1937: note: if this code is reached, the program will abort %%% The "if this code is reached, the program will abort" is perhaps related to the SIGABRT. Cheers, Antoine