On Tue, Apr 30, 2019 at 04:38:14PM +0200, Bernat wrote:
> Running the game results in a segmentation fault.

On a quick analysis: It appears that etw tries to find its own path by
opening /proc/self/maps (code is in etw/prefix.c), looking for an executable
mapping (r-xp) that contains the string "", and then looking at the path.

At some point, string constants were no longer mapped as executable.
I can see two possible fixes here:

  1. Look for some actual executable symbol instead of ""; in particular,
     main seems to work.
  2. When parsing the file, accept r--p as equivalent to r-xp.

Both of these seem to fix the issue here.

/* Steinar */
-- 
Homepage: https://www.sesse.net/

Reply via email to