BenchmarkDotNet icon indicating copy to clipboard operation
BenchmarkDotNet copied to clipboard

DisassemblyDiagnoser for Mono does not work on Windows and Linux

Open dvorn opened this issue 8 years ago • 2 comments

MonoDisassembler.OutputParser.Parse seems to be looking for the string "(__TEXT,__text) section" to find the beginning of disassembled code (see). However this string is seemingly produced by the otool on Mac. On Windows and Linux, the objdump tool is used and the assembly in the log is prepended by the string "Disassembly of section .text:".

Thus, OutputParser does not find the beginning of assembly and then crashes with NullReferenceException.

dvorn avatar Mar 16 '18 09:03 dvorn

@morgan-kn, please take a look.

AndreyAkinshin avatar Mar 16 '18 20:03 AndreyAkinshin

@dvorn, thanks for the report! The fix will be available in v0.10.14.

AndreyAkinshin avatar Mar 22 '18 19:03 AndreyAkinshin