Wine 20050310 / Linux 2.6.11 crashes on munmap()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have an application ("The Rosetta Stone" 2.0.7a) which segfaults
during the startup splash screen.  According to strace() it is trying
to munmap() an address (0x7a6b3000) which was never mmap()'d.  I get
identical behavior with Wine 20050111 and kernels 2.6.9 / 2.6.10 (I
use gentoo-sources).  I noticed some people had similar issues
upgrading from 2.6.9 to 2.6.10.

http://lkml.org/lkml/2004/12/4/62
http://www.winehq.org/hypermail/wine-users/2005/01/0241.html

>From stderr:

wine: Unhandled exception (thread 0009), starting debugger...
err:syslevel:_EnterSysLevel (0x779ad9a0, level 2): Holding 0x778bee20,
level 3. Expect deadlock!
err:syslevel:_EnterSysLevel (0x779ad9a0, level 2): Holding 0x778bee20,
level 3. Expect deadlock!

[repeats until I hit ^C then]

err:syslevel:_CheckNotSysLevel Holding lock 0x778bee20 level 3

Would appreciate any advice; my next step would be to re-emerge wine
with USE=debug, try the Transgaming sources, or in worst case
re-emerge glibc with USE=-nptl and go back to kernel 2.4 (no!).

In addition after upgrading from 20050111 to 20050310 I also get:

err:module:load_builtin_dll loaded .so for L"notepad.exe" but got
L"notepad.exe.exe" instead - probably 16-bit dll
err:module:load_builtin_dll loaded .so for L"regedit.exe" but got
L"regedit.exe.exe" instead - probably 16-bit dll

notepad and other applications still work fine though.  I get the same
results with and without a ~/.wine/config file.

http://appdb.winehq.org/appview.php?appId=1867

Relevant portion of strace():

write(9, "H\2\6\f\34\0`\1\272\2 \1\0\4\6\0\0\0\372\2\0\20\5\0\0\0"...,
12708) = 12708
mmap2(NULL, 86016, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7a6c0000
munmap(0x7a6c5000, 65536)               = 0
shmget(IPC_PRIVATE, 19584, IPC_CREAT|0700) = 17858569
shmat(17858569, 0, 0)                   = 0x7a6d0000
write(9, ";\3\5\0x\3 \1\0\0\0\0\0\0\0\0\1\0\1\0;\3\5\0{\2 \1\0\0"..., 60)
= 60
read(9, "\1\1\336\30\0\0\0\0\33\0`\1\0\0\0\0\0\0\0\0\17\0\0\0\10"..., 32)
= 32
shmctl(17858569, IPC_64|IPC_RMID, 0)    = 0
mprotect(0x7a6c0000, 20480, PROT_READ|PROT_WRITE) = 0
write(9, "5\20\4\0z\3 \1@\0\0\0d\2\20\0<\0\2\0x\3 \0017\2\4\0{\3"..., 40)
= 40
write(9, ";\3\5\0{\3 \1\0\0\0\0\0\0\0\0d\2\20\0;\3\5\0{\3 \1\0\0"..., 56)
= 56
mmap2(NULL, 77824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7a6ad000
munmap(0x7a6ad000, 12288)               = 0
munmap(0x7a6b3000, 53248)               = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
sigreturn()                             = ? (mask now [])
rt_sigprocmask(SIG_BLOCK, [HUP INT USR1 USR2 ALRM CHLD IO], [], 8) = 0
write(4, "\33\0\0\0\0\0\0\0\0\0\0\0\3\0\37\0\1\0\0\0\0\0\0\0\1\0"..., 64)
= 64
read(5, "\0\0\0\0\0\0\0\0|\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64)
= 64
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
write(2, "wine: Unhandled exception (threa"..., 62wine: Unhandled
exception (thread 0009), starting debugger...
) = 62

The address 0x7a6b3000 we munmap() has was never returned by a mmap(),
but we do get it from a mmap() about 5000 lines later, after the crash
(coincidence?):

open("/usr/share/fonts/TTF/VeraMono.ttf", O_RDONLY) = 38
fcntl64(38, F_SETFD, FD_CLOEXEC)        = 0
fstat64(38, {st_mode=S_IFREG|0444, st_size=49224, ...}) = 0
mmap2(NULL, 49224, PROT_READ, MAP_PRIVATE, 38, 0) = 0x7a6b3000
close(38)

fd 9 refers to the X socket:
socket(PF_FILE, SOCK_STREAM, 0)         = 9
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
uname({sys="Linux", node="waste", ...}) = 0
uname({sys="Linux", node="waste", ...}) = 0
connect(9, {sa_family=AF_FILE, path="/tmp/.X11-unix/X0"}, 19) = 0
uname({sys="Linux", node="waste", ...}) = 0
fcntl64(9, F_SETFD, FD_CLOEXEC)         = 0

I am building with
gcc (GCC) 3.3.5  (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)

[ebuild   R   ] app-emulation/wine-20050310  +X +alsa +arts +cups -debug
+doc +gif +glut +jack +jpeg +lcms -nas +ncurses +opengl +oss 0 kB

_______________________________________________
wine-users mailing list
wine-users@xxxxxxxxxx
http://www.winehq.org/mailman/listinfo/wine-users

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux