-
Notifications
You must be signed in to change notification settings - Fork 571
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
func_view test fails on Appveyor with access violation #4155
Comments
Adds a new func_view tool for visualizing and analyzing function calls recorded in a drcachesim trace. It does two things in its initial form: it reports the summary count of calls and returns for every function traced, and if a new option op_show_func_trace is set (on by default), it prints a linear sequence of every call and return with return addresses, argument values, and return values. Each is indented to enable a clear picture of the call sequence. Adds a new option op_funclist_file to specify the file's path, though normally it will be auto-found. Adds raw2trace_directory_t support for parsing the funclist file. Adds example output for the new tool to the docs. Adds a brief section to the docs on function tracing in general, which was previously missing. Adds a func_view test which runs fib(5) and ensures we get the nested function trace correct. Disables the test on Windows due to unreproducible-locally Appveyor failures. #4155 covers figuring that out later. Issue: #4155 Fixes #4083
I did manage to reproduce on a VM I have, about one in 5 runs. It is a crash in raw2trace. It is unclear how it relates to func_view: it may not and just be related to fib.exe. I am trying to get a verbose log but it is slow on this VM. |
Does not reproduce at -verbose 3+.
standalone_library is true, but we only go to malloc inside DR for static linkage. We use dr_allocator_t for under-DR usage which is why it's using |
Adds a check for the current dcontext being GLOBAL_DCONTEXT in the kstats code to avoid a raw2trace crash. Enables the func_view test on Windows. Fixes #4155
Adds a check for the current dcontext being GLOBAL_DCONTEXT in the kstats code to avoid a raw2trace crash. Enables the func_view test on Windows. Fixes #4155
My func_view test from PR #4150 for #4083 works on Windows locally (ran 20x in a row on each of 2 different 1909 machines) but on Appveyor it has a mysterious crash:
For now I'm disabling the test on Windows.
The text was updated successfully, but these errors were encountered: