My code works well in original windows environment
What I'm trying to find out is, how to debug it. Which part cause the corruption, is it a bug of wine or a bug of my code. Here's the detailed log.
Code: Select all
Unhandled exception: page fault on read access to 0x00000001 in 32-bit code (0x00d5d13d).
Register dump:
CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
EIP:00d5d13d ESP:03b6f450 EBP:03b6f490 EFLAGS:00210246( R- -- I Z- -P- )
EAX:00000001 EBX:03bdf928 ECX:00000001 EDX:00000000
ESI:00000011 EDI:00000000
Stack dump:
0x03b6f450: 00000002 03b6f4d4 03b6f4c8 03bdf928
0x03b6f460: 00000000 0e2020d5 00000044 0f849701
0x03b6f470: 00000018 04d03c7d 00000011 00000438
0x03b6f480: 00000000 04d098d1 0e2020d5 0000001c
0x03b6f490: 03b6f4b8 00df8824 04e4232d 04e4232d
0x03b6f4a0: 00000000 0000003a 03b6f4ec 03c1c2d8
Backtrace:
=>0 0x00d5d13d ??$Add@VIsolate@internal@v8@@@?$Dictionary@VGlobalDictionary@internal@v8@@VGlobalDictionaryShape@23@@internal@v8@@SA?AV?$Handle@VGlobalDictionary@internal@v8@@@12@PAVIsolate@12@V312@V?$Handle@VName@internal@v8@@@12@V?$Handle@VObject@internal@v8@@@12@VProp+0x2fcd0d() in node (0x03b6f490)
1 0x00df8824 ??$Add@VIsolate@internal@v8@@@?$Dictionary@VGlobalDictionary@internal@v8@@VGlobalDictionaryShape@23@@internal@v8@@SA?AV?$Handle@VGlobalDictionary@internal@v8@@@12@PAVIsolate@12@V312@V?$Handle@VName@internal@v8@@@12@V?$Handle@VObject@internal@v8@@@12@VProp+0x3983f3() in node (0x03b6f4b8)
2 0x00d2a216 ??$Add@VIsolate@internal@v8@@@?$Dictionary@VGlobalDictionary@internal@v8@@VGlobalDictionaryShape@23@@internal@v8@@SA?AV?$Handle@VGlobalDictionary@internal@v8@@@12@PAVIsolate@12@V312@V?$Handle@VName@internal@v8@@@12@V?$Handle@VObject@internal@v8@@@12@VProp+0x2c9de5() in node (0x03b6f4ec)
3 0x00d2a216 ??$Add@VIsolate@internal@v8@@@?$Dictionary@VGlobalDictionary@internal@v8@@VGlobalDictionaryShape@23@@internal@v8@@SA?AV?$Handle@VGlobalDictionary@internal@v8@@@12@PAVIsolate@12@V312@V?$Handle@VName@internal@v8@@@12@V?$Handle@VObject@internal@v8@@@12@VProp+0x2c9de5() in node (0x03b6f520)
4 0x00d2a216 ??$Add@VIsolate@internal@v8@@@?$Dictionary@VGlobalDictionary@internal@v8@@VGlobalDictionaryShape@23@@internal@v8@@SA?AV?$Handle@VGlobalDictionary@internal@v8@@@12@PAVIsolate@12@V312@V?$Handle@VName@internal@v8@@@12@V?$Handle@VObject@internal@v8@@@12@VProp+0x2c9de5() in node (0x03b6f564)
5 0x00d2a216 ??$Add@VIsolate@internal@v8@@@?$Dictionary@VGlobalDictionary@internal@v8@@VGlobalDictionaryShape@23@@internal@v8@@SA?AV?$Handle@VGlobalDictionary@internal@v8@@@12@PAVIsolate@12@V312@V?$Handle@VName@internal@v8@@@12@V?$Handle@VObject@internal@v8@@@12@VProp+0x2c9de5() in node (0x03b6f598)
6 0x00d2a216 ??$Add@VIsolate@internal@v8@@@?$Dictionary@VGlobalDictionary@internal@v8@@VGlobalDictionaryShape@23@@internal@v8@@SA?AV?$Handle@VGlobalDictionary@internal@v8@@@12@PAVIsolate@12@V312@V?$Handle@VName@internal@v8@@@12@V?$Handle@VObject@internal@v8@@@12@VProp+0x2c9de5() in node (0x03b6f5c4)
7 0x00d2a216 ??$Add@VIsolate@internal@v8@@@?$Dictionary@VGlobalDictionary@internal@v8@@VGlobalDictionaryShape@23@@internal@v8@@SA?AV?$Handle@VGlobalDictionary@internal@v8@@@12@PAVIsolate@12@V312@V?$Handle@VName@internal@v8@@@12@V?$Handle@VObject@internal@v8@@@12@VProp+0x2c9de5() in node (0x03b6f618)
8 0x00d2895c ??$Add@VIsolate@internal@v8@@@?$Dictionary@VGlobalDictionary@internal@v8@@VGlobalDictionaryShape@23@@internal@v8@@SA?AV?$Handle@VGlobalDictionary@internal@v8@@@12@PAVIsolate@12@V312@V?$Handle@VName@internal@v8@@@12@V?$Handle@VObject@internal@v8@@@12@VProp+0x2c852b() in node (0x03b6f634)
9 0x00d28789 ??$Add@VIsolate@internal@v8@@@?$Dictionary@VGlobalDictionary@internal@v8@@VGlobalDictionaryShape@23@@internal@v8@@SA?AV?$Handle@VGlobalDictionary@internal@v8@@@12@PAVIsolate@12@V312@V?$Handle@VName@internal@v8@@@12@V?$Handle@VObject@internal@v8@@@12@VProp+0x2c8358() in node (0x03b6f660)
10 0x00c2b010 ??$Add@VIsolate@internal@v8@@@?$Dictionary@VGlobalDictionary@internal@v8@@VGlobalDictionaryShape@23@@internal@v8@@SA?AV?$Handle@VGlobalDictionary@internal@v8@@@12@PAVIsolate@12@V312@V?$Handle@VName@internal@v8@@@12@V?$Handle@VObject@internal@v8@@@12@VProp+0x1cabdf() in node (0x03b6f6dc)
11 0x03c34274 (0x03c3427c)
12 0x04d020a1 (0x128db461)
13 0xa504e421 (0xa504cc21)
0x00d5d13d ??$Add@VIsolate@internal@v8@@@?$Dictionary@VGlobalDictionary@internal@v8@@VGlobalDictionaryShape@23@@internal@v8@@SA?AV?$Handle@VGlobalDictionary@internal@v8@@@12@PAVIsolate@12@V312@V?$Handle@VName@internal@v8@@@12@V?$Handle@VObject@internal@v8@@@12@VProp+0x2fcd0d in node: movzbl 0x0(%eax,%edx,1),%eax
Modules:
Module Address Debug info Name (77 modules)
PE 110000- 130000 Deferred userenv
PE 400000- 3a6e000 Export node
PE 3ca0000- 3de4000 Deferred winmm
PE e510000- e53f000 Deferred ffi_bindings.node
PE 103c0000-1043a000 Deferred node.napi.node
PE 10970000-10a9c000 Deferred node_sqlite3.node
PE 10c80000-115a6000 Deferred wxworkloaderjs_x86
PE 61500000-6156d000 Deferred iphlpapi
PE 61740000-61801000 Deferred advapi32
PE 62b80000-62b8d000 Deferred api-ms-win-core-localization-l1-2-1
PE 62fc0000-63193000 Deferred rpcrt4
PE 63480000-63498000 Deferred version
PE 63bc0000-63bfa000 Deferred shcore
PE 64a40000-64b3e000 Deferred shlwapi
PE 65580000-655a2000 Deferred wtsapi32
PE 66240000-66276000 Deferred bcrypt
PE 66b00000-66b50000 Deferred win32u
PE 66e40000-66e4d000 Deferred api-ms-win-appmodel-runtime-l1-1-2
PE 67800000-6780c000 Deferred api-ms-win-core-string-l1-1-0
PE 67840000-6784f000 Deferred psapi
PE 69880000-6988c000 Deferred api-ms-win-core-fibers-l1-1-0
PE 6a040000-6a090000 Deferred msacm32
PE 6a280000-6a46a000 Deferred msvcrt
PE 6ac80000-6ac8c000 Deferred api-ms-win-core-fibers-l1-1-1
PE 6b500000-6b50c000 Deferred api-ms-win-core-localization-obsolete-l1-2-0
PE 6bc00000-6bc80000 Deferred sechost
PE 6bcc0000-6be41000 Deferred setupapi
PE 6c9c0000-6cb48000 Deferred gdi32
PE 6cec0000-6cedb000 Deferred powrprof
PE 6d780000-6d7e3000 Deferred ws2_32
PE 6de80000-6de8d000 Deferred api-ms-win-core-synch-l1-2-0
PE 6e4c0000-6e4f3000 Deferred dnsapi
PE 6e8c0000-6eadf000 Deferred crypt32
PE 6ed00000-6f3b3000 Deferred user32
PE 6f480000-6f49b000 Deferred nsi
PE 6fa80000-6fc79000 Deferred dbghelp
PE 6ff80000-6ff8c000 Deferred api-ms-win-core-datetime-l1-1-1
PE 700c0000-700cd000 Deferred api-ms-win-core-sysinfo-l1-2-1
PE 70b40000-70d7c000 Deferred ucrtbase
PE 71200000-7123e000 Deferred imm32
PE 774e0000-7761d000 Deferred ole32
PE 7b000000-7b274000 Deferred kernelbase
PE 7b600000-7b8ed000 Deferred kernel32
PE 7bc00000-7be14000 Deferred ntdll
ELF 7d000000-7d005000 Deferred <wine-loader>
ELF 7e05d000-7e07c000 Deferred libgcc_s.so.1
ELF 7e07c000-7e084000 Deferred libnss_dns.so.2
ELF 7e084000-7e099000 Deferred libnss_files.so.2
ELF 7e0af000-7e0b9000 Deferred libffi.so.7
ELF 7e0b9000-7e149000 Deferred libgmp.so.10
ELF 7e149000-7e182000 Deferred libhogweed.so.5
ELF 7e182000-7e1c2000 Deferred libnettle.so.7
ELF 7e1c2000-7e1d9000 Deferred libtasn1.so.6
ELF 7e1d9000-7e35b000 Deferred libunistring.so.2
ELF 7e35b000-7e37b000 Deferred libidn2.so.0
ELF 7e37b000-7e4d3000 Deferred libp11-kit.so.0
ELF 7e4d3000-7e6d3000 Deferred libgnutls.so.30
ELF 7e74e000-7e758000 Deferred libuuid.so.1
ELF 7e758000-7e784000 Deferred libexpat.so.1
ELF 7e784000-7e7d2000 Deferred libfontconfig.so.1
ELF 7e7d2000-7e7f0000 Deferred libz.so.1
ELF 7e7f0000-7e82f000 Deferred libpng16.so.16
ELF 7e82f000-7e8f5000 Deferred libfreetype.so.6
ELF 7e8f5000-7e90d000 Deferred crypt32.so
ELF 7e90d000-7e9ba000 Deferred win32u.so
ELF 7e9ba000-7e9d3000 Deferred libresolv.so.2
ELF 7e9e9000-7ea01000 Deferred dnsapi.so
ELF 7ea01000-7eb87000 Dwarf libwine.so.1
ELF f7b67000-f7c6c000 Deferred libm.so.6
ELF f7c6c000-f7c77000 Deferred librt.so.1
ELF f7c77000-f7d39000 Deferred ntdll.so
ELF f7d39000-f7f28000 Deferred libc.so.6
ELF f7f28000-f7f2e000 Deferred libdl.so.2
ELF f7f2e000-f7f51000 Deferred libpthread.so.0
ELF f7f55000-f7f5f000 Deferred bcrypt.so
ELF f7f5f000-f7f65000 Deferred ws2_32.so
ELF f7f69000-f7f96000 Deferred ld-linux.so.2
Threads:
process tid prio (all id:s are in hex)
00000038 services.exe
["C:\windows\system32\services.exe"]
0000003c 0
00000040 0
0000004c 0
00000070 0
0000009c 0
000000b4 0
00000044 winedevice.exe
[C:\windows\system32\winedevice.exe]
00000048 0
00000054 0
00000058 0
0000005c 0
000000c0 0
00000060 winedevice.exe
[C:\windows\system32\winedevice.exe]
00000064 0
00000074 0
00000078 0
0000007c 0
00000084 0
00000088 0
0000008c 0
00000094 plugplay.exe
[C:\windows\system32\plugplay.exe]
00000098 0
000000a0 0
000000a4 0
000000a8 0
000000ac svchost.exe
[C:\windows\system32\svchost.exe -k LocalServiceNetworkRestricted]
000000b0 0
000000b8 0
000000bc 0
00000178 start.exe
["C:\windows\system32\start.exe" /exec CMD.EXE /C /tmp/winescript_42713_1636442659149305755.bat]
0000017c 0
00000180 conhost.exe
["C:\windows\system32\conhost.exe" --unix --width 77 --height 21 --server 0xc]
00000184 0
00000188 explorer.exe
[C:\windows\system32\explorer.exe /desktop]
0000018c 0
00000190 0
00000194 cmd.exe
["C:\windows\system32\CMD.EXE" /C /tmp/winescript_42713_1636442659149305755.bat]
00000198 0
000001fc node.exe
["C:\node\\node.exe" "C:\node\node_modules\npm\bin\npm-cli.js" start]
00000200 0
00000204 0
00000208 0
0000020c 0
00000210 0
00000214 0
00000218 0
0000021c 0
00000220 0
00000224 0
00000228 0
00000234 0
0000022c cmd.exe
[C:\windows\system32\cmd.exe /d /s /c wechaty-io-client]
00000230 0
00000238 (D) C:\node\node.exe
["node" "C:\juzi\node_modules\.bin\\..\wechaty\dist\bin\io-client.js" ]
0000023c 0 <==
00000244 0
00000248 0
0000024c 0
00000250 0
00000254 0
00000258 0
0000025c 0
00000260 0
00000264 0
00000268 0
0000026c 0
00000270 0
00000274 0
00000278 0
0000027c 0
00000280 0
00000284 0
00000288 0
0000028c 0
0000031c 0
00000290 WXWork.exe
["C:\Program Files (x86)\WXWork\WXWork.exe"]
00000294 0
00000298 0
0000029c 0
000002a0 0
000002a4 0
000002a8 0
000002ac 0
000002b0 0
000002b4 0
000002b8 0
000002bc 0
000002c0 0
000002c4 0
000002c8 0
000002cc 0
000002d0 0
000002d4 0
000002d8 0
000002dc 0
000002e0 0
000002e4 0
000002e8 0
000002ec 0
000002f0 0
000002f4 0
000002f8 0
000002fc 0
00000300 0
00000304 0
00000308 0
00000310 0
00000320 explorer.exe
[C:\windows\system32\explorer.exe /desktop]
00000324 0
00000328 0
System information:
Wine build: wine-6.20 (Staging)
Platform: i386
Version: Windows 10
Host system: Linux
Host version: 5.11.0-38-generic