Bug 239189 - editors/nano: binary package segfaults
Summary: editors/nano: binary package segfaults
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Danilo Egea Gondolfo
URL:
Keywords:
: 239188 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-07-13 18:06 UTC by Robert Clausecker
Modified: 2019-07-14 00:23 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (danilo)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Clausecker 2019-07-13 18:06:32 UTC
The current amd64 binary package for nano (nano-4.2) segfaults on all machines I've tried it on (all on FreeBSD-12.0).  Building the binary manually from ports fixes the problem.  Please upload a correctly built binary.
Comment 1 Robert Clausecker 2019-07-13 18:07:23 UTC
*** Bug 239188 has been marked as a duplicate of this bug. ***
Comment 2 s.zawadzki 2019-07-14 00:21:09 UTC
Yeah, something has wrong. You must unset LANG...

x@FreeBSD:~ % nano --version
 GNU nano, version 4.2
 (C) 1999-2011, 2013-2019 Free Software Foundation, Inc.
 (C) 2014-2019 the contributors to nano
 Email: nano@nano-editor.org	Web: https://nano-editor.org/
 Compiled options: --enable-utf8
x@FreeBSD:~ % setenv LANG pl_PL.UTF-8
x@FreeBSD:~ % nano --version
Segmentation fault (core dumped)
x@FreeBSD:~ % setenv LANG
x@FreeBSD:~ % nano --version
 GNU nano, version 4.2
 (C) 1999-2011, 2013-2019 Free Software Foundation, Inc.
 (C) 2014-2019 the contributors to nano
 Email: nano@nano-editor.org	Web: https://nano-editor.org/
 Compiled options: --enable-utf8
Comment 3 Derek Schrock 2019-07-14 00:23:38 UTC
Looking at this in freenode #freebsd it appears to be a LANG/LC_MESSAGES/locale thing with ncurses.

setting LANG or LC_MESSAGES may be an alt. work around too.

$ env LC_MESSAGES=pl_PL.UTF-8 nano --version
Segmentation fault (zrzut pamięci)

$ env LC_MESSAGES=en_US.UTF-8 nano --version
 GNU nano, version 4.2
 (C) 1999-2011, 2013-2019 Free Software Foundation, Inc.
 (C) 2014-2019 the contributors to nano
 Email: nano@nano-editor.org    Web: https://nano-editor.org/