OK, I ran into some kind of trouble with htop inside my screen today. When you start an htop against an ncurses lib which has been compiled with USE=gpm, htop dies immediately and prints this: "Aborted. Please report bug at http://htop.sf.net" So I grabbed the debugging symbols from my tarball and ran htop through gdb: (gdb) bt #0 0xf7dea5a3 in strlen () from /lib/libc.so.6 #1 0xf7d74d28 in Gpm_Open () from /lib/libgpm.so.1 #2 0xf7ec5ffa in enable_gpm_mouse () at /var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/ncurses/base/lib_mouse.c:390hread_db.so.1". #3 0xf7ec6a37 in _nc_mouse_init () at /var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/ncurses/base/lib_mouse.c:442 #4 0xf7ec6dd5 in mousemask (newmask=4, oldmask=0x0) at /var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/ncurses/base/lib_mouse.c:1264 #5 0x5655a80c in CRT_init (delay=15, colorScheme=0) at CRT.c:155 #6 0x5655d2b6 in main (argc=Cannot access memory at address 0x0) at htop.c:275 Portage 2.1.3.9 (hardened/x86/2.6, gcc-3.4.6, glibc-2.6.1-r0, 2.6.22-hardened-r8 i686) ================================================================= System uname: 2.6.22-hardened-r8 i686 Intel(R) Pentium(R) M processor 1300MHz Timestamp of tree: Sat, 27 Oct 2007 01:00:01 +0000 app-shells/bash: 3.2_p17 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0_rc5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -pipe -march=i686 -g -ggdb2" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/qmail/control" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -march=i686 -g -ggdb2" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y --usepkg" FEATURES="collision-protect distclean distlocks metadata-transfer sandbox sfperms splitdebug strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://distfiles.gentoo.org http://gentoo.osuosl.org" INSTALL_MASK="/usr/lib/debug /usr/share/gtk-doc /etc/logrotate.d /etc/xinetd.d /etc/init.d/shutdown.sh /etc/init.d/reboot.sh" LANG="en_US.UTF8" LC_ALL="en_US.UTF8" LDFLAGS="-Wl,-z,now -Wl,--sort-common" MAKEOPTS="-j4" PKGDIR="/usr/local/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="alsa arts bash-completion berkdb cracklib crypt dbus dri flac gpm hal hardened kde midi ncurses nptl nptlonly offensive opengl pam perl pic python qt qt3 readline ssl truetype unicode urandom x86 xinerama xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" KERNEL="linux" USERLAND="GNU" Unset: CTARGET, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY For the record, here is the output of a emerge -pv glibc ncurses htop: [binary R ] sys-libs/glibc-2.6.1 USE="hardened -debug -glibc-compat20 -glibc-omitfp -multilib -nls -profile (-selinux)" [binary R ] sys-process/htop-0.6.6 USE="-debug" [binary R ] sys-libs/ncurses-5.6-r1 USE="gpm unicode -bootstrap -build -debug -doc -minimal -nocxx -trace" I also tried it on my development box (which has a mouse attached to it), htop doesn't die there. They are both using the same binaries, so it's the only thing I can think of.
Still happens with 0.7.
(In reply to comment #0) > OK, I ran into some kind of trouble with htop inside my screen today. When you > start an htop against an ncurses lib which has been compiled with USE=gpm, htop > dies immediately and prints this: "Aborted. Please report bug at > http://htop.sf.net" Well, *have* you reported a bug on htop.sf.net? :>
And what about htop-0.8.1, which is stable or going stable now?