Subject: Re: Problems with wine
To: Stephen Nelson <st3phen@paradise.net.nz>
From: Alicia da Conceicao <alicia@engine.ca>
List: port-i386
Date: 01/05/2004 20:06:42
> > Try changing your ulimits and if that donesn't work, set BUILDLINK2=no in
> > wine at pkgsrc's and rebuild wine.
>
> changing ulimit allows me to run wine, but thats about as far as it goes -
> nothing pops up. If I exec 'wine --debugmsg +all notepad', I get a long
> stream of text, which suddenly stops with:
Dear Stephen:
Could you please let me know what your ulimit values, which you use to
be able to run Wine? I increased my ulimits without any luck, but I
would like to see what yours were set to. BTW, when I run the following,
I get the following output even though I have 512MB of ram and run as
root in case there is a problem with permissions.
========================================================================
> ldd /opt/pkg/bin/wine
ldd: mmap of bss failed: Cannot allocate memory
========================================================================
> ktrace /opt/pkg/bin/wine
> kdump
3992 ktrace EMUL "netbsd"
3992 ktrace CALL execve(0xbfbff833,0xbfbff714,0xbfbff71c)
3992 ktrace NAMI "/opt/pkg/bin/wine"
3992 ktrace NAMI "/usr/libexec/ld.elf_so"
3992 ktrace RET execve -1 errno 12 Cannot allocate memory
3992 ktrace CALL write(0x2,0xbfbfed00,0x8)
3992 ktrace GIO fd 2 wrote 8 bytes
"ktrace: "
3992 ktrace RET write 8
3992 ktrace CALL write(0x2,0xbfbfed30,0x22)
3992 ktrace GIO fd 2 wrote 34 bytes
"exec of '/opt/pkg/bin/wine' failed"
3992 ktrace RET write 34/0x22
3992 ktrace CALL write(0x2,0xbfbfecf0,0x2)
3992 ktrace GIO fd 2 wrote 2 bytes
": "
3992 ktrace RET write 2
3992 ktrace CALL issetugid
3992 ktrace RET issetugid 0
3992 ktrace CALL issetugid
3992 ktrace RET issetugid 0
3992 ktrace CALL open(0x480f4ff5,0,0x1b6)
3992 ktrace NAMI "/usr/share/nls/nls.alias"
3992 ktrace RET open 3
3992 ktrace CALL __fstat13(0x3,0xbfbfebec)
3992 ktrace RET __fstat13 0
3992 ktrace CALL break(0x804f000)
3992 ktrace RET break 0
3992 ktrace CALL read(0x3,0x804d000,0x2000)
3992 ktrace GIO fd 3 read 1520 bytes
"# $NetBSD: nls.alias,v 1.3 2003/04/14 05:21:51 salo Exp $
#
# This file defines aliase names of nls catalogs.
# Syntax is similar to X11's locale.alias.
# (The first word is an alias name and the second
# one is nls catalog name.)
ca_ES.ISO8859-1 ca
ca_ES.ISO8859-15 ca
cs_CZ.ISO8859-2 cs
#da_DK.ISO8859-1 da
#da_DK.ISO8859-15 da
de_AT.ISO8859-1 de
de_AT.ISO8859-15 de
de_CH.ISO8859-1 de
de_CH.ISO8859-15 de
de_DE.ISO8859-1 de
de_DE.ISO8859-15 de
#en_AU.ISO8859-1 en
#en_AU.ISO8859-15 en
#en_CA.ISO8859-1 en
#en_CA.ISO8859-15 en
#en_GB.ISO8859-1 en
#en_GB.ISO8859-15 en
#en_US.ISO8859-1 en
#en_US.ISO8859-15 en
#en_US.UTF-8 en
es_ES.ISO8859-1 es
es_ES.ISO8859-15 es
fi_FI.ISO8859-1 fi
fi_FI.ISO8859-15 fi
fr_BE.ISO8859-1 fr
fr_BE.ISO8859-15 fr
fr_CA.ISO8859-1 fr
fr_CA.ISO8859-15 fr
fr_CH.ISO8859-1 fr
fr_CH.ISO8859-15 fr
fr_FR.ISO8859-1 fr
fr_FR.ISO8859-15 fr
#hr_HR.ISO8859-2 hr
#hu_HU.ISO8859-2 hu
#is_IS.ISO8859-1 is
#is_IS.ISO8859-15 is
#it_CH.ISO8859-1 it
#it_CH.ISO8859-15 it
#it_IT.ISO8859-1 it
#it_IT.ISO8859-15 it
#ja_JP.ISO2022-JP ja
#ja_JP.ISO2022-JP2 ja
#ja_JP.SJIS ja
#ja_JP.ct ja
#ja_JP.eucJP ja
#ko_KR.eucKR ko
#lt_LT.ISO8859-4 lt
nl_BE.ISO8859-1 nl
nl_BE.ISO8859-15 nl
nl_NL.ISO8859-1 nl
nl_NL.ISO8859-15 nl
no_NO.ISO8859-1 no
no_NO.ISO8859-15 no
pl_PL.ISO8859-2 pl
#pt_PT.ISO8859-1 pt
#pt_PT.ISO8859-15 pt
#ru_RU.CP866 ru
#ru_RU.ISO8859-5 ru
#ru_RU.KOI8-R ru
#sl_SI.ISO8859-2 sl
sk_SK.ISO8859-2 sk
sv_SE.ISO8859-1 sv
sv_SE.ISO8859-15 sv
#uk_UA.KOI8-U uk
#zh_CN.eucCN zh
#zh_TW.Big5 zh
#zh_TW.eucTW zh
"
3992 ktrace RET read 1520/0x5f0
3992 ktrace CALL read(0x3,0x804d000,0x2000)
3992 ktrace RET read 0
3992 ktrace CALL close(0x3)
3992 ktrace RET close 0
3992 ktrace CALL open(0xbfbff188,0,0xbfbfecfc)
3992 ktrace NAMI "/usr/share/nls/C/libc.cat"
3992 ktrace RET open 3
3992 ktrace CALL __fstat13(0x3,0xbfbfecec)
3992 ktrace RET __fstat13 0
3992 ktrace CALL mmap(0,0x103b,0x1,0x1,0x3,0,0,0)
3992 ktrace RET mmap 1209057280/0x4810c000
3992 ktrace CALL close(0x3)
3992 ktrace RET close 0
3992 ktrace CALL munmap(0x4810c000,0x103b)
3992 ktrace RET munmap 0
3992 ktrace CALL write(0x2,0xbfbfecf0,0x17)
3992 ktrace GIO fd 2 wrote 23 bytes
"Cannot allocate memory
"
3992 ktrace RET write 23/0x17
3992 ktrace CALL exit(0x1)
========================================================================
On an older, non-functional notebook with NetBSD 1.60, I was able to run
a year old version of wine with MS-Office 2000. I packaged that wine and
the fake_windows drive and put it on a my new laptop with a new userland
and kernel from current, and it would freeze in the exact same manner you
described.
I can't help but think that the problem with Wine is likely kernel related,
since everything else in userland (X, browsers, openoffice, KDE, mplayer,
transcode, acroread, java, etc.) except for Wine works great.
Alicia.