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
Same here with 2.1.5. I add some logs and backtraces.
Created attachment 167542 [details] log of stderr
Created attachment 167544 [details] backtrace.log
Created attachment 167545 [details] emerge.info
fix from upstream added to nano-2.1.6-r2
*** Bug 244919 has been marked as a duplicate of this bug. ***
*** Bug 252407 has been marked as a duplicate of this bug. ***
Created attachment 176439 [details, diff] Patch for 2.1.5