pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


drmemory test settings
Posted by Anonymous on Thu 16th Jan 2025 09:25
raw | new post

  1. diff --git a/cygwin/devel/msnfs41client.bash b/cygwin/devel/msnfs41client.bash
  2. index 4699afb..957c332 100755
  3. --- a/cygwin/devel/msnfs41client.bash
  4. +++ b/cygwin/devel/msnfs41client.bash
  5. @@ -448,7 +448,7 @@ function nfsclient_rundeamon
  6.                         "${nfsd_args[@]:1}"
  7.                 )
  8.                 "${nfsd_args[@]}"
  9. -       elif false ; then
  10. +       elif true ; then
  11.                 #
  12.                 # test nfsd.exe with Dr. Memory (version 2.6.0 -- build 0)
  13.                 #
  14. @@ -456,21 +456,24 @@ function nfsclient_rundeamon
  15.                 nfsd_args=(
  16.                         'drmemory.exe' \
  17.                                 '-batch'
  18. -                               '-brief'
  19. +                               #'-brief'
  20.                                 '-no_follow_children'
  21.                                 '-lib_blocklist_frames' '1'
  22.                                 '-check_uninit_blocklist' 'MSWSOCK,WS2_32,ucrtbased.dll,ucrtbase.dll'
  23.                                 '-malloc_callstacks'
  24. -                               '-delay_frees' '16384'
  25. -                               '-delay_frees_maxsz' $((64*1024*1024))
  26. -                               '-redzone_size' '4096'
  27. +                               #'-delay_frees' '16384'
  28. +                               #'-delay_frees_maxsz' $((64*1024*1024))
  29. +                               #'-redzone_size' '4096'
  30.                                 '-check_uninitialized'
  31. +                               '-check_uninit_non_moves'
  32.                                 '-check_uninit_all'
  33.                                 '-strict_bitops'
  34.                                 '-gen_suppress_syms'
  35.                                 '-preload_symbols'
  36.                                 # no symbol cache, user "SYSTEM" cannot write data to cache
  37.                                 '-no_use_symcache'
  38. +                               # disable leak checking for performance
  39. +                               '-no_check_leaks'
  40.                                 '--'
  41.                                 "$(cygpath -w "$(which "${nfsd_args[0]}")")"
  42.                                 "${nfsd_args[@]:1}"
  43. @@ -580,7 +583,7 @@ function nfsclient_system_rundeamon
  44.                 )
  45.  
  46.                 "${nfsd_args[@]}"
  47. -       elif false ; then
  48. +       elif true ; then
  49.                 #
  50.                 # test nfsd.exe with Dr. Memory (version 2.6.0 -- build 0)
  51.                 #
  52. @@ -588,21 +591,24 @@ function nfsclient_system_rundeamon
  53.                 nfsd_args=(
  54.                         'drmemory.exe' \
  55.                                 '-batch'
  56. -                               '-brief'
  57. +                               #'-brief'
  58.                                 '-no_follow_children'
  59.                                 '-lib_blocklist_frames' '1'
  60.                                 '-check_uninit_blocklist' 'MSWSOCK,WS2_32,ucrtbased.dll,ucrtbase.dll'
  61.                                 '-malloc_callstacks'
  62. -                               '-delay_frees' '16384'
  63. -                               '-delay_frees_maxsz' $((64*1024*1024))
  64. -                               '-redzone_size' '4096'
  65. +                               #'-delay_frees' '16384'
  66. +                               #'-delay_frees_maxsz' $((64*1024*1024))
  67. +                               #'-redzone_size' '4096'
  68.                                 '-check_uninitialized'
  69. +                               '-check_uninit_non_moves'
  70.                                 '-check_uninit_all'
  71.                                 '-strict_bitops'
  72.                                 '-gen_suppress_syms'
  73.                                 '-preload_symbols'
  74.                                 # no symbol cache, user "SYSTEM" cannot write data to cache
  75.                                 '-no_use_symcache'
  76. +                               # disable leak checking for performance
  77. +                               '-no_check_leaks'
  78.                                 '--'
  79.                                 "$(cygpath -w "$(which "${nfsd_args[0]}")")"
  80.                                 "${nfsd_args[@]:1}"
  81. diff --git a/daemon/nfs41_daemon.c b/daemon/nfs41_daemon.c
  82. index 93d66b2..8b00833 100644
  83. --- a/daemon/nfs41_daemon.c
  84. +++ b/daemon/nfs41_daemon.c
  85. @@ -899,11 +899,13 @@ VOID ServiceStart(DWORD argc, LPTSTR *argv)
  86.      WaitForSingleObject(stop_event, INFINITE);
  87.  #else
  88.      //This can be changed to waiting on an array of handles and using waitformultipleobjects
  89. -    DPRINTF(1, ("Parent waiting for children threads\n"));
  90. -    for (i = 0; i < nfs41_dg.num_worker_threads; i++)
  91. +    DPRINTF(0, ("Parent waiting for children threads\n"));
  92. +    for (i = 0; i < nfs41_dg.num_worker_threads; i++) {
  93.          WaitForSingleObject(tids[i].handle, INFINITE );
  94. +        DPRINTF(0, ("## Worker thread %d returned\n", (int)i));
  95. +    }
  96.  #endif
  97. -    DPRINTF(1, ("Parent woke up!!!!\n"));
  98. +    DPRINTF(0, ("Parent woke up!!!!\n"));
  99.  
  100.  out_pipe:
  101.      CloseHandle(pipe);

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at