[Bug 211171] audio/ncmpcpp: Crashes after start with "Abort (Core dumped)" or "Abort trap (Core dumped)"

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jul 18 19:53:30 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211171

--- Comment #10 from yamagi at yamagi.org ---
And just as I read your last reply I figured it out. The problem is somewhere
in boost_locale.so (part of devel/boost-libs). When $LANG is empty or set to an
invalid locale, boost::locale::generator() in line 32 of charset.cpp goes
wrong. boost_locale is unable to find that empty locale and throws an exception
that's  catched somewhere inside boost. The exception leads to abort(), but a
wrong error code. Therefor the missleading "cannot allocate memory" is printed
by truss. I don't think that there's an easy way to hack around it. As a very
dirty work around you could remove the call to internalLocale() in ncmpcpp.cpp
line 94 and rebuild ncmpcpp:

cd /usr/ports/audio/ncmpcpp
make patch
vi work/ncmpcpp-0.7.4/src/ncmpcpp.cpp
-- Edit --
make deinstall reinstall clean

That may break some unicode character conversions. And I think I'll open an
upstream bug report tomorrow. Maybe the ncmpcpp developers can come up with a
real solution.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list