I wrapped rlwrap around sftp. After some time of inactivity, I got an error message and rlwrap crashed. I could reproduce this several times so far, but don't know what exactly triggerd this problem. As the error message suggests compiling rlwrap with --enable-debug, I would like the debug USE flag available for the rlwrap ebuild. Reproducible: Sometimes Steps to Reproduce: 1. rlwrap sftp hostname 2. type some commands 3. wait some time (10 minutes or so) 4. Type more commands Actual Results: rlwrap: Oops, segfault - this should not have happened! re-configure with --enable-debug if you want a core dump Resetting terminal and cleaning up... Inconsistency detected by ld.so: dl-fini.c: 180: _dl_fini: Assertion `ns != 0 || i == nloaded' failed! Expected Results: typed commands executed by sftp, no crash Portage 2.0.53_rc7 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14-gentoo i686) ================================================================= System uname: 2.6.14-gentoo i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.12.0_pre11 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20-r1 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -O2" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=prescott -O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.inode.at/ http://mir.zyrianes.net/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://194.117.143.71" LINGUAS="en de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/java-axxo" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="x86 X aac aalib acpi alsa apache2 apm arts auctex audiofile avi bash-completion bcmath berkdb bigger-fonts bitmap-fonts bzip2 bzlib c++ cairo cdparanoia cdr chroot crypt css cups curl dba dhcp dnd doc dts dv dvd eds emboss encode escreen esd ethereal exif expat faad fam fastcgi fbcon ffmpeg fftw firefox flac flatfile foomaticdb fortran ftp gcc-libffi gd gdbm gif gimp gimpprint glut gmp gnutls gpm graphviz gs gstreamer gtk gtk2 guile idn imagemagick imlib ipv6 java jpeg junit kde latex lcms ldap libcaca libg++ libwww lirc lm_sensors lzo lzw mad maildir mailwrapper mhash mikmod mime mjpeg mmx mng motif mozilla moznocompose mozxmlterm mp3 mpeg mpeg2 mplayer mpm-worker mule mysql ncurses net network nls no-old-linux nptl nsplugin odbc ogg oggvorbis opengl operanom2 oss pam pcre pdf pdflib perl php pic pie plotutils png postgres povray procmail python qt quicktime rdesktop readline real recode samba sasl savedconfig sdl slang smime sndfile sockets sox spell sse sse2 ssl svg svga tcltk tcpd tetex threads thunderbird tiff tokenizer transcode translator truetype truetype-fonts type1 type1-fonts udev unicode usb userlocales utf8 v4l v4l2 vorbis wmf xanim xchattext xemacs xine xml xml2 xmms xv xvid xvmc zlib fritzcapi_cards_fcpci linguas_en linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
I got a stack trace in gdb: #0 0x4996d455 in rl_redisplay () from /lib/libreadline.so.5 #1 0x499615ac in readline_internal_setup () from /lib/libreadline.so.5 #2 0x49972ff0 in _rl_read_mbstring () from /lib/libreadline.so.5 #3 0x0804b44a in ?? () #4 0x0804e600 in ?? () #5 0x0804b486 in ?? () #6 0x000001ff in ?? () #7 0x00000052 in ?? () #8 0x00000050 in ?? () #9 0x00000000 in ?? () #10 0xbf91eea8 in ?? () #11 0x0804a43c in ?? () #12 0x0804e400 in ?? () #13 0xbf91ec62 in ?? () #14 0x00000200 in ?? () #15 0x00000000 in ?? () #16 0x00000000 in ?? () #17 0xb7ee5290 in ?? () #18 0xb7ea6750 in ?? () from /lib/libncurses.so.5 #19 0xbf91ec30 in ?? () #20 0xb7f12cbd in do_lookup_x () from /lib/ld-linux.so.2
I updated rlwrap to 0.24 and added support for USE=debug in that version, does that help?
No response after about a year.