Wine 1.3 and weird error: Unhandled page fault on read

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
r2rX
Level 3
Level 3
Posts: 69
Joined: Thu Apr 29, 2010 4:28 pm

Wine 1.3 and weird error: Unhandled page fault on read

Post by r2rX »

Hey guys,

There's a weird issue occurring that doesn't make sense to me. Whenever I run any 3D application, I get the following error:

wine: Unhandled page fault on read access

It's followed by a few strings, and the debugger kicks in. This seems to only affect 3D application.

Thanks, in advance, for the input. :)

r2rX :D
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Re: Wine 1.3 and weird error: Unhandled page fault on read

Post by doh123 »

r2rX wrote:Hey guys,

There's a weird issue occurring that doesn't make sense to me. Whenever I run any 3D application, I get the following error:

wine: Unhandled page fault on read access

It's followed by a few strings, and the debugger kicks in. This seems to only affect 3D application.

Thanks, in advance, for the input. :)

r2rX :D
you need to run it command line and give us the output so we can see what is really happening.
r2rX
Level 3
Level 3
Posts: 69
Joined: Thu Apr 29, 2010 4:28 pm

Post by r2rX »

Sorry about that, here is the log:

Code: Select all

err:virtual:map_image failed to set 60000020 protection on section .text, noexec filesystem?
wine: Unhandled page fault on read access to 0x00447e67 at address 0x447e67 (thread 0009), starting debugger...
Unhandled exception: page fault on read access to 0x00447e67 in 32-bit code (0x00447e67).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:00447e67 ESP:0032fe94 EBP:0032fea8 EFLAGS:00010216(  R- --  I   -A-P- )
 EAX:00000000 EBX:7b886ff4 ECX:44ab22ba EDX:0032ff10
 ESI:7ffdf000 EDI:00447e67
Stack dump:
0x0032fe94:  7b85748c 7ffdf000 00000000 7b886ff4
0x0032fea4:  7ffdf000 0032fee8 7b8597fb 7ffdf000
0x0032feb4:  00447e67 00000000 00000000 00000000
0x0032fec4:  00000000 00000000 00000000 00000000
0x0032fed4:  00000000 00000000 7bc9cff4 ffea3384
0x0032fee4:  001107b0 0032fef8 7bc71910 7ffdf000
Backtrace:
=>0 0x00447e67 EntryPoint() in quake2max (0x0032fea8)
  1 0x7b8597fb in kernel32 (+0x497fa) (0x0032fee8)
  2 0x7bc71910 call_thread_func+0xb() in ntdll (0x0032fef8)
  3 0x7bc71ae0 call_thread_entry_point+0x6f() in ntdll (0x0032ffc8)
  4 0x7bc4c4fa in ntdll (+0x3c4f9) (0x0032ffe8)
0x00447e67 EntryPoint in quake2max: pushl	$0x60
Modules:
Module	Address			Debug info	Name (55 modules)
PE	  400000-  f0e000	Export          quake2max
ELF	7b800000-7b976000	Export          kernel32<elf>
  \-PE	7b810000-7b976000	\               kernel32
ELF	7bc00000-7bcb9000	Export          ntdll<elf>
  \-PE	7bc10000-7bcb9000	\               ntdll
ELF	7bf00000-7bf04000	Deferred        <wine-loader>
ELF	7e74c000-7e756000	Deferred        libxcursor.so.1
ELF	7e756000-7e75c000	Deferred        libxfixes.so.3
ELF	7e75c000-7e760000	Deferred        libxcomposite.so.1
ELF	7e760000-7e768000	Deferred        libxrandr.so.2
ELF	7e768000-7e772000	Deferred        libxrender.so.1
ELF	7e772000-7e778000	Deferred        libxxf86vm.so.1
ELF	7e778000-7e77c000	Deferred        libxinerama.so.1
ELF	7e77c000-7e79e000	Deferred        imm32<elf>
  \-PE	7e780000-7e79e000	\               imm32
ELF	7e79e000-7e7a4000	Deferred        libxdmcp.so.6
ELF	7e7a4000-7e7a8000	Deferred        libxau.so.6
ELF	7e7a8000-7e7c2000	Deferred        libxcb.so.1
ELF	7e7c2000-7e8df000	Deferred        libx11.so.6
ELF	7e8df000-7e8ef000	Deferred        libxext.so.6
ELF	7e8ef000-7e908000	Deferred        libice.so.6
ELF	7e924000-7e9cc000	Deferred        winex11<elf>
  \-PE	7e930000-7e9cc000	\               winex11
ELF	7ea1f000-7ea46000	Deferred        libexpat.so.1
ELF	7ea46000-7ea76000	Deferred        libfontconfig.so.1
ELF	7ea76000-7ea8b000	Deferred        libz.so.1
ELF	7ea8b000-7eb01000	Deferred        libfreetype.so.6
ELF	7eb02000-7eb07000	Deferred        libuuid.so.1
ELF	7eb07000-7eb10000	Deferred        libsm.so.6
ELF	7eb1d000-7eb3e000	Deferred        iphlpapi<elf>
  \-PE	7eb20000-7eb3e000	\               iphlpapi
ELF	7eb3e000-7eb6b000	Deferred        ws2_32<elf>
  \-PE	7eb50000-7eb6b000	\               ws2_32
ELF	7eb6b000-7eb86000	Deferred        wsock32<elf>
  \-PE	7eb70000-7eb86000	\               wsock32
ELF	7eb86000-7ebe1000	Deferred        advapi32<elf>
  \-PE	7eb90000-7ebe1000	\               advapi32
ELF	7ebe1000-7ec6d000	Deferred        gdi32<elf>
  \-PE	7ebf0000-7ec6d000	\               gdi32
ELF	7ec6d000-7ed9f000	Deferred        user32<elf>
  \-PE	7ec80000-7ed9f000	\               user32
ELF	7ed9f000-7ee34000	Deferred        winmm<elf>
  \-PE	7edb0000-7ee34000	\               winmm
ELF	7ef91000-7ef9d000	Deferred        libnss_files.so.2
ELF	7ef9d000-7efa7000	Deferred        libnss_nis.so.2
ELF	7efa7000-7efbe000	Deferred        libnsl.so.1
ELF	7efbe000-7efe4000	Deferred        libm.so.6
ELF	7efe4000-7eff8000	Deferred        libresolv.so.2
ELF	f7405000-f7409000	Deferred        libdl.so.2
ELF	f7409000-f7563000	Deferred        libc.so.6
ELF	f7563000-f757c000	Deferred        libpthread.so.0
ELF	f7591000-f7599000	Deferred        libnss_compat.so.2
ELF	f7599000-f76d9000	Export          libwine.so.1
ELF	f76d9000-f7718000	Deferred        libesets_pac.so
ELF	f771b000-f7739000	Deferred        ld-linux.so.2
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) D:\Quake II\Quake2maX.exe
	00000009    0 <==
0000000e services.exe
	00000016    0
	00000015    0
	00000014    0
	00000010    0
	0000000f    0
00000011 winedevice.exe
	00000018    0
	00000017    0
	00000013    0
	00000012    0
00000019 explorer.exe
	0000001a    0
Backtrace:
=>0 0x00447e67 EntryPoint() in quake2max (0x0032fea8)
  1 0x7b8597fb in kernel32 (+0x497fa) (0x0032fee8)
  2 0x7bc71910 call_thread_func+0xb() in ntdll (0x0032fef8)
  3 0x7bc71ae0 call_thread_entry_point+0x6f() in ntdll (0x0032ffc8)
  4 0x7bc4c4fa in ntdll (+0x3c4f9) (0x0032ffe8)
This is, typically, the output I get from any 3D app I run....other misc software has no problems.

r2rX :)
r2rX
Level 3
Level 3
Posts: 69
Joined: Thu Apr 29, 2010 4:28 pm

Post by r2rX »

The prior post is based on Quake 2...but Quake 3 logs the same thing. The following is Unreal Tournament:

Code: Select all

err:virtual:map_image failed to set 60000020 protection on section .text, noexec filesystem?
err:virtual:map_image failed to set 60000020 protection on section .text, noexec filesystem?
err:virtual:map_image failed to set 60000020 protection on section .text, noexec filesystem?
err:virtual:map_image failed to set 60000020 protection on section .text, noexec filesystem?
err:module:attach_process_dlls "Core.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"D:\\UnrealTournament\\System\\Unreal Tournament.exe" failed, status c0000005
The constant seems to be the 'virtual map' error.

However, testing out the Half-Life series (Source engine) they seem to work fine. But any game using the Unreal Tournament, Unreal Tournament 2004, Quake 2 and Quake 3 engine...this problem occurs.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

r2rX wrote:err:virtual:map_image failed to set 60000020 protection on section .text, noexec filesystem?
wine: Unhandled page fault on read access to 0x00447e67 at address 0x447e67 (thread 0009), starting debugger...
Unhandled exception: page fault on read access to 0x00447e67 in 32-bit code (0x00447e67).
You running your game off of partition mounted with "noexec" option. Wine can't run anything from such partition.
r2rX
Level 3
Level 3
Posts: 69
Joined: Thu Apr 29, 2010 4:28 pm

Post by r2rX »

Well, I guess that makes sense. But where, exactly, do I check/modify this setting? Cause, as far as I know (and can tell, based on my settings with my available partitions) i've not enabled such a feature.

It'd make sense....cause alot of the games i've tested were on an NTFS partition...but, how do you explain the scenario where the same game, when copied to my Linux Partition, executes with the same error?

r2rX
r2rX
Level 3
Level 3
Posts: 69
Joined: Thu Apr 29, 2010 4:28 pm

Post by r2rX »

You guys, i'm such an epic n00b...it's ridiculous.

I've just checked my fstab, and there were a few irregularities. Fortunately, i've rechecked and configured everything properly now....and it works just fine now.

Thank alot for the feedback, vitamin. :)

r2rX :D
Seb
Newbie
Newbie
Posts: 1
Joined: Thu Sep 30, 2010 9:14 am

Post by Seb »

Hello all.

I've basically got the same issue. When trying to run Heroes of Might and Magic 5, I get:

Code: Select all

err:virtual:map_image failed to set 60000020 protection on section .text, noexec filesystem?
err:virtual:map_image failed to set 60000020 protection on section .text, noexec filesystem?
err:virtual:map_image failed to set 60000020 protection on section .text, noexec filesystem?
err:virtual:map_image failed to set 60000020 protection on section .text, noexec filesystem?
err:module:attach_process_dlls "MSVCR71.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"Z:\\media\\dane\\programy\\gry\\HoMM5\\bin\\H5_Game.exe" failed, status c0000005
Now the thing is that the filesystem has NOT been set to noexec, as the part coresponding to my NTFS partitions looks like this:

Code: Select all

/dev/sda3 /media/os ntfs-3g defaults,user,locale=pl_PL 0 2
/dev/sda5 /media/dane ntfs-3g defaults,user,locale=pl_PL 0 2
And man mount says that

Code: Select all

defaults
Use default options: rw, suid, dev, exec, auto, nouser, and async.
Copying the file MSVCR71.dll from my Windows installation doesn't help. Any ideas what's going on and how to solve the problem? :)
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Seb wrote:Any ideas what's going on and how to solve the problem?
Looks like you're trying to run it from a Windows partition. You have to install it properly in Wine.
http://wiki.winehq.org/FAQ#head-497f1a2 ... 2c7767afa2
User avatar
antoniovandre
Level 1
Level 1
Posts: 6
Joined: Fri Sep 10, 2010 8:59 am

Post by antoniovandre »

