Issues with space in shared library path
Thank you for this really useful application! I'm using the package shipped with Ubuntu 21.10, which has a version string of "3.40.1-3".
I'm currently trying to profile a steam application that runs under Proton (which is Valve's wine distribution).
the /proc/$PID/maps file for that process has lines like this:
f703e000-f705c000 r--p 00000000 08:14 16018469 /media/HDD/Steam/steamapps/common/Proton 6.3/dist/lib/wine/winex11.drv.so
Note the space in the shared library path.
The sysprof report after profiling now contains rows like "/media/HDD/Steam/steamapps/common/Proton: inode mismatch" (with no corresponding stderr output complaining about an inode mismatch for that path, only a few for my normal libmutter and libasound, maybe something needs a restart there).
I feel like the issue might be the sscanf here https://gitlab.gnome.org/GNOME/sysprof/-/blob/master/src/libsysprof/sysprof-proc-source.c#L103
r = sscanf (lines[i],
"%lx-%lx %*15s %lx %*x:%*x %lu %512s",
&start, &end, &offset, &inode, file);
The %512s capture will stop at whitespace, so it will only scan up to "Proton" and then skip then remaining path. But I'm not really sure if that's the issue because I don't really understand how that code is being called, there is some ipc service and async stuff involved, so maybe it's not trying to parse /proc/$PID/maps at all.
I've saved the capture file from the sysprof GUI and looked at its contents, and that file also contains ASCII/UTF8/whatever strings for paths that are cut off after "Proton", so it's probably not purely a display issue.