win_pdbaltpath config breaks Windows order files generation |
||
Issue descriptionOS: Win 7 What steps will reproduce the problem? Steps are documented in https://chromium.googlesource.com/chromium/src/+/master/docs/win_order_files.md What is the expected result? Order files for browser and renderer processes should have sensible contents. What happens instead? Generated order files are almost empty (contain only 3 function names). It happens when I try to generate order files for Opera. I don't know if the same issue happens while generating order files for Chrome. It seems to be caused by win_pdbaltpath config (https://chromium-review.googlesource.com/c/chromium/src/+/1273475). Everything works fine after removing this config.
,
Dec 13
Thanks for the hint! I'll try debugging. I don't think my config includes something unusual. I'm using similar config for building Debug version and debugger is able to find all symbols correctly.
,
Dec 18
SymFromAddr doesn't fail. |samples| array contains many addresses but SymFromAddr returns only 3 names for these addresses: ChromeMain, IsSandboxedProcess and GetHandleVerifier. Returned |Displacement| value is different for each address however. It seems SymFromAddr cannot find symbol names and the issue is related to symbol search path used by DbgHelp functions. Generating order files works fine if I pass absolute path to out/instrument directory as |UserSearchPath| argument of SymInitialize call. Currently we pass NULL as |UserSearchPath|. SymGetSearchPath returns "." for me in this case. So I've found a solution. I need to enter out/instrument directory in my terminal and run instrumented binaries from this directory: "./opera.exe --no-sandbox --renderer-startup-dialog". Everything works fine then. Do you run Chrome binaries in this way as well? If so, step 2. from https://chromium.googlesource.com/chromium/src/+/master/docs/win_order_files.md should be updated. What do you think?
,
Dec 18
> Do you run Chrome binaries in this way as well? No, I run it like in the doc, from in my case c:\src\chromium\src with out\instrument\chrome ... Are you running from cmd.exe or something else?
,
Dec 18
I'm usually using Git Bash but I've tried also cmd.exe and x64 Native Tools Command Prompt for VS 2017. I'm experiencing the same issue in all cases.
,
Dec 19
It doesn't seem to be an issue for Chrome so I'm closing this bug. |
||
►
Sign in to add a comment |
||
Comment 1 by h...@chromium.org
, Dec 13