[Touch-packages] [Bug 1509081] Re: nano segfaults as root after upgrade to 15.10
Unpacking nano (2.4.2-1ubuntu0.1) over (2.4.2-1) ... Re-enabled locking and now nano doesn't segfault (in default config) on the target machine Tag updated :) Thankyou! ** Tags removed: verification-needed ** Tags added: verification-done -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to nano in Ubuntu. https://bugs.launchpad.net/bugs/1509081 Title: nano segfaults as root after upgrade to 15.10 Status in nano package in Ubuntu: Fix Released Status in nano source package in Wily: Fix Committed 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 thisisareallyreallyreallylonghostname" 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://mirror.bytemark.co.uk/ubuntu/ wily/main amd64 Packages 100 /var/lib/dpkg/status 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://p.defau.lt/?q7xGwt3HoqB74xTawUUHDA catchsegv is https://p.defau.lt/?0SPQY_bDj6F6j1ZKeToQoA Under gdb with nano-dbgsym installed, it gives #0 main (argc=2, argv=0x7fffe688) at ../../src/nano.c:2768 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nano/+bug/1509081/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1509081] Re: nano segfaults as root after upgrade to 15.10
Any chance we could get it backported to 15.10 too please? -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to nano in Ubuntu. https://bugs.launchpad.net/bugs/1509081 Title: nano segfaults as root after upgrade to 15.10 Status in nano package in Ubuntu: Confirmed Status in nano source package in Wily: New Bug 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://mirror.bytemark.co.uk/ubuntu/ wily/main amd64 Packages 100 /var/lib/dpkg/status 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://p.defau.lt/?q7xGwt3HoqB74xTawUUHDA catchsegv is https://p.defau.lt/?0SPQY_bDj6F6j1ZKeToQoA Under gdb with nano-dbgsym installed, it gives #0 main (argc=2, argv=0x7fffe688) at ../../src/nano.c:2768 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nano/+bug/1509081/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1509081] Re: nano segfaults as root after upgrade to 15.10
Post sent to nano-devel too -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to nano in Ubuntu. https://bugs.launchpad.net/bugs/1509081 Title: nano segfaults as root after upgrade to 15.10 Status in nano package in Ubuntu: Confirmed Bug 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://mirror.bytemark.co.uk/ubuntu/ wily/main amd64 Packages 100 /var/lib/dpkg/status 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://p.defau.lt/?q7xGwt3HoqB74xTawUUHDA catchsegv is https://p.defau.lt/?0SPQY_bDj6F6j1ZKeToQoA Under gdb with nano-dbgsym installed, it gives #0 main (argc=2, argv=0x7fffe688) at ../../src/nano.c:2768 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nano/+bug/1509081/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1509081] Re: nano segfaults as root after upgrade to 15.10
The patch works! Got a little confused by caching of the paths, which was returning /usr/local/bin/nano, but without the qualified path, it was using /bin/nano. Easily fixed What happens next? I noticed your thread over at https://lists.gnu.org/archive/html/nano-devel/2015-11/msg0.html - I guess a patch to their svn, and then something related in debian/ubuntu repo? Then poking someone to get a new package built and distributed? Thanks! -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to nano in Ubuntu. https://bugs.launchpad.net/bugs/1509081 Title: nano segfaults as root after upgrade to 15.10 Status in nano package in Ubuntu: Confirmed Bug 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://mirror.bytemark.co.uk/ubuntu/ wily/main amd64 Packages 100 /var/lib/dpkg/status 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://p.defau.lt/?q7xGwt3HoqB74xTawUUHDA catchsegv is https://p.defau.lt/?0SPQY_bDj6F6j1ZKeToQoA Under gdb with nano-dbgsym installed, it gives #0 main (argc=2, argv=0x7fffe688) at ../../src/nano.c:2768 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nano/+bug/1509081/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1509081] Re: nano segfaults as root after upgrade to 15.10
Yup, 15.10 seems to. I have never edited the /etc/nanorc file, so I guess it was just updated to the default package maintainers version as per the usual. So the grep gives the obvious output: reedy@ko-kra:~$ grep locking /etc/nanorc set locking reedy@ko-kra:~$ Yeah, I ended up applying the patch by hand. I guess debugging tired (on unfamiliar source code). I should have really noticed what the issue was! Will try the patch again on the source from the 15.10 apt repo Will post the ./configure stuff to nano-devel; that's fine by me. Certainly no config on my part, rather than just installing the necessary packages (libncurses dev packages, dh-autoconf etc) -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to nano in Ubuntu. https://bugs.launchpad.net/bugs/1509081 Title: nano segfaults as root after upgrade to 15.10 Status in nano package in Ubuntu: Confirmed Bug 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://mirror.bytemark.co.uk/ubuntu/ wily/main amd64 Packages 100 /var/lib/dpkg/status 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://p.defau.lt/?q7xGwt3HoqB74xTawUUHDA catchsegv is https://p.defau.lt/?0SPQY_bDj6F6j1ZKeToQoA Under gdb with nano-dbgsym installed, it gives #0 main (argc=2, argv=0x7fffe688) at ../../src/nano.c:2768 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nano/+bug/1509081/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1509081] Re: nano segfaults as root after upgrade to 15.10
Yay, rabbit holes... Checked out from svn, extra packages installed, run autogen, then ./configure is giving ./configure: line 8316: syntax error near unexpected token `NCURSESW,' ./configure: line 8316: ` PKG_CHECK_MODULES(NCURSESW, ncursesw,' root@ko-kra:~/nano# dpkg -l | grep ncurses ii libncurses5:amd64 5.9+20150516-2ubuntu1 amd64 shared libraries for terminal handling ii libncurses5-dev:amd64 5.9+20150516-2ubuntu1 amd64 developer's libraries for ncurses ii libncursesw5:amd64 5.9+20150516-2ubuntu1 amd64 shared libraries for terminal handling (wide character support) ii libncursesw5-dev:amd64 5.9+20150516-2ubuntu1 amd64 developer's libraries for ncursesw ii mtr-tiny0.85-3 amd64 Full screen ncurses traceroute tool ii ncurses-base5.9+20150516-2ubuntu1 all basic terminal type definitions ii ncurses-bin 5.9+20150516-2ubuntu1 amd64 terminal-related programs and man pages ii ncurses-term5.9+20150516-2ubuntu1 all additional terminal type definitions root@ko-kra:~/nano# -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to nano in Ubuntu. https://bugs.launchpad.net/bugs/1509081 Title: nano segfaults as root after upgrade to 15.10 Status in nano package in Ubuntu: Confirmed Bug 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://mirror.bytemark.co.uk/ubuntu/ wily/main amd64 Packages 100 /var/lib/dpkg/status 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://p.defau.lt/?q7xGwt3HoqB74xTawUUHDA catchsegv is https://p.defau.lt/?0SPQY_bDj6F6j1ZKeToQoA Under gdb with nano-dbgsym installed, it gives #0 main (argc=2, argv=0x7fffe688) at ../../src/nano.c:2768 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nano/+bug/1509081/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1509081] Re: nano segfaults as root after upgrade to 15.10
Neither root, nor my user have a .nanorc file, but it is in the /etc/nanorc file Thought I'd just use `apt-get source nano` on wily, but seems that's a few revisions behind the svn repo, as free_and_fail doesn't seem to be defined (else something else is out of date/out of sync) .deps/files.Tpo -c -o files.o files.c files.c: In function ‘write_lockfile’: files.c:149:6: error: label ‘free_and_fail’ used but not defined goto free_and_fail; ^ Will try getting the svn sources and try that Thanks! -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to nano in Ubuntu. https://bugs.launchpad.net/bugs/1509081 Title: nano segfaults as root after upgrade to 15.10 Status in nano package in Ubuntu: Confirmed Bug 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://mirror.bytemark.co.uk/ubuntu/ wily/main amd64 Packages 100 /var/lib/dpkg/status 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://p.defau.lt/?q7xGwt3HoqB74xTawUUHDA catchsegv is https://p.defau.lt/?0SPQY_bDj6F6j1ZKeToQoA Under gdb with nano-dbgsym installed, it gives #0 main (argc=2, argv=0x7fffe688) at ../../src/nano.c:2768 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nano/+bug/1509081/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1509081] Re: nano segfaults as root after upgrade to 15.10
`strace -o nano2.txt nano --ignore --locking filename.txt` is http://p.defau.lt/?T04ctRlETH_GkL6kEuqSLA -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to nano in Ubuntu. https://bugs.launchpad.net/bugs/1509081 Title: nano segfaults as root after upgrade to 15.10 Status in nano package in Ubuntu: Confirmed Bug 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://mirror.bytemark.co.uk/ubuntu/ wily/main amd64 Packages 100 /var/lib/dpkg/status 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://p.defau.lt/?q7xGwt3HoqB74xTawUUHDA catchsegv is https://p.defau.lt/?0SPQY_bDj6F6j1ZKeToQoA Under gdb with nano-dbgsym installed, it gives #0 main (argc=2, argv=0x7fffe688) at ../../src/nano.c:2768 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nano/+bug/1509081/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1509081] Re: nano segfaults as root after upgrade to 15.10
But yeah, nano --ignore works via sudo or as root -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to nano in Ubuntu. https://bugs.launchpad.net/bugs/1509081 Title: nano segfaults as root after upgrade to 15.10 Status in nano package in Ubuntu: Confirmed Bug 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://mirror.bytemark.co.uk/ubuntu/ wily/main amd64 Packages 100 /var/lib/dpkg/status 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://p.defau.lt/?q7xGwt3HoqB74xTawUUHDA catchsegv is https://p.defau.lt/?0SPQY_bDj6F6j1ZKeToQoA Under gdb with nano-dbgsym installed, it gives #0 main (argc=2, argv=0x7fffe688) at ../../src/nano.c:2768 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nano/+bug/1509081/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1509081] Re: nano segfaults as root after upgrade to 15.10
How does the long path tool help? It worked before on 15.04 (and before), but broke upgrading to 15.10... It shouldn't segfault! env | grep MALLOC returns nothing nano --ignore works fine... `strace -o nano.txt nano --ignore` is http://p.defau.lt/?ggvjOCTok9EfbnKi_XNNBA My computer is a vm from Bytemark over on their bigv platform https://www.bigv.io/ - I don't think it needs to ask the network about its hostname... How would I even verify this? Thanks -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to nano in Ubuntu. https://bugs.launchpad.net/bugs/1509081 Title: nano segfaults as root after upgrade to 15.10 Status in nano package in Ubuntu: Confirmed Bug 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://mirror.bytemark.co.uk/ubuntu/ wily/main amd64 Packages 100 /var/lib/dpkg/status 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://p.defau.lt/?q7xGwt3HoqB74xTawUUHDA catchsegv is https://p.defau.lt/?0SPQY_bDj6F6j1ZKeToQoA Under gdb with nano-dbgsym installed, it gives #0 main (argc=2, argv=0x7fffe688) at ../../src/nano.c:2768 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nano/+bug/1509081/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp