Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dynamorio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,467
    • Issues 1,467
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DynamoRIO
  • dynamorio
  • Issues
  • #4349
Closed
Open
Issue created Jul 01, 2020 by Derek Bruening@derekbrueningContributor

api.thread_churn test failing on Windows due to reattach problems

My new test api.thread_churn for #4334 (closed) is failing on Windows due to some re-attach issues:

  • .data is protected causing a crash on init
  • failing to take over threads: 80 such messages on the re-attach:
<Detaching from process, entering final cleanup>
<Starting application D:\derek\dr\git\build_x64_dbg_tests\suite\tests\bin\api.thread_churn.exe (7644)>
<Running on newer-than-this-build "Microsoft Windows 10-1909 x64">
<Early threads found>
<Initial options = -no_dynamic_options -loglevel 2 -code_api -probe_api -msgbox_mask 0 -dumpcore_mask 125 -stderr_mask 15 -stack_size 56K -max_elide_jmp 0 -max_elide_call 0 -no_inline_ignored_syscalls -staged -native_exec_default_list '' -no_native_exec_managed_code -no_indcall2direct >
<CURIOSITY : (0) && "failed to take over a thread!" in file D:\derek\dr\git\src\core\win32\os.c line 2715
version 8.0.18444, custom build
-no_dynamic_options -loglevel 2 -code_api -probe_api -msgbox_mask 0 -dumpcore_mask 125 -stderr_mask 15 -stack_size 56K -max_elide_jmp 0 -max_elide_call 0 -no_inline_ignored_syscalls -staged -native_exec_default_list '' -no_native_exec_managed_code -no_indcall2direct >
<CURIOSITY : (0) && "failed to take over a thread!" in file D:\derek\dr\git\src\core\win32\os.c line 2715
version 8.0.18444, custom build
-no_dynamic_options -loglevel 2 -code_api -probe_api -msgbox_mask 0 -dumpcore_mask 125 -stderr_mask 15 -stack_size 56K -max_elide_jmp 0 -max_elide_call 0 -no_inline_ignored_syscalls -staged -native_exec_default_list '' -no_native_exec_managed_code -no_indcall2direct >
<...>

I tried to use logging to diagnose but hit another:

  • log file not being opened Xref #2661 (closed) on ops appending: but here the option is not processed at all, leaving d_r_stats->loglevel 0.

It's not clear what's going on. The test makes 10 threads in the first burst. Is some state left over? Fixing logging would make it much easier to diagnose. For now I'm disabling the test on Windows.

Assignee
Assign to
Time tracking