<div dir="ltr"><div>Package: gnupg-agent</div><div>Version: 2.1.15-4</div><div><br></div><div>Hi,</div><div><br></div><div>gnupg-agent --supervised in Debian Sid now crashes immediately on startup, which makes it unusable with systemd.<br></div><div><br></div><div>Backtrace from the binary with debug symbols below:</div><div><br></div><div>$ gdb ./gpg-agent<br></div><div><div>GNU gdb (Debian 7.11.1-2) 7.11.1</div><div>Copyright (C) 2016 Free Software Foundation, Inc.</div><div>License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>></div><div>This is free software: you are free to change and redistribute it.</div><div>There is NO WARRANTY, to the extent permitted by law.  Type "show copying"</div><div>and "show warranty" for details.</div><div>This GDB was configured as "x86_64-linux-gnu".</div><div>Type "show configuration" for configuration details.</div><div>For bug reporting instructions, please see:</div><div><<a href="http://www.gnu.org/software/gdb/bugs/">http://www.gnu.org/software/gdb/bugs/</a>>.</div><div>Find the GDB manual and other documentation resources online at:</div><div><<a href="http://www.gnu.org/software/gdb/documentation/">http://www.gnu.org/software/gdb/documentation/</a>>.</div><div>For help, type "help".</div><div>Type "apropos word" to search for commands related to "word"...</div><div>Reading symbols from ./gpg-agent...done.</div><div>(gdb) r --supervised</div><div>Starting program: /home2/henry/tmp/gpg2/gnupg2-2.1.15/build/agent/gpg-agent --supervised</div><div>[Thread debugging using libthread_db enabled]</div><div>Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".</div><div>gpg-agent (GnuPG) 2.1.15 starting in supervised mode.</div><div>no LISTEN_PID environment variable found in --supervised mode (ignoring)</div><div>no LISTEN_FDS or LISTEN_FDNAMES environment variables found in --supervised mode (assuming 1 active descriptor)</div><div>listening on: std=3 extra=-1 browser=-1 ssh=-1</div><div><br></div><div>Program received signal SIGSEGV, Segmentation fault.</div><div>strrchr () at ../sysdeps/x86_64/strrchr.S:32</div><div>32<span class="Apple-tab-span" style="white-space:pre">    </span>../sysdeps/x86_64/strrchr.S: No such file or directory.</div><div>(gdb) bt</div><div>#0  strrchr () at ../sysdeps/x86_64/strrchr.S:32</div><div>#1  0x00005555555615e7 in handle_connections (listen_fd=3, listen_fd_extra=-1, listen_fd_browser=-1, listen_fd_ssh=-1) at ../../agent/gpg-agent.c:2825</div><div>#2  0x000055555555e3fe in main (argc=<optimized out>, argv=<optimized out>) at ../../agent/gpg-agent.c:1504</div><div>(gdb) l</div><div>27<span class="Apple-tab-span" style="white-space:pre">  </span>in ../sysdeps/x86_64/strrchr.S</div><div>(gdb) frame 1</div><div>#1  0x00005555555615e7 in handle_connections (listen_fd=3, listen_fd_extra=-1, listen_fd_browser=-1, listen_fd_ssh=-1) at ../../agent/gpg-agent.c:2825</div><div>2825<span class="Apple-tab-span" style="white-space:pre"> </span>      char *slash = strrchr (socket_name, '/');</div><div>(gdb) l</div><div>2820<span class="Apple-tab-span" style="white-space:pre"> </span>              strerror (errno));</div><div>2821<span class="Apple-tab-span" style="white-space:pre">  </span>  else</div><div>2822<span class="Apple-tab-span" style="white-space:pre">  </span>    {</div><div>2823<span class="Apple-tab-span" style="white-space:pre">  </span>      /* We need to watch the directory for the file becuase there</div><div>2824<span class="Apple-tab-span" style="white-space:pre">    </span>       * won't be an IN_DELETE_SELF for a socket file.  */</div><div>2825<span class="Apple-tab-span" style="white-space:pre">       </span>      char *slash = strrchr (socket_name, '/');</div><div>2826<span class="Apple-tab-span" style="white-space:pre">       </span>      log_assert (slash && slash[1]);</div><div>2827<span class="Apple-tab-span" style="white-space:pre"> </span>      *slash = 0;</div><div>2828<span class="Apple-tab-span" style="white-space:pre">     </span>      if (inotify_add_watch (my_inotify_fd, socket_name, IN_DELETE) == -1)</div><div>2829<span class="Apple-tab-span" style="white-space:pre">    </span>        {</div><div>(gdb) print socket_name<br></div><div>$1 = 0x0</div></div><div><br></div><div>Regards, Jindrich</div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr">Jindřich Makovička</div></div>