Skip to content

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

Closed
jimying wants to merge 1 commit intopjsip:masterfrom
jimying:iocp-crash-mock
Closed

add iocp crash mock test (to reproduce the issue #985)#4172
jimying wants to merge 1 commit intopjsip:masterfrom
jimying:iocp-crash-mock

Conversation

@jimying
Copy link
Copy Markdown
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