On amd64 and x86, nethack 3.4.3 crashes when Ctrl + z is pressed. Reproducible: Always Steps to Reproduce: 1. Start Nethack with any gui you want 2. Create a caracter 3. Press Ctrl Z Actual Results: And then it crashes
Some gdb output: (gdb) run Starting program: /usr/share/games/nethack/nethack Warning: Cannot convert string "nh10" to type FontStruct Program received signal SIGTSTP, Stopped (user). 0x0000002a968de449 in kill () from /lib/libc.so.6 (gdb) cont Continuing. Program received signal SIGTSTP, Stopped (user). 0x0000002a968de449 in kill () from /lib/libc.so.6 (gdb) cont Continuing. Detaching after fork from child process 1602. Program exited with code 01. As you can see, after contInuing twice, the game goes on.
Works fine for me with +X +gnome -qt. Reopen with output from emerge --info please.
Still crashes. Portage 2.0.50-r9 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.4.20040605-r0, 2.6.7-gentoo-r9) ================================================================= System uname: 2.6.7-gentoo-r9 x86_64 4 Gentoo Base System version 1.4.16 distcc 2.13 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache" GENTOO_MIRRORS="ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.gentoo.skynet.be/pub/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://128.213.5.34/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3ds X aalib acl acpi acpi4linux alsa amd64 apm ardour-ksi arts audiofile avi bidi bindist bonobo caps cddb cdr chroot cjk crypt curl dedicated dnd dvd dvdr editor encode esd faad fastcgi fbcon fbdev fftw flash foomaticdb foreign-package fusion gd gdbm ggi gif gimpprint gpm gstreamer gtk gtk2 gtkhtml guile hbci icq imagemagick imap imlib imlib2 ipv6 javascript joystick jpeg ldap libg++ libsamplerate libwww mad memlimit mikmod mldonkeypango mng mono motif mozilla moznoirc mozsvg mpeg mpeg4 mule multilib music nas ncurses net nls nocardbus nocd nogcj nowin nptl nvidia offensive oggvorbis openal opengl oscar oss pam parse-clocks passfile pdflib perl physfs plotutils png ppds pthreads python quicktime readline samba scanner sdk sdl slang slp snmp speex spell ssl stencil-buffer svg tcltk tcpd theora tiff timidity tools transcode truetype usb videos wmf wxwin wxwindows xchattext xine xinerama xml xml2 xmms xosd xv xvid zlib"
Looks like for you emerge -vp nethack would show: games-roguelike/nethack-3.4.3-r1 -X -gnome -qt Right?
Nope, it's games-roguelike/nethack-3.4.3-r1 +X -gnome -qt
Using those use flags still works fine for me. What's the output of "which nethack" What's the output of "ldd /usr/share/games/nethack/nethack" Try remerging nethack-3.4.3-r1 (the -r1 is probably newer than what you had)
ib@gm ib $ which nethack /usr/games/bin/nethack ldd /usr/share/games/nethack/nethack libncurses.so.5 => /lib/libncurses.so.5 (0x0000002a95658000) libXaw.so.7 => /usr/X11R6/lib/libXaw.so.7 (0x0000002a957b2000) libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x0000002a9591e000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x0000002a95a36000) libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x0000002a95b46000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x0000002a95ca7000) libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x0000002a95e83000) libc.so.6 => /lib/libc.so.6 (0x0000002a95f93000) libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x0000002a9619e000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x0000002a962a8000) libdl.so.2 => /lib/libdl.so.2 (0x0000002a963c2000) /lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x0000002a95556000) nethack-3.4.3-r1 crashes too, also on my old (x86)laptop.
Couple of things: Try it with CFLAGS="-pipe" Post the output of "emerge -vep nethack" please.
Created attachment 35181 [details] Output of emerge -vep nethack
> Try it with CFLAGS="-pipe" Still the same
You said that you get the same results when doing a CTRL+z on an x86 box?
Yes, it did (don't know if it still does, got no gentoo box atm). Oh, and expected behavoir on ctrl+z is suspend ("boss key")
I can't make it fail. I'm marking it WORKSFORME. Reopen if it's reproducible.