[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
xps package
xps <http://www.netwinder.org/~rocky/xps-home/>
をpackageにしてみました。
ただ問題があって、
1. rootで実行すると、XtAppInitialize中のmallocでSegmentation fault。
(gdb) run
Starting program: /usr/pkgsrc/x11/xps/work/xps-3.04/./xps
Program received signal SIGSEGV, Segmentation fault.
0x4024de00 in malloc ()
(gdb) where
#0 0x4024de00 in malloc ()
#1 0x4015f45a in copystring ()
#2 0x4015f6a9 in _X11TransConnectDisplay ()
#3 0x4016c224 in XOpenDisplay ()
#4 0x40129353 in XtOpenDisplay ()
#5 0x4012950d in _XtAppInit ()
#6 0x40130bec in XtOpenApplication ()
#7 0x40130cc8 in XtAppInitialize ()
#8 0x559a in CreateWindows (argc=1, argv=0xefbfdab8) at xstuff.c:834
#9 0x390b in main (argc=1, argv=0xefbfdab8) at xstuff.c:78
2. 例えばinitなどにkill HUP(process選んで、ACTION選んで、OK)をすると、
一回目は「kill signal error. Operation not Permitted」とwindowが出るが、
二回目はSegmentation fault。
Program received signal SIGSEGV, Segmentation fault.
0x400d2b79 in _XmStringUpdate ()
(gdb) where
#0 0x400d2b79 in _XmStringUpdate ()
#1 0x400d335e in _XmStringExtent ()
#2 0x40075017 in _XmCalcLabelGDimensions ()
#3 0x40076922 in set_values ()
#4 0x4013c973 in CallSetValues ()
#5 0x4013ced1 in XtSetValues ()
#6 0x40087caf in XmMbSetSubresources ()
#7 0x40087f70 in set_values ()
#8 0x4013c973 in CallSetValues ()
#9 0x4013ced1 in XtSetValues ()
#10 0x4014da61 in XtVaSetValues ()
#11 0x6bd3 in ShowDialog (parent=0x1b9c00, dialog_type=1,
str=0xefbfd5b4 "kill signal error:\nOperation not permitted")
at askquestion.c:114
#12 0x6e08 in do_process_action_callback (w=0x1b9c00, client_data=0x0,
call_data=0xefbfd720) at process.c:133
以上NetBSD 1.3I 2/20頃 + 1998/12/5頃のxsrcでテストしてます。
Solaris 2.5.1 sparcでは出ません。
ひょっとして 2.はlesstifのせい?
lesstif-0.87.1 API compatible clone of the Motif toolkit.
を使ってます。
sakamoto@cec.co.jp
--
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# .
# ./files
# ./files/md5
# ./pkg
# ./pkg/COMMENT
# ./pkg/DESCR
# ./pkg/PLIST
# ./Makefile
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/md5
sed 's/^X//' >./files/md5 << 'END-of-./files/md5'
XMD5 (xps-3.04.tar.gz) = 296f7292b5f04b65a6789dfa9eb87d05
END-of-./files/md5
echo c - ./pkg
mkdir -p ./pkg > /dev/null 2>&1
echo x - ./pkg/COMMENT
sed 's/^X//' >./pkg/COMMENT << 'END-of-./pkg/COMMENT'
Xdisplays the Unix processes as a tree of forest.
END-of-./pkg/COMMENT
echo x - ./pkg/DESCR
sed 's/^X//' >./pkg/DESCR << 'END-of-./pkg/DESCR'
XThe xps program displays in an X Window the Unix processes as a tree
Xor forest, the roots of the tree are on the left-hand side and the
Xleaf processes (with no children) are on the right-hand side. The
Xstatus of each process (running, sleeping, stopped, etc.) can be
Xindicated by a color. Different users can appear as different colors
Xtoo.
END-of-./pkg/DESCR
echo x - ./pkg/PLIST
sed 's/^X//' >./pkg/PLIST << 'END-of-./pkg/PLIST'
X@comment $NetBSD$
Xbin/xps
Xlib/X11/app-defaults/Xps
Xman/man1/xps.1
END-of-./pkg/PLIST
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# $NetBSD$
X
XDISTNAME= xps-3.04
XCATEGORIES= x11
XMASTER_SITES= ftp://ftp.netwinder.org/users/r/rocky/
X
XMAINTAINER= packages@netbsd.org
XHOMEPAGE= http://www.netwinder.org/~rocky/xps-home/
X
XGNU_CONFIGURE= yes
XUSE_GMAKE= yes
XUSE_X11BASE= yes
XUSE_USE_MOTIF= yes
X
X.include "../../mk/bsd.pkg.mk"
END-of-./Makefile
exit