pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Newsboat is crashing on startup



Dear Yorick,

Patching devel/stfl as you suggested makes newsbeuter 2.9 work just
fine, I've misunderstood it earlier.

wip/newsboat v2.13 also works for me, as long as I have set the locale
environment variables. By the way, using en_US.UTF-8 doesn't work
properly for me, some characters get displayed with hollow squares. If
I use en_GB.UTF-8, then all seems well; this happens to be on a putty
session running under Windows 10 with utf-8 encoding, so where the
interaction gets wrong is hard for me to fathom; I am based in the UK
and this is the default Windows locale, of course.

newsboat correctly reads and reuses the previous newsbeuter
configuration, so I guess the package is usable this way.


On Fri, 16 Nov 2018 at 20:49, Chavdar Ivanov <ci4ic4%gmail.com@localhost> wrote:
>
> Thanks, I will try wip/newsboat next. There are a few packages in
> pkgsrc which have been bugging me under NetBSD-current, this one got
> into this list last year with the discussion from SDF.org; the others
> are nodejs and especially mono ( I don't remember the last time I was
> able to compile and use mono, it was perhaps 3-4 years ago ). Not that
> I particularly need them every day, but still...
>
> On Fri, 16 Nov 2018 at 20:45, Yorick Hardy <yorickhardy%gmail.com@localhost> wrote:
> >
> > Dear Chavdar,
> >
> > Oh, I see. Are you willing to try wip/newsboat?
> >
> > Just to be clear: the patch was for devel/stfl/Makefile.
> > However, I am not sure whther that makes a difference for
> > newsbeuter (but it did help for wip/newsboat in my case).
> >
> > Kind regards,
> >
> > On 2018-11-16, Chavdar Ivanov wrote:
> > > Apparently so. This is on amd64 -current from yesterday, pkgsrc
> > > updated earlier today. newsbeuter 2.9 still is what is offered by
> > > pkgsrc.
> > > USE_GNU_ICONV=yes was in the Makefile earlier (I haven't checked cvs
> > > when it ws added).
> > > ----
> > > [New LWP 1 of process 23353]
> > > XDG: configuration directory '/home/xci/.config/newsbeuter' not
> > > accessible, using '/home/xci/.newsbeuter' instead.
> > > Starting newsbeuter 2.9...
> > > Loading configuration...done.
> > > Opening cache...done.
> > > Loading URLs from /home/xci/.newsbeuter/urls...done.
> > > Error: no URLs configured. Please fill the file
> > > /home/xci/.newsbeuter/urls with RSS feed URLs or import an OPML file.
> > >
> > > newsbeuter 2.9
> > > usage: /usr/pkg/bin/newsbeuter [-i <file>|-e] [-u <urlfile>] [-c
> > > <cachefile>] [-x <command> ...] [-h]
> > > terminate called after throwing an instance of 'std::logic_error'
> > >   what():  basic_string::_S_construct null not valid
> > >
> > > Thread 2 received signal SIGABRT, Aborted.
> > > 0x000071f2db11ef4a in _lwp_kill () from /usr/lib/libc.so.12
> > > (gdb) bt
> > > #0  0x000071f2db11ef4a in _lwp_kill () from /usr/lib/libc.so.12
> > > #1  0x000071f2db11ebd7 in abort () from /usr/lib/libc.so.12
> > > #2  0x000071f2dbc7b82c in __gnu_cxx::__verbose_terminate_handler() ()
> > > from /usr/lib/libstdc++.so.8
> > > #3  0x000071f2dbc84e50 in __cxxabiv1::__terminate(void (*)()) () from
> > > /usr/lib/libstdc++.so.8
> > > #4  0x000071f2dbc84eaa in std::terminate() () from /usr/lib/libstdc++.so.8
> > > #5  0x000071f2dbc84dfd in __cxa_throw () from /usr/lib/libstdc++.so.8
> > > #6  0x000071f2dbc7a70d in std::__throw_logic_error(char const*) ()
> > > from /usr/lib/libstdc++.so.8
> > > #7  0x000071f2dbc88cbc in wchar_t* std::basic_string<wchar_t,
> > > std::char_traits<wchar_t>, std::allocator<wchar_t>
> > > >::_S_construct<wchar_t const*>(wchar_t const*, wchar_t const*,
> > > std::allocator<wchar_t> const&, std::forward_iterator_tag) () from
> > > /usr/lib/libstdc++.so.8
> > > #8  0x000071f2dbc890a8 in std::basic_string<wchar_t,
> > > std::char_traits<wchar_t>, std::allocator<wchar_t>
> > > >::basic_string(wchar_t const*, std::allocator<wchar_t> const&) ()
> > > from /usr/lib/libstdc++.so.8
> > > #9  0x00000000004ab749 in newsbeuter::utils::str2wstr (str=...) at
> > > src/utils.cpp:494
> > > #10 0x00000000004abfbe in newsbeuter::utils::strwidth (str=...) at
> > > src/utils.cpp:657
> > > #11 0x000000000042a6d1 in newsbeuter::gentabs (str=...) at
> > > src/controller.cpp:989
> > > #12 newsbeuter::controller::usage (this=this@entry=0x7f7fffa6a180,
> > > argv0=<optimized out>)
> > >     at src/controller.cpp:1024
> > > #13 0x0000000000438848 in newsbeuter::controller::run
> > > (this=this@entry=0x7f7fffa6a180, argc=argc@entry=1,
> > >     argv=argv@entry=0x7f7fffa6a4e8) at src/controller.cpp:502
> > > #14 0x00000000004bb806 in main (argc=1, argv=0x7f7fffa6a4e8) at
> > > newsbeuter.cpp:30
> > >
> > > I also had to take out references to an undefined function is_error
> > > from three files:  feedhq_api.cpp oldreader_api.cpp ttrss_api.cpp,
> > > this may have some bearing, but they do not show in the above trace.
> > >
> > > I ran the above with
> > >
> > > LANG="en_US.UTF-8"
> > > LC_CTYPE="en_US.UTF-8"
> > > LC_COLLATE="C"
> > > LC_TIME="en_US.UTF-8"
> > > LC_NUMERIC="en_US.UTF-8"
> > > LC_MONETARY="en_US.UTF-8"
> > > LC_MESSAGES="en_US.UTF-8"
> > > LC_ALL="en_US.UTF-8"
> > >
> > > as suggested earlier.
> > >
> > > On Fri, 16 Nov 2018 at 19:49, Yorick Hardy <yorickhardy%gmail.com@localhost> wrote:
> > > >
> > > > Dear Chavdar,
> > > >
> > > > Is the error message the same?
> > > >
> > > > On 2018-11-16, Chavdar Ivanov wrote:
> > > > > Still crashes with USE_GNU_ICONV.
> > > > > On Fri, 16 Nov 2018 at 18:55, Yorick Hardy <yorickhardy%gmail.com@localhost> wrote:
> > > > > >
> > > > > > Dear Sean,
> > > > > >
> > > > > > On 2018-11-12, Sean Hammond wrote:
> > > > > > > > As a workaround, have you tried setting LANG=en_US.UTF-8
> > > > > > > > (or another suitable value) before running newsboat?
> > > > > > >
> > > > > > > Thanks. That seems to get around the first crash but then I run into a second crash (which I've opened a second Newsboat issue for: https://github.com/newsboat/newsboat/issues/361):
> > > > > > >
> > > > > > > $ env LANG=en_US.UTF-8 newsboat
> > > > > > > Starting newsboat 2.13.0...
> > > > > > > Loading configuration...done.
> > > > > > > Opening cache...done.
> > > > > > > Loading URLs from /sdf/arpa/ns/s/seanh/.newsboat/urls...done.
> > > > > > > Loading articles from cache...done.
> > > > > > > STFL Parser Error near ''.
> > > > > > > Abort (core dumped)
> > > > > >
> > > > > > I am not suggesting that this is the correct solution,
> > > > > > but perhaps it is a temporary fix. See below.
> > > > > >
> > > > > > --
> > > > > > Kind regards,
> > > > > >
> > > > > > Yorick Hardy
> > > > > >
> > > > > > Index: Makefile
> > > > > > ===================================================================
> > > > > > RCS file: /cvsroot/pkgsrc/devel/stfl/Makefile,v
> > > > > > retrieving revision 1.4
> > > > > > diff -u -u -r1.4 Makefile
> > > > > > --- Makefile    22 Aug 2018 09:45:00 -0000      1.4
> > > > > > +++ Makefile    16 Nov 2018 18:54:10 -0000
> > > > > > @@ -14,6 +14,7 @@
> > > > > >  USE_TOOLS+=    gmake perl
> > > > > >  USE_LIBTOOL=   yes
> > > > > >  USE_CURSES=            wide
> > > > > > +USE_GNU_ICONV= yes
> > > > > >
> > > > > >  INSTALL_MAKE_FLAGS+=   prefix=${PREFIX}
> >
> > --
> > Kind regards,
> >
> > Yorick Hardy
>
>
>
> --
> ----



-- 
----


Home | Main Index | Thread Index | Old Index