Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79128 - Wine and wine-pthread are killed whenever they are run
Summary: Wine and wine-pthread are killed whenever they are run
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
: 82175 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-22 12:53 UTC by Michael Donaghy
Modified: 2005-02-27 03:05 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Donaghy 2005-01-22 12:53:54 UTC
Wine was previously running fine, but now whenever I run wine or wine-pthread I get a message like
/usr/bin/wine: line 55: 16198 Killed                  WINEDEBUG=-all "$RUNWINE" "$@". I have tried unmerging and emerging wine-20040716, wine-20041019, and wine-20050111. All of them give the same result. This may be a dupe of 28612, but since that is old, marked as resolved, and yet does not have a solution in the discussion, I'm filing it separately (apologies if this is not what I should have done).

Reproducible: Always
Steps to Reproduce:
1.Run wine or wine-pthread with any arguments
Actual Results:  
bash-2.05b$ wine /c/windows/sol.exe 
/usr/bin/wine: line 55: 16203 Killed                  WINEDEBUG=-all "$RUNWINE" 
"$@"
bash-2.05b$ wine foo                
/usr/bin/wine: line 55: 16207 Killed                  WINEDEBUG=-all "$RUNWINE" 
"$@"

Expected Results:  
Wine should run the given program, or give a useage statement.

(The system was originally slackware but most software including everything wine 
depends on is now gentoo, and this problem has only occured after I switched)
Emerge info:
Portage 20041110, Emerde 1.2.3 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.
4.20040808-r1, 2.4.26-gentoo-r14 i686)
=================================================================
System uname: 2.4.26-gentoo-r14 i686 AMD Duron(tm) processor
Slackware 10.0
distcc 2.16 i486-slackware-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled]
Autoconf: sys-devel/autoconf-2.59-r6,sys-devel/autoconf-2.13
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1,sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
Python:   dev-lang/python-2.3.4  [2.3.4 (#1, Oct 17 2004, 10:21:50)]
ACCEPT_KEYWORDS="x86"
CFLAGS="-O2 -mcpu=athlon -pipe"
CHOST="i486-slackware-linux"
CONFIG_PROTECT="/etc /opt/kde/share/config /usr/X11R6/lib/X11/xkb /usr/kde/2/
share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /
usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/
share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /
usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/
share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=athlon -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/
Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X Xaw3d a52 aac aalib acpi acpi4linux adns alsa apm arts 
artswrappersuid artworkextra async atm audiofile avi berkdb bitmap-fonts c++ 
cdda cddb cdio cdparanoia cdr crypt cscope css cups curl dga dhcp directfb 
divx4linux djbfft doc dv dvd dvdread encode f77 faad fam fame fbcon ffmpeg flac 
flash font-server foomaticdb fortran fpix freedts freetype gcj gd gdbm ggi gif 
glut gmp gnome gnustep gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml 
guile httpd imagemagick imap imlib imlib2 insecure-drivers ipv6 ithreads jack 
java jbig jce jikes joystick jpeg jpeg2k junit kde ladcca largeterminal libcaca 
libg++ libwww linguas_en_GB live lzo mad mcal mikmod mjpeg mmx mmx2 mng motif 
mozilla mozsvg mozxmlterm mp3 mpeg mpeg2 mysql nas ncurses network nls nntp 
nodrm nowin nvidia objc odbc ogg oggvorbis opengl passfile pcre pdflib perl pic 
png postgres povray ppds python qt quicktime readline real rplay rtc samba 
scanner sdk sdl slang slp speex spell ssl stream svg svga tcltk tcpd theora 
threads tiff truetype truetype-fonts type1-fonts unicode usb utf8 uudeview vcd 
vim-with-x vlm vorbis winbind wmf wxwindows xanim xface xine xml xml2 xmms 
xprint xv xvid xvmc yv12 zlib"
Strace in case it helps anyone:
execve("/usr/bin/wine", ["wine", "foo"], [/* 66 vars */]) = 0
brk(0)                                  = 0x80e4a74
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=173282, ...}) = 0
old_mmap(NULL, 173282, PROT_READ, MAP_PRIVATE, 3, 0) = 0x1556c000
close(3)                                = 0
open("/lib/libtermcap.so.2", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\r\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=11920, ...}) = 0
old_mmap(NULL, 14504, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x15597000
old_mmap(0x1559a000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_DENYWRITE, 3, 0x2000) = 0x1559a000
close(3)                                = 0
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\34"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=10964, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x1559b000
old_mmap(NULL, 8624, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x1559c000
old_mmap(0x1559e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_DENYWRITE, 3, 0x2000) = 0x1559e000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@U\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1189920, ...}) = 0
old_mmap(NULL, 1115716, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x1559f000
old_mmap(0x156aa000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_DENYWRITE, 3, 0x10b000) = 0x156aa000
old_mmap(0x156ad000, 9796, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0x156ad000
close(3)                                = 0
munmap(0x1556c000, 173282)              = 0
open("/dev/urandom", O_RDONLY)          = 3
read(3, "|\213\r\353", 4)               = 4
close(3)                                = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3
close(3)                                = 0
brk(0)                                  = 0x80e4a74
brk(0x80e5000)                          = 0x80e5000
brk(0x80e6000)                          = 0x80e6000
getuid32()                              = 1000
getgid32()                              = 100
geteuid32()                             = 1000
getegid32()                             = 100
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
time(NULL)                              = 1106426350
brk(0x80e7000)                          = 0x80e7000
brk(0x80e8000)                          = 0x80e8000
open("/etc/mtab", O_RDONLY)             = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=307, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x1556c000
read(3, "/dev/hdb2 / reiserfs rw 0 0\n/dev"..., 4096) = 307
close(3)                                = 0
munmap(0x1556c000, 4096)                = 0
open("/proc/meminfo", O_RDONLY)         = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x1556c000
read(3, "        total:    used:    free:"..., 4096) = 524
close(3)                                = 0
munmap(0x1556c000, 4096)                = 0
close(3)                                = 0
munmap(0x1556c000, 4096)                = 0
brk(0x80e9000)                          = 0x80e9000
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0
uname({sys="Linux", node="desktop", ...}) = 0
brk(0x80ea000)                          = 0x80ea000
brk(0x80eb000)                          = 0x80eb000
brk(0x80ec000)                          = 0x80ec000
stat64("/home/michael", {st_mode=S_IFDIR|0711, st_size=9488, ...}) = 0
stat64(".", {st_mode=S_IFDIR|0711, st_size=9488, ...}) = 0
getpid()                                = 16264
getppid()                               = 16263
brk(0x80ed000)                          = 0x80ed000
getpgrp()                               = 16263
rt_sigaction(SIGCHLD, {0x80765e0, [], SA_RESTORER, 0x155c7db8}, {SIG_DFL}, 8) = 
0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
open("/usr/bin/wine", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x3ffff1fc) = -1 ENOTTY (Inappropriate 
ioctl for device)
_llseek(3, 0, [0], SEEK_CUR)            = 0
read(3, "#!/bin/bash\n# The wine wrapper\n\n"..., 80) = 80
_llseek(3, 0, [0], SEEK_SET)            = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
dup2(3, 255)                            = 255
close(3)                                = 0
fcntl64(255, F_SETFD, FD_CLOEXEC)       = 0
fcntl64(255, F_GETFL)                   = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat64(255, {st_mode=S_IFREG|0755, st_size=1370, ...}) = 0
_llseek(255, 0, [0], SEEK_CUR)          = 0
brk(0x80ee000)                          = 0x80ee000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "#!/bin/bash\n# The wine wrapper\n\n"..., 1370) = 1370
brk(0x80ef000)                          = 0x80ef000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0 
brk(0x80f0000)                          = 0x80f0000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
stat64("/home/michael/.wine/config", {st_mode=S_IFREG|0644, st_size=7686, ...}) 
= 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0 
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0 
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0 
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
brk(0x80f1000)                          = 0x80f1000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
brk(0x80f2000)                          = 0x80f2000
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
fork()                                  = 16265
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x8075660, [], SA_RESTORER, 0x155c7db8}, {SIG_DFL}, 8) = 0
waitpid(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGKILL}], 0) = 16265
uname({sys="Linux", node="desktop", ...}) = 0
write(2, "/usr/bin/wine: line 55: 16265 Ki"..., 85/usr/bin/wine: line 55: 16265 
Killed                  WINEDEBUG=-all "$RUNWINE" "$@"
) = 85
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0x3fffee0c, WNOHANG)        = -1 ECHILD (No child processes)
sigreturn()                             = ? (mask now [])
rt_sigaction(SIGINT, {SIG_DFL}, {0x8075660, [], SA_RESTORER, 0x155c7db8}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "", 1370)                     = 0
exit_group(137)
Comment 1 SpanKY gentoo-dev 2005-01-24 15:30:29 UTC
do you have anything in `dmesg` ?
Comment 2 Michael Donaghy 2005-01-25 13:07:33 UTC
Nothing different from before trying to run it. Looking in syslog there are no messages from the last half hour other than uptimed telling me I'm moving up position and people trying to crack my samba server.
Comment 3 Ben Schwartz 2005-01-29 07:30:54 UTC
I experience the _exact_ same behavior.