antonio@debian-lenny-antonio:~/.wine/drive_c/Quake2$ wine quake2.exe
wine: Unhandled page fault on read access to 0x00000004 at address 0x7e50b29c (thread 0009), starting debugger...
Unhandled exception: page fault on read access to 0x00000004 in 32-bit code (0x7e50b29c).
Register dump:
CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
EIP:7e50b29c ESP:0032cc40 EBP:7d804c40 EFLAGS:00210202( R- -- I - - - )
EAX:00000041 EBX:7d83eb58 ECX:7d814ed0 EDX:7e55f100
ESI:00000000 EDI:00000001
Stack dump:
0x0032cc40: 00000000 0000000f 00000088 b75ed3a0
0x0032cc50: 0000000f 00000074 b75cc2b6 b75ed3d8
0x0032cc60: b75cc1a2 00000001 7d804c40 7d83eafc
0x0032cc70: 0032ecdc 7e50903c 7d804c40 0032ccb0
0x0032cc80: 0032ccb4 b75ebff4 b75ed3a0 0032ecdc
0x0032cc90: 7d83eae0 b751962c 7d83eae0 b74d89cf
Backtrace:
=>0 0x7e50b29c XF86DRIQueryExtension+0x8e() in libgl.so.1 (0x7d804c40)
0x7e50b29c XF86DRIQueryExtension+0x8e in libgl.so.1: movzbl 0x4(%esi),%edx
Modules:
Module Address Debug info Name (67 modules)
PE 400000- b77000 Deferred quake2
PE 10000000-10121000 Deferred ref_soft
ELF 7b800000-7b973000 Deferred kernel32<elf>
\-PE 7b810000-7b973000 \ kernel32
ELF 7bc00000-7bcb8000 Deferred ntdll<elf>
\-PE 7bc10000-7bcb8000 \ ntdll
ELF 7bf00000-7bf03000 Deferred <wine-loader>
ELF 7e478000-7e496000 Deferred libgcc_s.so.1
ELF 7e496000-7e49e000 Deferred libatiuki.so.1
ELF 7e49e000-7e562000 Export libgl.so.1
ELF 7e57e000-7e6b4000 Deferred wined3d<elf>
\-PE 7e590000-7e6b4000 \ wined3d
ELF 7e6b4000-7e728000 Deferred rpcrt4<elf>
\-PE 7e6c0000-7e728000 \ rpcrt4
ELF 7e728000-7e825000 Deferred ole32<elf>
\-PE 7e740000-7e825000 \ ole32
ELF 7e825000-7e881000 Deferred ddraw<elf>
\-PE 7e830000-7e881000 \ ddraw
ELF 7e881000-7e884000 Deferred iso8859-1.so
ELF 7e8b2000-7e8bb000 Deferred libxcursor.so.1
ELF 7e8bb000-7e8c0000 Deferred libxfixes.so.3
ELF 7e8c0000-7e8c3000 Deferred libxcomposite.so.1
ELF 7e8c3000-7e8ca000 Deferred libxrandr.so.2
ELF 7e8ca000-7e8d3000 Deferred libxrender.so.1
ELF 7e8d3000-7e8d8000 Deferred libxxf86vm.so.1
ELF 7e8d8000-7e8db000 Deferred libxinerama.so.1
ELF 7e8db000-7e8fb000 Deferred imm32<elf>
\-PE 7e8e0000-7e8fb000 \ imm32
ELF 7e8fb000-7e900000 Deferred libxdmcp.so.6
ELF 7e900000-7e903000 Deferred libxau.so.6
ELF 7e903000-7e91c000 Deferred libxcb.so.1
ELF 7e91c000-7e920000 Deferred libuuid.so.1
ELF 7e920000-7ea3d000 Deferred libx11.so.6
ELF 7ea3d000-7ea4c000 Deferred libxext.so.6
ELF 7ea4c000-7ea64000 Deferred libice.so.6
ELF 7ea64000-7ea6c000 Deferred libsm.so.6
ELF 7ea88000-7eb2e000 Deferred winex11<elf>
\-PE 7eaa0000-7eb2e000 \ winex11
ELF 7eb2e000-7eb54000 Deferred libexpat.so.1
ELF 7eb54000-7eb83000 Deferred libfontconfig.so.1
ELF 7eb83000-7eb97000 Deferred libz.so.1
ELF 7eb97000-7ec0e000 Deferred libfreetype.so.6
ELF 7ec0e000-7ec22000 Deferred libresolv.so.2
ELF 7ec3e000-7ec5d000 Deferred iphlpapi<elf>
\-PE 7ec40000-7ec5d000 \ iphlpapi
ELF 7ec5d000-7ec89000 Deferred ws2_32<elf>
\-PE 7ec60000-7ec89000 \ ws2_32
ELF 7ec89000-7ece2000 Deferred advapi32<elf>
\-PE 7eca0000-7ece2000 \ advapi32
ELF 7ece2000-7ed6e000 Deferred gdi32<elf>
\-PE 7ecf0000-7ed6e000 \ gdi32
ELF 7ed6e000-7ee9f000 Deferred user32<elf>
\-PE 7ed80000-7ee9f000 \ user32
ELF 7ee9f000-7ef33000 Deferred winmm<elf>
\-PE 7eeb0000-7ef33000 \ winmm
ELF 7ef89000-7ef95000 Deferred libnss_files.so.2
ELF 7ef95000-7ef9f000 Deferred libnss_nis.so.2
ELF 7ef9f000-7efb6000 Deferred libnsl.so.1
ELF 7efb6000-7efbe000 Deferred libnss_compat.so.2
ELF 7efbe000-7efe4000 Deferred libm.so.6
ELF 7efe6000-7f000000 Deferred wsock32<elf>
\-PE 7eff0000-7f000000 \ wsock32
ELF b74a6000-b74aa000 Deferred libdl.so.2
ELF b74aa000-b75f0000 Deferred libc.so.6
ELF b75f1000-b760a000 Deferred libpthread.so.0
ELF b7626000-b7766000 Deferred libwine.so.1
ELF b7768000-b7785000 Deferred ld-linux.so.2
Threads:
process tid prio (all id:s are in hex)
00000008 (D) C:\Quake2\quake2.exe
00000009 0 <==
0000000e services.exe
00000016 0
00000015 0
00000014 0
00000010 0
0000000f 0
00000011 winedevice.exe
00000018 0
00000017 0
00000013 0
00000012 0
00000019 explorer.exe
0000001a 0
Backtrace:
=>0 0x7e50b29c XF86DRIQueryExtension+0x8e() in libgl.so.1 (0x7d804c40)
Wine worked fine before the system is upgraded. When I upgraded 3D applications failed to run even after using Wine 1.3 .

Could anyone help me?
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

antoniovandre wrote: Wine worked fine before the system is upgraded. When I upgraded 3D applications failed to run even after using Wine 1.3 .
Reinstall your graphics drivers.
User avatar
antoniovandre
Level 1
Level 1
Posts: 6
Joined: Fri Sep 10, 2010 8:59 am

Post by antoniovandre »

Before reading your reply I went back to the old kernel and Wine returned to work fine.

But I'll try what you suggested me. Thanks.
Locked