nano segfaults as root after upgrade to 15.10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nano (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Wily |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
On systems with a long hostname, nano either segfaults or refuses to work properly.
[Test Case]
1- set a long hostname with "hostname thisisareallyre
2- try and edit a file: "nano /etc/hosts"
3- make sure there is no segfault, or error in nano window: "Couldn't determine host name..."
[Regression Potential]
Patch is quite simple an obvious. A regression would mean lock files wouldn't work properly.
----
Original description:
Description: Ubuntu 15.10
Release: 15.10
nano:
Installed: 2.4.2-1
Candidate: 2.4.2-1
Version table:
*** 2.4.2-1 0
500 http://
100 /var/lib/
After upgrading Ubuntu 15.04 to 15.10, when I run nano as root on a file it just segfaults. I'm not having this problem on other 15.04->15.10 upgrades
strace is https:/
catchsegv is https:/
Under gdb with nano-dbgsym installed, it gives
#0 main (argc=2, argv=0x7fffffff
If I run it as sudo nano filename.txt, it gives an error as below rather than segfaulting
[ Couldn't determine hostname for lock file: File name too long ]
Both my user and root have the same locale settings. I've tried regenerating the locales
tags: | added: patch-accepted-upstream |
Changed in nano (Ubuntu): | |
importance: | Undecided → High |
tags: | added: wily |
Changed in nano (Ubuntu Wily): | |
importance: | Undecided → High |
Status changed to 'Confirmed' because the bug affects multiple users.