https://bugs.winehq.org/show_bug.cgi?id=55244
Bug ID: 55244 Summary: mshtml:misc - The 32-bit test_HTMLStorage() crashes in Wine Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: mshtml Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com Distribution: ---
mshtml:misc - The 32-bit test_HTMLStorage() crashes in Wine:
Unhandled exception: page fault on write access to 0x00000000 in 32-bit code (0x10045300). Backtrace: =>0 0x10045300 in xul (+0x45300) (0x000000d2) 0x10045300 xul+0x45300: movl $0x25c, 0x00000000
See https://test.winehq.org/data/patterns.html#mshtml:misc
A bisect shows that the failures started with the commit below:
commit 24a2b625545f1875b5c3177f2b9da1b7299b864f Author: Victor Chiletto vchiletto@codeweavers.com Date: Thu Jun 8 15:14:57 2023 -0300
msvcrt: Use snames instead of LCIDs in create_locinfo.
And adding traces shows that the crash happens when releasing doc2: 535: IHTMLDocument2_Release(doc2);
Sometimes the backtrace is more useful:
Backtrace: =>0 0x6ab1c9b5 in ucrtbase (+0x5c9b5) (0x0a26e4a0) 1 0x033d6536 Cert_clone+0xb6(context=<is not available>, store=<is not available>, use_link=<is not available>) [/home/fgo uget/wine/wt23/src/dlls/crypt32/cert.c:148] in crypt32 (0x0a26e4a0) 2 0x034280a4 MemStore_addContext+0x24(store=083F6948, list=<internal error>, orig_context=<internal error>, existing=<is not available>, ret_context=<is not available>, use_link=<is not available>) [/home/fgouget/wine/wt23/src/dlls/crypt32/store.c:149] in crypt32 (0x0a26e4f0) 3 0x033d9406 add_cert_to_store+0xf6(store=083F6948, cert=00000001, add_disposition=<internal error>, use_link=<is not available>, ret_context=<is not available>) [/home/fgouget/wine/wt23/src/dlls/crypt32/cert.c:267] in crypt32 (0x0a26e570) 4 0x033d99e3 CertAddCertificateContextToStore+0x1b(ppStoreContext=<internal error>, dwAddDisposition=<internal error>, pCertContext=<internal error>, hCertStore=<internal error>) [/home/fgouget/wine/wt23/src/dlls/crypt32/cert.c:289] in crypt32 (0x0a26e5c0) 5 0x033d99e3 CertAddEncodedCertificateToStore+0x53(hCertStore=<is not available>, dwCertEncodingType=<is not available>, pbCertEncoded=<is not available>, cbCertEncoded=<is not available>, dwAddDisposition=<is not available>, ppCertContext=<is not available>) [/home/fgouget/wine/wt23/src/dlls/crypt32/cert.c:64] in crypt32 (0x0a26e5c0) 6 0x0fcf6aa0 ensure_remote_cert+0x190(ctx=<internal error>) [/home/fgouget/wine/wt23/src/dlls/secur32/schannel.c:1131] in secur32 (0x0a26e640) 7 0x0fcfa74d schan_QueryContextAttributesW+0xcd(context_handle=<is not available>, attribute=<is not available>, buffer=<is not available>) [/home/fgouget/wine/wt23/src/dlls/secur32/schannel.c:1207] in secur32 (0x0a26eab0) 8 0x6c1320a9 netcon_secure_connect_setup+0x509(connection=<internal error>, compat_mode=<internal error>) [/home/fgouget/wine/wt23/src/dlls/wininet/netconnection.c:545] in wininet (0x0a26ed00) 9 0x6c133438 NETCON_secure_connect+0x38(connection=<is not available>, server=<is not available>) [/home/fgouget/wine/wt23/src/dlls/wininet/netconnection.c:615] in wininet (0x0a26ed20) 10 0x6c11fc03 HTTP_HttpSendRequestW+0x1293(request=<internal error>, lpszHeaders=<internal error>, dwHeaderLength=<internal error>, lpOptional=<is not available>, dwOptionalLength=<is not available>, dwContentLength=<is not available>, bEndRequest=<is not available>) [/home/fgouget/wine/wt23/src/dlls/wininet/http.c:5093] in wininet (0x0a26fdb0) 11 0x6c120adf AsyncHttpSendRequestProc+0x3f(hdr=<is not available>) [/home/fgouget/wine/wt23/src/dlls/wininet/http.c:5356] in wininet (0x0a26fde0) 12 0x6c124e78 INTERNET_WorkerThreadFunc+0x18(lpvParam=<is not available>) [/home/fgouget/wine/wt23/src/dlls/wininet/internet.c:4029] in wininet (0x0a26fe00) 13 0x7bc5b6fb process_rtl_work_item+0x1b(instance=<is not available>, userdata=<is not available>) [/home/fgouget/wine/wt23/src/dlls/ntdll/threadpool.c:410] in ntdll (0x0a26fe30) 14 0x7bc5c7b2 tp_object_execute+0x3a2(object=<register EBX not accessible in this frame>, wait_thread=<internal error>) [/home/fgouget/wine/wt23/src/dlls/ntdll/threadpool.c:2221] in ntdll (0x0a26fed0) 15 0x7bc5cb88 threadpool_worker_proc+0x198(param=<is not available>) [/home/fgouget/wine/wt23/src/dlls/ntdll/threadpool.c:2356] in ntdll (0x0a26ff30)