Subject: pkg/8400: xcopilot exits immediately with saying `shmat: Invalid argument'
To: None <gnats-bugs@gnats.netbsd.org>
From: None <nagae@tk.airnet.ne.jp>
List: netbsd-bugs
Date: 09/13/1999 13:00:33
>Number: 8400
>Category: pkg
>Synopsis: xcopilot exits immediately with saying `shmat: Invalid argument'
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager (NetBSD software packages system bug manager)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Sep 13 12:20:01 1999
>Last-Modified:
>Originator: Nagae Hidetake
>Organization:
>Release: Sep 8, 1999 (xcopilot-0.6.6)
>Environment:
System: NetBSD dixie.nag.notwork.org 1.4J NetBSD 1.4J (DIXIE) #27: Mon Aug 16 00:12:25 JST 1999 nagae@dixie.nag.notwork.org:/usr/src/sys/arch/i386/compile/DIXIE i386
>Description:
xcopilot-0.6.6 exits immediately with the message:
`shmat: Invalid argument'.
>How-To-Repeat:
Build it and run `xcopilot'.
No input is needed.
>Fix:
The variable `pilot.threads' isn't initialized.
The following patch will fix this problem.
(I've already send this to xcopilot@cuspy.com)
*** xcopilot.c.orig Tue Aug 25 13:53:31 1998
--- xcopilot.c Thu Sep 9 21:03:25 1999
***************
*** 115,120 ****
--- 115,121 ----
if (pilot.DoublePixels)
pilot.MagFactor = 2;
+ pilot.threads = 0;
init(&pilot);
return 0;
}
>Audit-Trail:
>Unformatted: