You are not logged in.

#1 2009-04-12 15:16:02

Sylence
Member
Registered: 2009-04-12
Posts: 7

[solved]wine segfaults immediately

Hello fellow Archers,

I have been using Arch for nearly a year now, without unsolvable problems,
but now I have this annoying problem with wine:
Every time I want to start anything related to wine it just segfaults (memory access violation).
dmesg: wine[5201]: segfault at 89f87589 ip 89f87589 sp bfac915c error 4

this appears, even if I just do "wine --help"

It was still working after the Update to Kernel 2.6.29.1, and between the last time it worked and the moment it started segfaulting I only compiled and installed xine-cvs and xine-lib-vdpau-svn, I did not even reboot the system.
Changing the Kernel does not seem to help.

What I've tried so far:
moving ~/.wine
de-/reinstalling wine
removing the wine-related tools
compiling wine myself
reinstalling wine's dependencies
compiling the dependencies myself

I even tried a strange suggestion from an old bugtracker entry, but it didn't help ...

sorry, I have no idea, what is going on.

My System:
Asus V1Sn Laptop
Intel C2D T7?00 2,4GHz
some Intel 965 Chipset
nvidia geforce 9500M GS
...
Gnome 2.26
tried old and new xserver
beta and stable nvidia drivers


please help me,
any form of help is appreciated
thank you,
Sylence

Last edited by Sylence (2009-04-13 13:35:20)

Offline

#2 2009-04-12 15:45:58

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [solved]wine segfaults immediately

According to strace all wine --help does is look up libraries. Do you have anything in your LD_LIBRARY_PATH that could cause it? Take a look at ldd /usr/bin/wine

Offline

#3 2009-04-12 15:54:33

Sylence
Member
Registered: 2009-04-12
Posts: 7

Re: [solved]wine segfaults immediately

[sylence@flyingdragon ~]$ echo $LD_LIBRARY_PATH

... nothing in here (sorry, is this the right way to print it?)


[sylence@flyingdragon ~]$ ldd /usr/bin/wine
    linux-gate.so.1 =>  (0xb7fe7000)
    libwine.so.1 => /usr/bin/../lib/libwine.so.1 (0xb7eab000)
    libpthread.so.0 => /usr/bin/../lib/libpthread.so.0 (0xb7e94000)
    libc.so.6 => /usr/bin/../lib/libc.so.6 (0xb7d60000)
    libdl.so.2 => /lib/libdl.so.2 (0xb7d35000)
    /lib/ld-linux.so.2 (0xb7fe8000)

most of it seems to belong to glibc, which I reinstalled and recompiled, but that didn't help

Offline

#4 2009-04-13 10:43:27

jondkent
Member
From: London
Registered: 2005-09-13
Posts: 123

Re: [solved]wine segfaults immediately

Hi,

I'm getting maybe sorta the same problem with WINE on my EEEPC.  wine just bombs out on me (latest version wine-1.1.18-1).  When I strace it on notepad all I get is this:

