From owner-freebsd-ports@freebsd.org Fri Sep 15 23:33:17 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8273EE11983 for ; Fri, 15 Sep 2017 23:33:17 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 525AA8201B for ; Fri, 15 Sep 2017 23:33:16 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id F2C0B20BF1 for ; Fri, 15 Sep 2017 19:24:19 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Fri, 15 Sep 2017 19:24:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=2GvKavCvz4jD5+rPfSSMJkXaGM+qRbN+J28PWlXk8 +w=; b=ZCRDFWR2l7G59CZtPCw5G/AJCBitCrK+pSMKqpq9Fn5OfDCkM/Ll7VDCS wPgIht4RCW3KrFGDobDF7LwXBXwM2xtke3oPZ+54STjUZHicQrjro4ETKzuP5sZb ywLwJjZyU5e/lFlL3E63yvZkzMAsZIllRR+x7fOpjqC91dgnRVm7V8DydL8ndZNm B1+fFR5x5eiaPY1UFUMVzZDfPg8HOZY5YCqqHTGutmMeqDzEFvRpljVl8eIA3GQe 1WWrBGX/l/m6d7bxfuMagct/JU8YiOZUhbbeYA2BMIo5XRLEdv7ylBOnI1zsCts3 M14GDYmHuLqPLeaOI0346zaBxzIcg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=2GvKavCvz4jD5+rPfS SMJkXaGM+qRbN+J28PWlXk8+w=; b=NKOPs9ahx5flwRmzqaUFF+TEqqOAfQrOFg g2/puwteKUMoyPgswQGeUaxtvgj/qgcz5oUE5cH2RVEzlEZlGG6mRFi6feYUfuGl zSlXZlAfaQzp9FXCD85hmUDyjxsjRBbM3D6VoiUmBPzYD46Qx4k4IzT+Z/6l1r+H ryvF1hdRg/QPGPPErlgBR1zRovlHfEyImZJA7aotdFGgbi6MZNI8WcxSE5UBsTca HfxYJKHe6iwmy8s35OQO6Fkm4CdvVLD+YCNqh9opPQcuFtbulozKSB1zwZr4TLkX sB+DPZ7LAScQttp1xT38yvzmfmQTn0kWvz8wwmgNMbVPhidu6vCQ== X-ME-Sender: X-Sasl-enc: QmjxhAFBJ6dRtyAe+HGiOb5b9WSAm+JmUxOs8zLSHs0n 1505517859 Received: from v007.zyxst.net (v007.zyxst.net [89.145.100.139]) by mail.messagingengine.com (Postfix) with ESMTPA id 613307E1D1 for ; Fri, 15 Sep 2017 19:24:19 -0400 (EDT) Date: Sat, 16 Sep 2017 00:24:18 +0100 From: tech-lists To: freebsd-ports@freebsd.org Subject: Re: slrn from ports segfaults when running Message-ID: <20170915232417.GA80190@v007.zyxst.net> Mail-Followup-To: freebsd-ports@freebsd.org References: <20170915130055.GD20223@v007.zyxst.net> <59BBD0AA.60804@grosbein.net> <20170915135734.GE20223@v007.zyxst.net> <59BBDFE9.4010902@grosbein.net> <20170915145629.GA18434@v007.zyxst.net> <59BC2C0C.1040701@grosbein.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <59BC2C0C.1040701@grosbein.net> User-Agent: Mutt/1.9.0 (2017-09-02) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Sep 2017 23:33:17 -0000 On Sat, Sep 16, 2017 at 02:37:48AM +0700, Eugene Grosbein wrote: >This does not seem to be debugging version. Perhaps, stage/ directory >already contains stripped binary. Use 'file slrn' to be sure. >Run unstripped slrn binary from building directory instead then. > >And may be, this port does not respect WITH_DEBUG=yes knob. I had WITHOUT_DEBUG=YES in make.conf, so commented out. Also added DEBUG_FLAGS=-g, and from there was able to make a debugging binary, which was copied to root's directory. [root@desktop ~]# file slrn slrn: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 11.1 (1101502), FreeBSD-style, not stripped [root@desktop ~]# [root@desktop ~]# ls -la slrn.* -rw------- 1 root wheel 8990720 Sep 16 00:05 slrn.core [root@desktop ~]# gdb GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd". (gdb) core slrn.core Core was generated by ./slrn'. Program terminated with signal 11, Segmentation fault. #0 0x0000000801aaf421 in ?? () (gdb) bt #0 0x0000000801aaf421 in ?? () #1 0x00007fffffffe360 in ?? () #2 0x00000008026014b7 in ?? () #3 0x00007fffffffe310 in ?? () #4 0x0000000000000000 in ?? () (gdb) quit I moved the slrn.core to slrn.core.1 and this time after starting slrn, went into a newsgroup with only 50 or so posts and this segfaulted after trying to open the first post: (gdb) core slrn.core Core was generated by ./slrn'. Program terminated with signal 11, Segmentation fault. #0 0x0000000801aaf421 in ?? () (gdb) bt #0 0x0000000801aaf421 in ?? () #1 0x00007fffffffe8b0 in ?? () #2 0x00000008026014b7 in ?? () #3 0x00007fffffffe860 in ?? () #4 0x0000000000000000 in ?? () (gdb) Then, tried loading up slrn without doing anything, got its process id and attached it in the debugger: Reading symbols from /root/slrn...done. Reading symbols from /usr/local/lib/libslang.so.2...done. Loaded symbols for /usr/local/lib/libslang.so.2 Reading symbols from /usr/local/lib/libuu.so.3...done. Loaded symbols for /usr/local/lib/libuu.so.3 Reading symbols from /usr/local/lib/libssl.so.43...done. Loaded symbols for /usr/local/lib/libssl.so.43 Reading symbols from /usr/local/lib/libcrypto.so.41...done. Loaded symbols for /usr/local/lib/libcrypto.so.41 Reading symbols from /usr/local/lib/libintl.so.8...done. Loaded symbols for /usr/local/lib/libintl.so.8 Reading symbols from /lib/libncurses.so.8...Reading symbols from /usr/lib/debug//lib/libncurses.so.8.debug...done. done. Loaded symbols for /lib/libncurses.so.8 Reading symbols from /lib/libc.so.7...Reading symbols from /usr/lib/debug//lib/libc.so.7.debug...done. done. Loaded symbols for /lib/libc.so.7 Reading symbols from /lib/libm.so.5...Reading symbols from /usr/lib/debug//lib/libm.so.5.debug...done. done. Loaded symbols for /lib/libm.so.5 Reading symbols from /libexec/ld-elf.so.1...Reading symbols from /usr/lib/debug//libexec/ld-elf.so.1.debug...done. done. Loaded symbols for /libexec/ld-elf.so.1 0x0000000801ba503a in _select () from /lib/libc.so.7 slrn freezes when the process is attached, so ran bt from gdb: (gdb) bt #0 0x0000000801ba503a in _select () from /lib/libc.so.7 #1 0x00000008008f728c in _pSLsys_getkey () from /usr/local/lib/libslang.so.2 #2 0x00000000004565b1 in slrn_getkey () at /ports-build/storage/usr/ports/news/slrn/work/slrn-1.0.3/src/slrn.c:1573 #3 0x000000080091a1d7 in SLang_do_key () from /usr/local/lib/libslang.so.2 #4 0x000000000045674a in slrn_do_keymap_key (map=0x802519c80) at /ports-build/storage/usr/ports/news/slrn/work/slrn-1.0.3/src/slrn.c:1616 #5 0x0000000000456b62 in main (argc=1, argv=0x7fffffffebc0) at /ports-build/storage/usr/ports/news/slrn/work/slrn-1.0.3/src/slrn.c:1750 hopefully this is better info. thanks, -- J.