Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 240330 - app-editors/nano-2.1.6 segfault when try to delete the last empty line with ctl+k
Summary: app-editors/nano-2.1.6 segfault when try to delete the last empty line with c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL: https://savannah.gnu.org/bugs/index.p...
Whiteboard:
Keywords:
: 244919 252407 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-06 23:30 UTC by amadeus.bit
Modified: 2011-10-30 23:15 UTC (History)
3 users (show)

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


Attachments
log of stderr (nano.log,35.86 KB, text/plain)
2008-10-07 13:33 UTC, Justin Lecher (RETIRED)
Details
backtrace.log (backtrace.log,1.01 KB, text/plain)
2008-10-07 13:34 UTC, Justin Lecher (RETIRED)
Details
emerge.info (emerge.info,16.27 KB, text/plain)
2008-10-07 13:34 UTC, Justin Lecher (RETIRED)
Details
Patch for 2.1.5 (nano-2.1.5.patch,848 bytes, patch)
2008-12-26 14:52 UTC, Stefan Oswald
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description amadeus.bit 2008-10-06 23:30:51 UTC
If I move the cursor manually with the down button to the last line and press ctl+k (delete a line) nano crashes with a seg fault. But if I delete a line before and the cursor moves automaticly down, nano doesnt crash if I try to delete it.

dmesg: 
...
nano[7596]: segfault at 0 ip 40f25b sp 7fff6e455e30 error 4 in nano[400000+28000]


emerge --info
Portage 2.2_rc11 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Sun, 05 Oct 2008 20:04:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/ccache:     2.4-r8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     9999
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fno-ident"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -fno-ident"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy ccache distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/java-overlay /usr/local/portage/layman/sunrise /usr/local/portage/layman/openrc /usr/local/portage/layman/science /usr/local/portage/layman/desktop-effects /usr/local/portage/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa amd64 apm arts avahi berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt css cups dbus dri dvd dvdr dvdread emboss encode evo fam fbcon ffmpeg fortran fuse gdbm gif glitz gpm gstreamer gtk hal iconv isdnlog java javascript jpeg jpeg2k kde kerberos latex ldap libnotify lisp mad midi mikmod mmx mmxext mono mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin nvidia ogg openal opengl openmp oss pam pch pcre pdf perl png ppds pppd pulseaudio python qt3 qt3support qt4 quicktime readline reflection samba sdl session spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd tiff truetype unicode usb v4l v4l2 vorbis xcb xcomposite xinerama xml xorg xulrunner xv zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always

Steps to Reproduce:
1. open nano
2. move to the last line
3. press ctl+k

Actual Results:  
I cant remember this happen before, but I also cant remember that I try to delete an empty line. Perhaps it belongs to gcc-4.3.2. I made an emerge -e yesterday

Expected Results:  
nothing

gcc-4.3.2
amd64
core 2 quad
4GB DDR2-800
kernel-2.6.26-gentoo
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2008-10-07 13:32:46 UTC
Same here with 2.1.5. I add some logs and backtraces.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2008-10-07 13:33:22 UTC
Created attachment 167542 [details]
log of stderr
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2008-10-07 13:34:06 UTC
Created attachment 167544 [details]
backtrace.log
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2008-10-07 13:34:52 UTC
Created attachment 167545 [details]
emerge.info
Comment 5 SpanKY gentoo-dev 2008-10-19 06:56:09 UTC
fix from upstream added to nano-2.1.6-r2
Comment 6 Peter Alfredsen (RETIRED) gentoo-dev 2008-10-29 21:14:59 UTC
*** Bug 244919 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2008-12-26 14:31:03 UTC
*** Bug 252407 has been marked as a duplicate of this bug. ***
Comment 8 Stefan Oswald 2008-12-26 14:52:25 UTC
Created attachment 176439 [details, diff]
Patch for 2.1.5