bash-2.05b# emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.2, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-hardened-r3 
i686)
=================================================================
System uname: 2.6.10-hardened-r3 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.2.3-r1,dev-lang/python-2.3.4 [2.3.4 (#1, Oct 21 2004, 00:57:41
)]
ccache version 2.3 [enabled]
dev-lang/python:     2.2.3-r1, 2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.9.4, 1.5, 1.6.3, 1.7.9, 1.4_p6, 1.8.5-r2
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r3
virtual/os-headers:  2.6.8.1-r1, 2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -fomit-frame-pointer -ftracer
"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kd
e/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /
usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /
usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -fomit-frame-pointer -ftrac
er"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks fixpackages sandbox sfperms usersandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/mirror/distro.ibiblio.org/pub/linux/distributions/gentoo/ rsy
nc://darkstone.rdg.ac.uk/gentoo-portage ftp://ftp.heanet.ie/pub/gentoo/"
LDFLAGS=" -Wl,-O1 -Wl,--enable-new-dtags"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d aalib acl acpi aim alsa apache2 apm ared atlas audiofile avi berkdb bitmap-fonts bzl
ib cdparanoia cdr crypt cups dga directfb divx4linux dlloader doc dvd edl emacs encode esd exif f77 f
am fbcon fftw fla flac font-server foomaticdb fortran ftp gb gd gdbm ggi gif ginac gmp gpm gtk gtk2 g
uile hardened hardenedphp icc icq imagemagick imap imlib ipv6 jabber jack java jikes jit jpeg junit k
erberos krb4 ladcca lcms ldap libcaca libg++ libwww mad matroska mbox mikmod mime ming mmx mmx2 mng m
otif mpeg msn mysql ncurses network nls nptl nptlonly offensive oggvorbis opengl oscar oss pam pdflib
 perl plotutils png pnp posix python quicktime readline sdl session slang softmmu speex spell sse sse
2 ssl svg svga svgalib sysvipc tcpd tetex theora tidy tiff truetype truetype-fonts type1-fonts usb vi
deos wmf wxwindows xine xinerama xml xml2 xmms xpm xv xvid yahoo zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL
Comment 4 Ben Schwartz 2005-01-29 08:16:44 UTC
I tried a wine binary ebuild:
http://www.moomoomoo.plus.com/wine-bin-20041019.ebuild
modified by removing the emulation dependency (the ebuild is originally for amd64, but the binary is 32bit x86).

I still get the same behavior.  So the problem is not the compiler (I'm running a hardened system, gcc included).
Comment 5 Ben Schwartz 2005-01-29 11:20:53 UTC
I have two kernels in /boot:2.6.10-hardened-r3 and 2.6.10-ck5
Rebooting into 2.6.10-ck5 makes this problem go away.
In my hardened kernel, I have PaX and GRSec active.

It would seem that wine is running afoul of hardened, despite the facts that:
a. nothing shows up in dmesg, as I would expect it to.
b. I had already done paxctl -pemrxs /usr/lib/wine/bin/wine (or whatever the flags are to disable all PaX limitations).
c. Michael wasn't running a hardened kernel.
Comment 6 SpanKY gentoo-dev 2005-02-12 11:50:14 UTC
could give wine-20050211 a shot ...
Comment 7 Hans Kwint 2005-02-15 06:59:51 UTC
Have the same problem here,

running wine-20041019,
2.6.10-hardened-r1 and 
2.6.10-hardened-r2 wine fails with the mentioned 'Killed' message,
but on 2.6.10-gentoo-r5 (gentoo-dev-sources) it runs fine.
(I also have PaX and GrSec active in my hardened kernel)

I know I probably don't run the latest things (kernel / wine), but just want to add it.

Tried chpax, unsetting all pax-things in /etc/conf.d/chpax (adding ${wine} to all last six lines) but still didn't help.

Also noticed:
quote: Ben Schartz: "c. Michael wasn't running a hardened kernel."
quote: Michael Donaghy: "The system was originally slackware but MOST software including everything wine depends on is now gentoo"
Maybe MOST is not all software? Strange most of the people experiencing the bug were using hardened-kernel.
Comment 8 David Guembel (RETIRED) gentoo-dev 2005-02-15 09:55:29 UTC
Wine needs the capability to map memory ranges as executable, fill them with run-time generated code, and run that code. Please read [1] carefully and verify that your problem is definetly fully independent of PaX. 

Running paxctl on the wine binary itself does not suffice to exclude PaX restrictions on the entire Wine - e.g. the posting [1] mentions Wine's ntdll being marked with an ELF flag indicating the need to have an executable stack.

[1] http://www.winehq.org/hypermail/wine-devel/2005/01/0154.html
Comment 9 Michael Donaghy 2005-02-15 12:56:05 UTC
I have no PaX and am using default gentoo-sources with grsecurity disabled. Anything left over will be vanilla slackware, which doesn't (to the best of my knowledge) include any particular "hardened" elements. I couldn't accidentally have such a thing installed, could I? Also the fact that it used to work and no longer does and I have only been using gentoo packages over the time this changed suggests it isn't a problem with any old slackware packages.
Comment 10 David Guembel (RETIRED) gentoo-dev 2005-02-15 13:33:23 UTC
Michael, I saw that you are not running anything hardened; I was refering to the people using PaX and experiencing similar behaviour. I am pretty certain their problems are PaX-related.

Your (Michael) /usr/bin/wine seems to be a shell script, however my /usr/bin/wine (as of wine-20050111) is a binary. Please post the output of

1. which wine; which wine-pthread

2. epm -qf $(which wine); epm -qf $(which wine-pthread)
(please emerge epm if you don't have it installed ;)

3. file $(which wine); file $(which wine-pthread)

4. gcc-config -l

If /usr/bin/wine is really a shell script on your system, please attach it to this bug as well. Thanks.
Comment 11 Michael Donaghy 2005-02-16 14:08:40 UTC
It was a shell script in the older build. Having upgraded to 20050111 as soon as it became marked stable it is now no longer a shell script, but still not working; it simply emits the message "Killed".
1.
bash-2.05b$ which wine;which wine-pthread
/usr/bin/wine
/usr/bin/wine-pthread
2.
bash-2.05b$ epm -qf $(which wine); epm -qf $(which wine-pthread)
wine-20050111
wine-20050111
3.
bash-2.05b$ file $(which wine);file $(which wine-pthread)
/usr/bin/wine: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.0.0, dynamically linked (uses shared libs), stripped
/usr/bin/wine-pthread: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.0.0, dynamically linked (uses shared libs), stripped
4.
bash-2.05b$ gcc-config -l
 * /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/i486-slackware-linux-3.3.5
[1] i486-slackware-linux-3.3.4
[2] i486-slackware-linux-3.3.5 *
[3] i486-slackware-linux-3.3.5-hardened
[4] i486-slackware-linux-3.3.5-hardenednopie
[5] i486-slackware-linux-3.3.5-hardenednossp
Comment 12 SpanKY gentoo-dev 2005-02-16 20:17:15 UTC
*** Bug 82175 has been marked as a duplicate of this bug. ***
Comment 13 Michael Donaghy 2005-02-20 09:56:36 UTC
I have just upgraded my kernel to 2.4.28-gentoo-r7 and this problem has disappeared (I have upgraded other packages in the time between, just emerge -U world, but none I think would affect wine)
Comment 14 Hans Kwint 2005-02-20 13:00:00 UTC
I solved 'my' PaX / wine bug, turned out I shouldn't use chpax but paxctl-0.2, so if you want to use PaX, you should (of course) run paxctl, cause chpax is deprecated. My fault! But it works fine now.

(Might help for Ben Schwartz too maybe? He also uses PaX).

Sorry for posting, but I thought it might have been a bug.
Comment 15 Hans Kwint 2005-02-21 14:21:00 UTC
Uhhm, a comment to my previous post:
I didn't mention I reinstalled whole Gentoo, and after reading bugs marked as a duplicate of this one, let me tell the following:
-If you do a stage3-install (2004-2), so no hardened gcc and glibc, and if you use  paxctl-0.2, wine works.

I think it has to do with hardened glibc / gcc, because when I did a stage1 install of Gentoo, so hardened gcc and glibc, I got the mentioned error. 
Comment 16 Jerzy Kozera 2005-02-22 03:41:43 UTC
I did paxctl -psmxer `which wine-preloader`, now I can use wine with my 2.6.10 hardened/pax kernel.
Comment 17 Michael Donaghy 2005-02-22 09:19:25 UTC
OK, that's good, but "my" bug appeared and disappeared without anything that seems linked to PaX or similar.
Comment 18 David Guembel (RETIRED) gentoo-dev 2005-02-26 06:21:06 UTC
OK, so as fas as I can see, everybody is happy. I have no idea what caused this bug for you, Michael, so I'm closing this bug with CANTFIX.
Comment 19 David Guembel (RETIRED) gentoo-dev 2005-02-26 06:24:54 UTC
Closing. The original bug reporter (who didn't use with PaX) saw the problem sort of magically disappear.
Comment 20 Michael Donaghy 2005-02-27 03:05:38 UTC
No magic. It simply doesn't occur with a newer (2.4.28-r7) kernel. I can still reproduce it by booting 2.4.26-r14. I'm happy to leave it since wine now works for me, but the bug is still there.