Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 244919

Summary: =app-editors/nano-2.5.1 segfaults when deleting the last line of a file
Product: Gentoo Linux Reporter: Kobboi <gentoo>
Component: [OLD] UnspecifiedAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: critical    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Kobboi 2008-10-29 20:34:12 UTC
On two systems, an x86 and an amd64, I have the problem that with nano-2.1.5, deleting (^K) the last line of a file results in a crash (segmentation fault)

[10159.455826] nano[18370]: segfault at 0 ip 08056f0f sp bfef8040 error 4 in nano[8048000+23000]


Reproducible: Always

Steps to Reproduce:
Option 1: Open a file of choice with nano-2.1.5 and delete the last line
Option 2: Just open nano and press Control+K
Actual Results:  
Segmentation fault
Comment 1 Kobboi 2008-10-29 20:41:48 UTC
Something wrong with my system? :/

rt_sigprocmask(SIG_BLOCK, [WINCH], NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [WINCH], NULL, 8) = 0
gettimeofday({1225316421, 521543}, NULL) = 0
select(1, [0], NULL, NULL, {0, 0})      = 0 (Timeout)
gettimeofday({1225316421, 521684}, NULL) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2008-10-29 21:14:59 UTC
fixed in 2.1.6-r2

*** This bug has been marked as a duplicate of bug 240330 ***