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

Crash in afd.sys when a socket is closed while select() is waiting

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • Networking
    • None
    • VMware virtual machine

    Description

      Debug log and test program attached.
      The program creates a listening socket and a thread calling select() on the socket with a 100 ms timeout inside a loop. After 250 ms, the socket is closed, while select() is still waiting, this leads to a crash.
      (Another way to reproduce the bug: install python and run "python -m test.regrtest -v -s test_asyncore")
      ReactOS version: r68579

      Attachments

        1. afd crash debug.txt
          2 kB
        2. selecttest01.c
          2 kB
        3. selecttest1.exe
          46 kB

        Issue Links

          Activity

            People

              bug zilla Bug Zilla
              xxxx00 xxxx00
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: