Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-17829

ws2_32:bind apitest reports 'Test failed: Exception 0xc0000005, expected 0x00000000'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Untriaged
    • Priority: Major
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: RosDlls
    • Labels:

      Description

      Follow-up to ROSTESTS-278, which fixed/enabled then extended this apitest.
      Assumed to "block" CORE-13305.

      Of course, fixing 'Test failed: Port remained zero for test 5' would be welcome too.

      WHS: https://reactos.org/testman/compare.php?ids=79331
      succeeds.

      bind: 130 tests executed (0 marked as todo, 0 failures), 0 skipped.
      

      After ROSTESTS-278:
      KVM: https://reactos.org/testman/compare.php?ids=52918
      VBox: https://reactos.org/testman/compare.php?ids=52916

      fixme:(dll/win32/iphlpapi/address.c:290) GetAdaptersAddresses - Semi Stub: Family 2, Flags 0x0000002e, Reserved 00000000, pAdapterAddress 00000000, pOutBufLen 0022F23C.
      fixme:(dll/win32/iphlpapi/address.c:290) GetAdaptersAddresses - Semi Stub: Family 2, Flags 0x0000002e, Reserved 00000000, pAdapterAddress 002372F8, pOutBufLen 0022F23C.
      bind.c:211: Test failed: Exception 0xc0000005, expected 0x00000000
      bind.c:88: Test failed: Port remained zero for test 5
       
      bind: 128 tests executed (0 marked as todo, 2 failures), 0 skipped.
      

      Current result is mostly unchanged:
      KVM: https://reactos.org/testman/compare.php?ids=79531
      VBox: https://reactos.org/testman/compare.php?ids=79530

      (/dll/win32/dnsapi/rpc.c:19) DNSRSLVR_HANDLE_bind((null))
      bind.c:207: Test failed: Exception 0xc0000005, expected 0x00000000
      bind.c:84: Test failed: Port remained zero for test 5
       
      bind: 128 tests executed (0 marked as todo, 2 failures), 0 skipped.
      

      Guess:
      InvalidPointer is not handled as it should.
      A difference with other cases: sizeof(Addr) instead of 0.

      https://git.reactos.org/?p=reactos.git;a=blob;f=modules/rostests/apitests/ws2_32/bind.c;hb=HEAD#l201

       201     StartSeh()
       202         Socket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
       203         Error = bind(Socket, InvalidPointer, sizeof(Addr));
       204         ok_dec(Error, SOCKET_ERROR);
       205         ok_dec(WSAGetLastError(), WSAEFAULT);
       206         closesocket(Socket);
       207     EndSeh(STATUS_SUCCESS);
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Serge Gautherie Serge Gautherie
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: