Bug 1092874 - [abrt] bsd-games: _IO_default_xsputn(): backgammon killed by SIGSEGV
Summary: [abrt] bsd-games: _IO_default_xsputn(): backgammon killed by SIGSEGV
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: bsd-games
Version: 20
Hardware: i686
OS: Unspecified
low
unspecified
Target Milestone: ---
Assignee: Jeff Makey
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:f478483797c72e6a54871bf8962...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-30 07:29 UTC by shantanudutta1994
Modified: 2014-05-08 05:04 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-08 05:04:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (215.70 KB, text/plain)
2014-04-30 07:29 UTC, shantanudutta1994
no flags Details
File: cgroup (159 bytes, text/plain)
2014-04-30 07:29 UTC, shantanudutta1994
no flags Details
File: core_backtrace (249.71 KB, text/plain)
2014-04-30 07:30 UTC, shantanudutta1994
no flags Details
File: dso_list (483 bytes, text/plain)
2014-04-30 07:30 UTC, shantanudutta1994
no flags Details
File: environ (1.70 KB, text/plain)
2014-04-30 07:30 UTC, shantanudutta1994
no flags Details
File: exploitable (82 bytes, text/plain)
2014-04-30 07:30 UTC, shantanudutta1994
no flags Details
File: limits (1.29 KB, text/plain)
2014-04-30 07:30 UTC, shantanudutta1994
no flags Details
File: maps (1.53 KB, text/plain)
2014-04-30 07:30 UTC, shantanudutta1994
no flags Details
File: open_fds (138 bytes, text/plain)
2014-04-30 07:30 UTC, shantanudutta1994
no flags Details
File: proc_pid_status (792 bytes, text/plain)
2014-04-30 07:30 UTC, shantanudutta1994
no flags Details
File: var_log_messages (317 bytes, text/plain)
2014-04-30 07:30 UTC, shantanudutta1994
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.