Bug 1092874

Summary: [abrt] bsd-games: _IO_default_xsputn(): backgammon killed by SIGSEGV
Product: [Fedora] Fedora Reporter: shantanudutta1994
Component: bsd-gamesAssignee: Jeff Makey <jeff>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: low    
Version: 20CC: jcapik, jeff
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/8f6c7e5e0848310a12478fd90f22486bf0dd94f3
Whiteboard: abrt_hash:f478483797c72e6a54871bf896286ed477665a45
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-08 05:04:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: exploitable
none
File: limits
none
File: maps
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description shantanudutta1994 2014-04-30 07:29:40 UTC
Description of problem:
I'm using fedora 20 LXDE spin.
1. I pressed Alt+F2 (run).
2. I entered 'backgammon' (without quotes) and pressed enter.
3. 'Backgammon' didn't run.
3. After sometime 'Automatic Bug Reporting Tool' reported this problem

Version-Release number of selected component:
bsd-games-2.17-43.fc20

Additional info:
reporter:       libreport-2.2.1
backtrace_rating: 4
cmdline:        backgammon
crash_function: _IO_default_xsputn
executable:     /usr/bin/backgammon
kernel:         3.13.10-200.fc20.i686
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 _IO_default_xsputn at genops.c:447
 #1 _IO_vfprintf_internal at vfprintf.c:1316
 #2 buffered_vfprintf at vfprintf.c:2328
 #3 _IO_vfprintf_internal at vfprintf.c:1289
 #4 __fxprintf at fxprintf.c:50
 #5 perror_internal at perror.c:39
 #6 perror at perror.c:67
 #7 errexit at backgammon/common_source/subs.c:68
 #8 fixtty at backgammon/common_source/subs.c:441
 #9 getout at backgammon/common_source/subs.c:456

Comment 1 shantanudutta1994 2014-04-30 07:29:54 UTC
Created attachment 891039 [details]
File: backtrace

Comment 2 shantanudutta1994 2014-04-30 07:29:57 UTC
Created attachment 891040 [details]
File: cgroup

Comment 3 shantanudutta1994 2014-04-30 07:30:11 UTC
Created attachment 891041 [details]
File: core_backtrace

Comment 4 shantanudutta1994 2014-04-30 07:30:14 UTC
Created attachment 891042 [details]
File: dso_list

Comment 5 shantanudutta1994 2014-04-30 07:30:17 UTC
Created attachment 891043 [details]
File: environ

Comment 6 shantanudutta1994 2014-04-30 07:30:19 UTC
Created attachment 891044 [details]
File: exploitable

Comment 7 shantanudutta1994 2014-04-30 07:30:21 UTC
Created attachment 891045 [details]
File: limits

Comment 8 shantanudutta1994 2014-04-30 07:30:27 UTC
Created attachment 891046 [details]
File: maps

Comment 9 shantanudutta1994 2014-04-30 07:30:32 UTC
Created attachment 891047 [details]
File: open_fds

Comment 10 shantanudutta1994 2014-04-30 07:30:41 UTC
Created attachment 891048 [details]
File: proc_pid_status

Comment 11 shantanudutta1994 2014-04-30 07:30:44 UTC
Created attachment 891049 [details]
File: var_log_messages

Comment 12 Jeff Makey 2014-05-07 16:00:02 UTC
The backgammon game does not have a GUI interface, so running it as you did will never work.  To play the game, run it from the command line in a terminal emulator.

The SIGSEGV that led to this bug report can be reproduced by invoking the program as "backgammon < /dev/null", which rapidly generates a long list of "fixtty: Inappropriate ioctl for device" error messages until stack space is exhausted as it recursively tries and fails to treat /dev/null as a tty.  (If you run it this way, suspend the process with CTRL/Z and then kill it if you don't want to wait.)  It should not be difficult to make backgammon deal with this situation more gracefully.