strace wine notepad.exe
execve("/usr/bin/wine", ["wine", "notepad.exe"], [/* 31 vars */] <unfinished ...>
+++ killed by SIGKILL +++

and ldd gives me nothing:

ldd /usr/bin/wine
        not a dynamic executable

Utterly stumped as to what it can be sad

Checked $LD_LIBRARY_PATH as you would, and thats unset and ensured I have no ~/.wine directory.

help!!!!

Cheers,

Jon

Offline

#5 2009-04-13 10:58:42

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [solved]wine segfaults immediately

Maybe gdb can help:

$ gdb wine
(gdb) run --help
...
...
(gdb) bt
...
...

Offline

#6 2009-04-13 11:23:46

jondkent
Member
From: London
Registered: 2005-09-13
Posts: 123

Re: [solved]wine segfaults immediately

Hiya,

Been trying that...no joy as wine terminated with a SIGKILL before any backtrace can be performed.  Its really odd as I usually have no problems with wine, though this is the first time on this pc, wine just looks competely knackered at the moment.

Jon

Offline

#7 2009-04-13 11:35:04

jondkent
Member
From: London
Registered: 2005-09-13
Posts: 123

Re: [solved]wine segfaults immediately

Hi,

Think I've found the problem,and its kernel related for me.   When I run :


strace -f /lib/ld-linux.so.2 /usr/bin/wine-preloader

I get:

execve("/lib/ld-linux.so.2", ["/lib/ld-linux.so.2", "/usr/bin/wine-preloader"], [/* 30 vars */]) = 0
brk(0)                                  = 0x71782000
open("/usr/bin/wine-preloader", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\2\0\3\0\1\0\0\0\0\0\0|4\0\0\0P"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=11368, ...}) = 0
mmap2(0x7c000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = -1 ENOMEM (Cannot allocate memory)
close(3)                                = 0
writev(2, [{"/usr/bin/wine-preloader"..., 23}, {": "..., 2}, {"error while loading shared librar"..., 36}, {": "..., 2}, {"/usr/bin/wine-preloader"..., 23}, {": "..., 2}, {"failed to map segment from shared"..., 40}, {": "..., 2}, {"Cannot allocate memory"..., 22}, {"\n"..., 1}], 10/usr/bin/wine-preloader: error while loading shared libraries: /usr/bin/wine-preloader: failed to map segment from shared object: Cannot allocate memory
) = 153
exit_group(127)                         = ?

Digging around I found this link --> https://launchpad.net/ubuntu/+source/li … +bug/31408 which highlights the same problem from a while back.  So there might be something up with my eeepc kernel which is:

2.6.28.5eee

so I'm gonna look into that.

Cheers,
Jon

Offline

#8 2009-04-13 12:31:04

Sylence
Member
Registered: 2009-04-12
Posts: 7

Re: [solved]wine segfaults immediately

gdb:

(gdb) run --help
Starting program: /usr/bin/wine --help
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
warning: Cannot initialize thread debugging library: versions of libpthread and libthread_db do not match
(no debugging symbols found)
warning: Cannot initialize thread debugging library: versions of libpthread and libthread_db do not match
(no debugging symbols found)
warning: Cannot initialize thread debugging library: versions of libpthread and libthread_db do not match

Program received signal SIGSEGV, Segmentation fault.
0x89f87589 in ?? ()
(gdb) bt
#0  0x89f87589 in ?? ()
#1  0xb7cc60f4 in __libc_start_main () from /usr/bin/../lib/libc.so.6
#2  0x7bf01181 in _start ()

strace:

[sylence@flyingdragon ~]$ strace wine notepad.exe
execve("/usr/bin/wine", ["wine", "notepad.exe"], [/* 53 vars */]) = 0
brk(0)                                  = 0x7d0d8000
readlink("/proc/self/exe", "/usr/bin/wine"..., 4096) = 13
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb80cc000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/usr/bin/../lib/tls/i686/sse2/libwine.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/bin/../lib/tls/i686/sse2", 0xbfaea270) = -1 ENOENT (No such file or directory)
open("/usr/bin/../lib/tls/i686/libwine.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/bin/../lib/tls/i686", 0xbfaea270) = -1 ENOENT (No such file or directory)
open("/usr/bin/../lib/tls/sse2/libwine.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/bin/../lib/tls/sse2", 0xbfaea270) = -1 ENOENT (No such file or directory)
open("/usr/bin/../lib/tls/libwine.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/bin/../lib/tls", 0xbfaea270) = -1 ENOENT (No such file or directory)
open("/usr/bin/../lib/i686/sse2/libwine.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/bin/../lib/i686/sse2", 0xbfaea270) = -1 ENOENT (No such file or directory)
open("/usr/bin/../lib/i686/libwine.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/bin/../lib/i686", 0xbfaea270) = -1 ENOENT (No such file or directory)
open("/usr/bin/../lib/sse2/libwine.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/bin/../lib/sse2", 0xbfaea270) = -1 ENOENT (No such file or directory)
open("/usr/bin/../lib/libwine.so.1", 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\2601\0\0004\0\0\0\304"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1223276, ...}) = 0
mmap2(NULL, 1288832, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f91000
mmap2(0xb80b7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x125) = 0xb80b7000
mmap2(0xb80b9000, 76416, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb80b9000
close(3)                                = 0
open("/usr/bin/../lib/libpthread.so.0", 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\0pG\0\0004\0\0\0\330"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=108238, ...}) = 0
mmap2(NULL, 90592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f7a000
mmap2(0xb7f8d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12) = 0xb7f8d000
mmap2(0xb7f8f000, 4576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f8f000
close(3)                                = 0
open("/usr/bin/../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\260a\1\0004\0\0\0x"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1249520, ...}) = 0
mmap2(NULL, 1259024, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e46000
mmap2(0xb7f74000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12d) = 0xb7f74000
mmap2(0xb7f77000, 9744, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f77000
close(3)                                = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=157903, ...}) = 0
mmap2(NULL, 157903, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7e1f000
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 \n\0\0004\0\0\0\\"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=13419, ...}) = 0
mmap2(NULL, 12408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e1b000
mmap2(0xb7e1d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7e1d000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e1a000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e19000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e1ab80, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7e1d000, 4096, PROT_READ)   = 0
mprotect(0xb7f74000, 4096, PROT_READ)   = 0
mprotect(0xb80ea000, 4096, PROT_READ)   = 0
munmap(0xb7e1f000, 157903)              = 0
set_tid_address(0xb7e1abc8)             = 14523
set_robust_list(0xb7e1abd0, 0xc)        = 0
rt_sigaction(SIGRTMIN, {0xb7f7e2a0, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xb7f7e320, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
uname({sys="Linux", node="flyingdragon", ...}) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

well, I am not sure what to make of this
but thank you so far


EDIT:
I found 2 files called libc.so.6 and libc-2.6.1.so in /usr/lib, that do not seem to belong to any packages.
no idea how they got there
After renaming/moving them wine does not segfault immediately anymore, but it crashes shortly after launching an application.

EDIT2:
after removing some other orphaned libraries from /usr/lib, everything is working again
for other people running into this problem:
check for "strange" versions of libraries wine needs (pacman -Qo <file> checks whether they belong to anything or not)

thank you very much for your time

Last edited by Sylence (2009-04-13 13:37:58)

Offline

#9 2009-04-14 10:55:53

jondkent
Member
From: London
Registered: 2005-09-13
Posts: 123

Re: [solved]wine segfaults immediately

Hi,

Update from me on my Wine exiting issues.  As I suspected this was down to kernel.  When running stock kernel Wine works fine, and with a little more digging found out that wine won't work with toofishes' kernel because it is compiled with VMSPLIT_2G_OPT option.  The solution is to recompile toolfishes' kernel with  VMSPLIT_3G_OPT instead (or just stick with stock ARCH kernel on an eeepc as I found this works fine apart from the mousepad not longer supported gestures, which may be fixable).

Cheers,

Jon

Offline

Board footer

Powered by FluxBB