Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add iocp crash mock test (to reproduce the issue #985) #4172

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jimying
Copy link
Contributor

@jimying jimying commented Nov 23, 2024

use this patch to reproduce crash issue #985 in msys2:

  1. modify aconfigure
    #ac_os_objs=ioqueue_select.o
    ac_os_objs=ioqueue_winnt.o
    To set iocp as the default ioqueue framework
    
  2. modify pjlib/src/pjlib-test/test.h
    set the macro TEST_DEFAULT=0
    To disable other tests and only enable iocp_crash_test
    
  3. build and run with gdb
    # build
    export CFLAGS="-g -O0"
    ./configure ...
    make -C pjlib/build dep
    make -C pjlib/build -j 8
    # run
    cd pjlib/bin
    gdb ./pjlib-test-x86_64-w64-mingw32.exe

Follow the steps, it can 100% reproduce the crash.

PS: This is just a temporary test and is not intended to be submitted into master branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant