Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Nov 2006 11:56:23 -0600
From:      "Scot Hetzel" <swhetzel@gmail.com>
To:        "Kostik Belousov" <kostikbel@gmail.com>
Cc:        freebsd-emulation@freebsd.org, freebsd-amd64@freebsd.org
Subject:   Re: [kib@freebsd.org: [src] cvs commit: src/sys/amd64/linux32 linux32_sysvec.c]
Message-ID:  <790a9fff0611020956i77e0908ald4e1bcd7e35797ce@mail.gmail.com>
In-Reply-To: <20061101090640.GQ1627@deviant.kiev.zoral.com.ua>
References:  <20061031182625.GM1627@deviant.kiev.zoral.com.ua> <200610311436.53134.jkim@FreeBSD.org> <790a9fff0610312356h44a7fd1bj7aafaae6646f0cc6@mail.gmail.com> <20061101090640.GQ1627@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/1/06, Kostik Belousov <kostikbel@gmail.com> wrote:
> > Doesn't help the compat.linux.osrelease: 2.6.16 case, as it is a
> > different problem involving thread-local storage.
> Does wine have a chance to run on amd64 ? I vaguely remember that wine wants
> allocation of segments in LDT, that is not implemented on amd64.
>
That is the current problem I am seeing with linux-wine.

When I had Divacky Roman's patch that had thread local storage
implemented in it, I was getting a segfault when running
wineprefixcreate.

> Oct 16 18:39:12 hp010 kernel: pid 88058 (wine), uid 1001: exited on
> signal 11 (core dumped)

Which I suspect was caused by the problem you had just fixed.  I tried
the new patch for the linuxator on the wiki site on -CURRENT.

It almost started, but failed in wine-preloader, but now I can't
reproduce this failure:

fatal process exception: page fault, fault VA = 0x48
Segmentation fault (core dumped)

messages:
Nov  2 08:36:53 hp010 kernel: linux(1380): set_thread_area(-1,
282ad6c0, fffff, 1, 0, 0, 1, 0, 1
Nov  2 08:36:53 hp010 kernel: )
Nov  2 08:36:53 hp010 kernel: linux(1380): set_tid_address(0x282ad708)
Nov  2 08:36:53 hp010 kernel: linux(1380): rt_sigaction(32, 0xffffd8cc, 0, 8)
Nov  2 08:36:53 hp010 kernel: linux(1380): rt_sigaction(33, 0xffffd8cc, 0, 8)
Nov  2 08:36:53 hp010 kernel: linux(1380): rt_sigprocmask(1, 0xffffdb84, 0, 8)
Nov  2 08:36:53 hp010 kernel: linux(1380): getrlimit(3, 0xffffdc0c)
Nov  2 08:36:53 hp010 kernel: linux(1380): mmap2(0, 67108864, 3,
0x00000022, -1, 0)
Nov  2 08:36:53 hp010 kernel: -> linux_mmap_common(0, 67108864, 7,
0x00001002, -1, 0x0)
Nov  2 08:36:53 hp010 kernel: -> linux_mmap_common() return: 0x0 (0x282ae000)
Nov  2 08:36:53 hp010 kernel: linux(1380): brk(0)
Nov  2 08:36:53 hp010 kernel: linux(1380): brk(0x806b000)
Nov  2 08:36:53 hp010 kernel: linux(1380): clone(flags 7d0f00, stack
2c2ad4c4, parent tid: 2c2adbf8, child tid: 2c2adbf8)
Nov  2 08:36:53 hp010 kernel: linux(1380): clone: successful rfork to
1381, stack 0x2c2ad4c4 sig = 0
Nov  2 08:36:53 hp010 kernel: linux(1380): futex(0x2c2adbf8, 0, 1381)
Nov  2 08:36:53 hp010 kernel: FUTEX_WAIT 1380: val = 1381, uaddr =
0x2c2adbf8, *uaddr = 1381, timeout = 0.000000000
Nov  2 08:36:53 hp010 kernel: FUTEX --> 1380 tlseep timeout = 0
Nov  2 08:36:53 hp010 kernel: linux(1381): gettid()
Nov  2 08:36:53 hp010 kernel: linux(1381): futex(0x2c2adbf8, 1, 2147483647)
Nov  2 08:36:53 hp010 kernel: FUTEX_WAKE 1381: uaddr = 0x2c2adbf8, val
= 2147483647
Nov  2 08:36:53 hp010 kernel: FUTEX_WAIT 1380: uaddr = 0x2c2adbf8, ret = 0
Nov  2 08:36:53 hp010 kernel: FUTEX_WAIT 1380: uaddr = 0x2c2adbf8, got
FUTEX_WAKE
Nov  2 08:36:53 hp010 kernel: linux(1380):
stat64(/compat/linux/usr/lib/../bin/wineserver, *)
Nov  2 08:36:53 hp010 kernel: linux(1380):
execve(/compat/linux/usr/lib/../bin/wine-preloader)
:
Nov  2 08:36:53 hp010 kernel: linux(1380): set_thread_area(-1,
9c2666c0, fffff, 1, 0, 0, 1, 0, 1
Nov  2 08:36:53 hp010 kernel: )
Nov  2 08:36:53 hp010 kernel: linux(1380): set_tid_address(0x48)
Nov  2 08:39:10 hp010 kernel: pid 1380 (wine-preloader), uid 0: exited
on signal 11 (core dumped)

This failure got as far as loading wine-preloader, before
wine-preloader core dumped, /compat/linux/usr/bin/wine was running, as
it was used to start wine-preloader.

Instead, it fails now fails with:

fatal process exception: page fault, fault VA = 0x8
Segmentation fault (core dumped)

messages:
Nov  2 08:47:17 hp010 kernel: linux(1251): set_thread_area(-1,
282ad6c0, fffff, 1, 0, 0, 1, 0, 1
Nov  2 08:47:17 hp010 kernel: )
Nov  2 08:47:17 hp010 kernel: pid 1251 (wine), uid 0: exited on signal
11 (core dumped)

Which occurs after wine executes set_thread_area.

Looks like it is getting closer to running linux-wine on -CURRENT.

If anyone wants a look at theses log files, let me know.

Scot

-- 
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0611020956i77e0908ald4e1bcd7e35797ce>