How to deal with 'fatal: Failed to get proc symbol via libunwind: -2.'
Once I set -m I seem to end up with the error above. Any idea how to overcome this?
Ubuntu 23.10.
That code is UNW_ENOMEM. According to unw_get_proc_name(3) this means that the symbol is too long for the buffer provided, so evidently we need to (1) increase the size of that buffer; and (2) handle that as the non-fatal error that it is, as per their docs.
Very nice. I can try that locally. Can you point to the respective line(s) ?
It's here: https://github.com/atheriel/xrprof/blob/00d4d7a9fc6ad509f4c13e5e781a67181502a83e/src/xrprof.c#L240-L251
So size of sym is what needs to change?
That worked! Care for a PR? Preferred size. I picked 1024 because why not? and 512 may work too.
The poor soul who encounters a symbol longer than 1KB. A PR would be great!
Narrator: Dirk was last heard mumbling something about Pareto-Efficiency ... Can't take Economics out of him it seems.
PR will be forthcoming.