Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51057 - Nethack crashes on Ctrl+z
Summary: Nethack crashes on Ctrl+z
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-14 07:34 UTC by Alexander Brüning
Modified: 2004-09-24 03:09 UTC (History)
0 users

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


Attachments
Output of emerge -vep nethack (output.txt,4.79 KB, text/plain)
2004-07-11 07:31 UTC, Alexander Brüning
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Brüning 2004-05-14 07:34:47 UTC
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
Comment 1 Alexander Brüning 2004-05-16 10:07:21 UTC
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.
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2004-07-10 02:31:07 UTC
Works fine for me with +X +gnome -qt.

Reopen with output from emerge --info please.
Comment 3 Alexander Brüning 2004-07-10 10:56:03 UTC
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"
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2004-07-10 14:02:33 UTC
Looks like for you emerge -vp nethack would show:

games-roguelike/nethack-3.4.3-r1  -X -gnome -qt

Right?
Comment 5 Alexander Brüning 2004-07-10 14:45:42 UTC
Nope, it's
games-roguelike/nethack-3.4.3-r1  +X -gnome -qt
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2004-07-10 15:19:35 UTC
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)
Comment 7 Alexander Brüning 2004-07-10 16:48:21 UTC
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.
Comment 8 Mr. Bones. (RETIRED) gentoo-dev 2004-07-10 19:10:53 UTC
Couple of things:

Try it with CFLAGS="-pipe"
Post the output of "emerge -vep nethack" please.
Comment 9 Alexander Brüning 2004-07-11 07:31:59 UTC
Created attachment 35181 [details]
Output of emerge -vep nethack
Comment 10 Alexander Brüning 2004-07-11 07:32:31 UTC
> Try it with CFLAGS="-pipe"
Still the same
Comment 11 Chris Gianelloni (RETIRED) gentoo-dev 2004-08-31 14:33:57 UTC
You said that you get the same results when doing a CTRL+z on an x86 box?
Comment 12 Alexander Brüning 2004-08-31 15:34:53 UTC
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")
Comment 13 Mr. Bones. (RETIRED) gentoo-dev 2004-09-24 03:09:28 UTC
I can't make it fail.  I'm marking it WORKSFORME.  Reopen if it's reproducible.