janestreet/magic-trace

scanf: bad input at char number 16: int_of_string

tgrabiec opened this issue · 1 comments

  • What happened?

magic-perf reported an error:

(monitor.ml.Error
 ("BUG: exception raised while parsing perf output. Please report this to https://github.com/janestreet/magic-trace/issues/"
  (exn
   (Scanf.Scan_failure "scanf: bad input at char number 16: int_of_string"))
  (perf_output
   "25675/25675  5052.616414706:   jmp                           413bdab [unknown] =>          4138d60 memcpy@plt+0xffffffffff22f000"))
 ("Raised at Base__Error.raise in file \"src/error.ml\" (inlined), line 9, characters 14-30"
  "Called from Base__Error.raise_s in file \"src/error.ml\", line 10, characters 19-40"
  "Called from Async_kernel__Pipe.map.(fun) in file \"src/pipe.ml\", line 1042, characters 65-70"
  "Called from Async_kernel__Job_queue.run_jobs in file \"src/job_queue.ml\", line 167, characters 6-47"
  "Caught by monitor Monitor.protect"))
  • What version of perf userspace tools are you running? perf --version

5.14.9

I had this bug and it appears to be fixed on current master 9bb5f08
Probably one of the refactor commits fixed it, maybe b2f3197?