title: How can I debug a C program installed using guix?
body: <p>I installed flatpak using guix, but it segfaulted on startup. I wanted to debug it, but guix installs a wrapper script for flatpak, so I get this error when trying to run it under gdb:</p>
  
  <pre><code>"/home/user/.guix-profile/bin/flatpak": not in executable format: file format not recognized
  </code></pre>
  
  <p>and I tried to edit the wrapper script to call gdb, but this wrapper script is not even editable by root, because it is owned by root and has read-only permissions.</p>