Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 581360 - app-editors/nano Received SIGHUP or SIGTERM. Unable to edit empty files?
Summary: app-editors/nano Received SIGHUP or SIGTERM. Unable to edit empty files?
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-27 12:53 UTC by Oleh
Modified: 2016-04-29 23:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,4.53 KB, text/plain)
2016-04-27 12:54 UTC, Oleh
Details
strace (nano-strace.txt,35.88 KB, text/plain)
2016-04-27 13:49 UTC, Oleh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleh 2016-04-27 12:53:13 UTC
nano failing to start while editing certain files (probably only with empty ones) It shuts down with "Received SIGHUP or SIGTERM"

Reproducible: Always

Steps to Reproduce:
1. touch abcd
2. nano abcd
4. notice immediate nano close with "Received SIGHUP or SIGTERM"



all versions, through 2.4.3-2.5.3 exhibit such behavior.

oleg@oleg ~ $ stat abcd
  File: 'abcd'
  Size: 0         	Blocks: 0          IO Block: 4096   regular empty file
Device: 803h/2051d	Inode: 269824560   Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/    oleg)   Gid: ( 1000/    oleg)
Access: 2016-04-27 15:45:57.544327294 +0300
Modify: 2016-04-27 15:45:57.544327294 +0300
Change: 2016-04-27 15:45:57.544327294 +0300
 Birth: -
oleg@oleg ~ $
Comment 1 Oleh 2016-04-27 12:54:46 UTC
Created attachment 432260 [details]
emerge --info
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2016-04-27 13:05:39 UTC
Please post your `emerge -vpq app-editors/nano` output in a comment.
Comment 3 Oleh 2016-04-27 13:48:21 UTC
oleg2 / # emerge -vpq app-editors/nano
[ebuild   R   ] app-editors/nano-2.5.3  USE="magic ncurses nls spell unicode -debug -justify -minimal -slang -static" 

 * IMPORTANT: 9 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

oleg2 / #
Comment 4 Oleh 2016-04-27 13:49:00 UTC
Created attachment 432270 [details]
strace
Comment 5 Oleh 2016-04-27 14:24:59 UTC
nano, compiled with USE=-magic, able to open this empty file. (i tried all, 2.4.3-9999). Adding magic USE back makes the problem return.
Comment 6 SpanKY gentoo-dev 2016-04-27 15:19:13 UTC
what version of file are you using ?  make sure you're using not still on
file-5.26.
Comment 7 Oleh 2016-04-27 15:44:57 UTC
apparently, i'm still on 5.26. Should be 5.26-r1?
Comment 8 Oleh 2016-04-28 11:14:48 UTC
update to file-5.26-r1 fixed nano[magic]. Sorry about the noise. Can be closed.