janestreet / magic-trace

magic-trace collects and displays high-resolution traces of what a process is doing
https://magic-trace.org
MIT License
4.58k stars 87 forks source link

scanf: bad input at char number 16: int_of_string #269

Closed tgrabiec closed 11 months ago

tgrabiec commented 1 year ago

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"))

5.14.9

ecatmur commented 1 year ago

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