From owner-freebsd-ports@freebsd.org Fri Sep 15 13:57:39 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 2908BE181F8 for ; Fri, 15 Sep 2017 13:57:39 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (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 EE4B768C07 for ; Fri, 15 Sep 2017 13:57:38 +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 CCD8520DB3 for ; Fri, 15 Sep 2017 09:57:36 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Fri, 15 Sep 2017 09:57:36 -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=bbT9KtRKsQ0fsd5zOEH2dvU2/cZDGZsLJ3RtCTB3p xU=; b=ORocopu6YURk1D2LgX6qaRufdBEhDqQOlFD/mwCKFu4AiUwWh8FKn5x4D 8RN3DyKKeMylGkBSxDhwS6EyNZ7GxYum5qfNe8br5x8sIZ/xrjUw1l5FU504GbDY QfF8mKJKwMgzkheB1jYghlKgmQaRVZZSuWbBihLSwD9hHzMRNtlhNeNqaLYIGVIz pFCW0YH56TWquaBkR51GDD2YHEK1ZwHHg69kA2ySbVQUJ/tHtNrhCsKHjg2OXpR3 qbc5VfEcR25JFcKeUTRtdb7NLIj/z7fcTNj4OmCjL7ZBqTlJ0p9AKyUEx0AyhiyF 0U/eld3CrORiOFdhwGkbRFadi4b5g== 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=bbT9KtRKsQ0fsd5zOE H2dvU2/cZDGZsLJ3RtCTB3pxU=; b=UxqtjYTTdvhIoB9VNrHzevDlI17fqjKZ0k EHrJAFYm0r3x9chpFjDm5CM3L0pCqXhOSbjot5aZXT06fZxHNHiAIwOGJpRAjrnL LAJvt33wG3aZ5OoT+vYt0TQjZwD4z0+0m/rnzmGqXIXY/NYpeuy5HMHoXwTtoxjI xOXeObha5Jz+VjX4MzHO5Kw4tzCjCB/rhAOXFRnJt+KLxOkuqmYYIyLjpbV1XXOS VoA1NkkgZZKDb1KEElhamlnxcANJldMwyuwjBvNcm4YBSjfvV0xRBVdnXEqtKWK+ wa+ozxErFbjMyLkQVgyKEz9D7EOEy1qsNxKa8xv+S9ajM2BTWxSQ== X-ME-Sender: X-Sasl-enc: rlYrT3JzLD4EQaQDqHW6GW0P+FkBVWxMCQ4QYL54RIXj 1505483855 Received: from v007.zyxst.net (v007.zyxst.net [89.145.100.139]) by mail.messagingengine.com (Postfix) with ESMTPA id D36B77F980 for ; Fri, 15 Sep 2017 09:57:35 -0400 (EDT) Date: Fri, 15 Sep 2017 14:57:34 +0100 From: tech-lists To: freebsd-ports@freebsd.org Subject: Re: slrn from ports segfaults when running Message-ID: <20170915135734.GE20223@v007.zyxst.net> Mail-Followup-To: freebsd-ports@freebsd.org References: <20170915130055.GD20223@v007.zyxst.net> <59BBD0AA.60804@grosbein.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <59BBD0AA.60804@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 13:57:39 -0000 On Fri, Sep 15, 2017 at 08:07:54PM +0700, Eugene Grosbein wrote: >First, try to rebuild port using "make WITH_DEBUG=yes" and run non-stripped binary >from stage/ subdirectory of port building ares. Then get corefile and >use gdb to get backtrace. I had to run make install because running it from the staging directory gives this error: slrn 1.0.3 Unable to locate slrn.sl on load path Configuration error: Unable to load startup file The hardcoded load path is set to: /usr/local/share/slrn/slang You make need to set the SLRN_SLANG_DIR environment variable. slrn fatal error: Error initializing S-Lang interpreter. so, ran make install: make install ===> Installing for slrn-1.0.3a ===> slrn-1.0.3a depends on file: /usr/local/lib/libcrypto.so.41 - found ===> slrn-1.0.3a depends on shared library: libslang.so - found (/usr/local/lib/libslang.so) ===> slrn-1.0.3a depends on shared library: libuu.so - found (/usr/local/lib/libuu.so) ===> slrn-1.0.3a depends on shared library: libintl.so - found (/usr/local/lib/libintl.so) ===> Checking if slrn already installed ===> Registering installation for slrn-1.0.3a Installing slrn-1.0.3a... I can redo this if there's a -DNOSTRIP or something like that I can pass to make for make install. I have the corefile, and have loaded gdb like so: (gdb) core slrn.core Core was generated by slrn'. Program terminated with signal 11, Segmentation fault. #0 0x0000000801a92474 in ?? () (gdb) bt #0 0x0000000801a92474 in ?? () #1 0x00007fffffffdc58 in ?? () #2 0x00007fffffffdbf0 in ?? () #3 0x00000008030013cd in ?? () #4 0x00007fffffffdb98 in ?? () #5 0x0000000000000000 in ?? () I re-ran slrn and attached the process: (gdb) attach 58974 Attaching to process 58974 Reading symbols from /storage/usr/local/bin/slrn...(no debugging symbols found)...done. Reading symbols from /usr/local/lib/libslang.so.2...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libslang.so.2 Reading symbols from /usr/local/lib/libuu.so.3...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libuu.so.3 Reading symbols from /usr/local/lib/libssl.so.43...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libssl.so.43 Reading symbols from /usr/local/lib/libcrypto.so.41...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libcrypto.so.41 Reading symbols from /usr/local/lib/libintl.so.8...(no debugging symbols found)...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 0x0000000801b8803a in _select () from /lib/libc.so.7 (gdb) bt #0 0x0000000801b8803a in _select () from /lib/libc.so.7 #1 0x00000008008da28c in _pSLsys_getkey () from /usr/local/lib/libslang.so.2 #2 0x000000000043e75f in ?? () #3 0x00000008008fd1d7 in SLang_do_key () from /usr/local/lib/libslang.so.2 #4 0x000000000043e7fb in ?? () #5 0x000000000043f86f in ?? () #6 0x000000000040767f in ?? () #7 0x0000000800683000 in ?? () #8 0x0000000000000000 in ?? () and the process of attaching seems to hang slrn. thanks, -- J.