Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Sep 2017 14:57:34 +0100
From:      tech-lists <tech-lists@zyxst.net>
To:        freebsd-ports@freebsd.org
Subject:   Re: slrn from ports segfaults when running
Message-ID:  <20170915135734.GE20223@v007.zyxst.net>
In-Reply-To: <59BBD0AA.60804@grosbein.net>
References:  <20170915130055.GD20223@v007.zyxst.net> <59BBD0AA.60804@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170915135734.GE20223>