Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Mar 2021 19:54:09 -0400
From:      Thomas Dickey <dickey@his.com>
To:        Juraj Lutter <otis@FreeBSD.org>, Henric Jungheim <software@henric.org>, FreeBSD-current@freebsd.org
Cc:        Thomas Dickey <dickey@his.com>
Subject:   Re: 13.0-RC3 bison causes tputs SIGSEGV
Message-ID:  <20210331235409.GA8773@prl-debianold-64.jexium-island.net>
In-Reply-To: <20210331224955.GA8387@prl-debianold-64.jexium-island.net>
References:  <YGImt%2BhzWnQTUjz/@mail.henric.info> <20210329233138.GA4334@prl-debianold-64.jexium-island.net> <33EE2402-4447-4168-AB5B-D98009CD03AA@FreeBSD.org> <20210331004803.GA1607@prl-debianold-64.jexium-island.net> <YGR%2B1yOzagxgvpqk@mail.henric.info> <7E5FFF68-3FDC-42C4-A1C9-4B2F483FABC5@FreeBSD.org> <20210331224955.GA8387@prl-debianold-64.jexium-island.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--zYM0uCDKw75PZbzx
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Mar 31, 2021 at 06:49:55PM -0400, Thomas Dickey wrote:
> On Wed, Mar 31, 2021 at 09:40:49PM +0200, Juraj Lutter wrote:
> >=20
> > > On 31 Mar 2021, at 15:53, Henric Jungheim <software@henric.org> wrote:
> > >=20
> > >>=20
> > >> Knowing that would help me see whether the problem is faulty initial=
ization
> > >> from libtextstyle (i.e., the SCREEN pointer is null, making the path=
 via
> > >> the static structure), or some ifdef-combination in ncurses that I've
> > >> neglected (i.e., a flaw in the pointer juggling).
> >=20
> > I=E2=80=99ve observed that the application in question calls:
> >=20
> >   /* Create the output styled stream.  */
> >   pk_ostream =3D
> >     (color_mode =3D=3D color_html
> >      ? html_styled_ostream_create (file_ostream_create (stdout),
> >                                    style_file_name)
> >      : styled_ostream_create (STDOUT_FILENO, "(stdout)",
> >                               TTYCTL_AUTO, style_file_name));
> >=20
> > Does it make any difference?
>=20
> I don't know yet.  I've been setting up a build for bison+libtextstyle
> so that I can study it firsthand (and use valgrind, etc., to look for
> problems).

=2E..valgrind on Debian/testing (iirc, valgrind doesn't work with BSDs).

However, aside from the cgetent stuff, the terminfo part of my test-setup
matches what's in FreeBSD's build for ncurses.  valgrind finds nothing
amiss with the tests that I've done to exercise the libtextstyle code.
(address-sanitizer may).

By the way, ktruss could show what files are opened in your configuration,
and a log from that would tell me if it's reading via the termcap interface.

--=20
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net

--zYM0uCDKw75PZbzx
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQTFIEjAwHSP7iJ9R6JwI1Pg9+SO2wUCYGULngAKCRBwI1Pg9+SO
2413AKCN1zUG3i7v0HTGisUk5fG3hsTAiwCfbPuesggiiMCWOoEDP4kgsp6MQKU=
=rSvX
-----END PGP SIGNATURE-----

--zYM0uCDKw75PZbzx--



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