http://bugs.winehq.org/show_bug.cgi?id=17813
Summary: Net unittests for chromium fail under Wine Product: Wine Version: 1.1.17 Platform: Other URL: http://chromium.org OS/Version: other Status: NEW Keywords: download Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
To reproduce, either build net_unittests.exe yourself given the sources at chromium.org, or use my prebuilt executable:
wget http://kegel.com/wine/net_unittests.tgz tar -tzvf net_unittests.tgz wine chrome/Debug/net_unittests.exe
This crashes, and fails to complete, on two tests related to NTLM. You can bypass the two crashy tests by giving the flag --gtest_filter=-HttpNetworkTransactionTest.NTLMAuth1:HttpNetworkTransactionTest.NTLMAuth2:URLRequestTest.FileDirCancelTest
Then it runs to completion with 41 further failures: [ FAILED ] DESTest.KnownAnswerTest1 [ FAILED ] DESTest.KnownAnswerTest2 [ FAILED ] Escape.UnescapeAndDecodeURLComponent [ FAILED ] NetUtilTest.GetFileNameFromCD [ FAILED ] NetUtilTest.IDNToUnicode [ FAILED ] NetUtilTest.GetSuggestedFilename [ FAILED ] SSLClientSocketTest.Connect [ FAILED ] SSLClientSocketTest.ConnectExpired [ FAILED ] SSLClientSocketTest.ConnectMismatched [ FAILED ] SSLClientSocketTest.Read [ FAILED ] SSLClientSocketTest.Read_SmallChunks [ FAILED ] SSLClientSocketTest.Read_Interrupted [ FAILED ] ProxyScriptFetcherTest.HttpMimeType [ FAILED ] ProxyScriptFetcherTest.HttpStatusCode [ FAILED ] ProxyScriptFetcherTest.ContentDisposition [ FAILED ] ProxyScriptFetcherTest.TooLarge [ FAILED ] ProxyScriptFetcherTest.Hang [ FAILED ] URLRequestTest.ProxyTunnelRedirectTest [ FAILED ] URLRequestTest.UnexpectedServerAuthTest [ FAILED ] URLRequestTest.GetTest_NoCache [ FAILED ] URLRequestTest.GetTest [ FAILED ] URLRequestTest.QuitTest [ FAILED ] URLRequestTest.CancelTest2 [ FAILED ] URLRequestTest.CancelTest3 [ FAILED ] URLRequestTest.CancelTest4 [ FAILED ] URLRequestTest.CancelTest5 [ FAILED ] URLRequestTest.PostTest [ FAILED ] URLRequestTest.PostEmptyTest [ FAILED ] URLRequestTest.PostFileTest [ FAILED ] URLRequestTest.ResponseHeadersTest [ FAILED ] URLRequestTest.BZip2ContentTest [ FAILED ] URLRequestTest.BZip2ContentTest_IncrementalHeader [ FAILED ] URLRequestTest.ContentTypeNormalizationTest [ FAILED ] URLRequestTest.RestrictRedirects [ FAILED ] URLRequestTest.NoUserPassInReferrer [ FAILED ] URLRequestTest.CancelRedirect [ FAILED ] URLRequestTest.VaryHeader [ FAILED ] URLRequestTest.BasicAuth [ FAILED ] URLRequestTest.Post302RedirectGet [ FAILED ] URLRequestTest.Post307RedirectPost [ FAILED ] HTTPSRequestTest.HTTPSGetTest
To dissect this into individual bugs, run with options like wine chrome/Debug/net_unittests.exe --gtest_filter=DESTest.KnownAnswerTest1 That one seems to be in advapi32 and rsaenh:
000b:Call advapi32.CryptAcquireContextW(0032fb7c,00000000,00000000,00000001,f0000000) ret=005d7bff ... 000b:Call rsaenh.CPAcquireContext(00151e60,00000000,f0000000,00151ee0) ret=7eb3bcaa 000b:Call advapi32.GetUserNameA(0032f7f4,0032f6ec) ret=7dcd7062 000b:Ret advapi32.GetUserNameA() retval=00000001 ret=7dcd7062 000b:Ret rsaenh.CPAcquireContext() retval=00000001 ret=7eb3bcaa 000b:Ret advapi32.CryptAcquireContextW() retval=00000001 ret=005d7bff 000b:Call advapi32.CryptImportKey(00151e50,0032fb54,00000014,00000000,00000000,0032fb70) ret=005d7c63 000b:Call rsaenh.CPImportKey(00000001,0032fb54,00000014,00000000,00000000,00150ecc) ret=7eb38f83 000b:Ret rsaenh.CPImportKey() retval=00000000 ret=7eb38f83 000b:Ret advapi32.CryptImportKey() retval=00000000 ret=005d7c63 000b:Call advapi32.CryptReleaseContext(00151e50,00000000) ret=005d7d1a 000b:Call rsaenh.CPReleaseContext(00000001,00000000) ret=7eb3a24d 000b:Ret rsaenh.CPReleaseContext() retval=00000001 ret=7eb3a24d
This looks like it might be a tidy little goldmine of new testcases.
http://bugs.winehq.org/show_bug.cgi?id=17813
--- Comment #1 from Dan Kegel dank@kegel.com 2009-03-22 13:50:08 --- Nah, most of the failures were spurious -- it wanted more of the source tree to run the tests. There remain two kinds of errors: 1) the DES tests:
[ RUN ] DESTest.KnownAnswerTest2 .\http\des_unittest.cc(47): error: Value of: memcmp(ciphertext, known_ciphertext, 8) Actual: 1 Expected: 0 [ FAILED ] DESTest.KnownAnswerTest2
2) the SSL tests, which might also be spurious failures; they need a certificate imported before they will run, see http://dev.chromium.org/developers/testing
I'll attach logs and a shell script that runs all the tests that still might be real failures.
http://bugs.winehq.org/show_bug.cgi?id=17813
--- Comment #2 from Dan Kegel dank@kegel.com 2009-03-22 13:53:22 --- Created an attachment (id=20076) --> (http://bugs.winehq.org/attachment.cgi?id=20076) tarball of script to run tests, plus logs, compressed with rzip. Only the DES error seems suspicious at this point.
http://bugs.winehq.org/show_bug.cgi?id=17813
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com Keywords| |source
http://bugs.winehq.org/show_bug.cgi?id=17813
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #3 from Alexandre Julliard julliard@winehq.org 2009-10-13 13:00:26 --- The DES error is fixed now, most likely by ff6328efcc011574bbc1e3267768f954a97650c0.
http://bugs.winehq.org/show_bug.cgi?id=17813
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org 2009-10-23 13:19:01 --- Closing bugs fixed in 1.1.32.