Page MenuHome GnuPG
Feed Advanced Search

Feb 23 2016

danf added a comment to T2256: (Near) endless loop in gcry_mpi_powm.

I tried the patch and the problem hasn't shown up for me after an hour of
continuously running the test suite, so it looks fixed! Thanks for the fast
turnaround on this tricky problem.

Feb 23 2016, 10:48 PM · Bug Report, libgcrypt

Feb 22 2016

danf added a comment to T2256: (Near) endless loop in gcry_mpi_powm.

A couple more point: openssh must be installed on the system so the test suite
will work. Also, the problem seems to have started in commit fc4a969a in libssh2.

Feb 22 2016, 10:51 PM · Bug Report, libgcrypt
danf added a comment to T2256: (Near) endless loop in gcry_mpi_powm.

This recipe generally causes a hang within no more than 5 minutes of running
through the test suite on my system. libcrypt is assumed to be installed in the
normal location, or set PKG_CONFIG_PATH appropriately. Run "src/curl --version"
to make sure it says libssh2/1.7.0_DEV to prove it's picked up the right libssh2
and "ldd src/.libs/lt-curl" to make sure it's using gcrypt.

git clone https://github.com/libssh2/libssh2.git
cd libssh2
./buildconf
./configure --prefix=/tmp/install --with-libgcrypt
make -j6 && make install
cd ..
curl -O https://curl.haxx.se/download/curl-7.47.1.tar.lzma
tar xaf curl-7.47.1.tar.lzma
cd curl-7.47.1
PKG_CONFIG_PATH=/tmp/install/lib/pkgconfig ./configure --enable-debug
--without-ssl --with-libssh2
make -j6
while true; do make -j6 test TEST_Q='-a -p -n SFTP SCP'; done

Feb 22 2016, 10:43 PM · Bug Report, libgcrypt

Feb 17 2016

danf added a comment to T2256: (Near) endless loop in gcry_mpi_powm.

The code that's failing is single threaded and passes valgrind, address sanitizer
and undefined sanitizer tests. I can't think of how the stack could be corrupted
from outside the routine, except perhaps that a signal handler is involved. If
you're confident that j could never be negative in the normal case, then I'll try
tracking down how that could happen.

Feb 17 2016, 10:07 AM · Bug Report, libgcrypt

Feb 16 2016

danf added a comment to T2256: (Near) endless loop in gcry_mpi_powm.

I tried doing exactly that, but it didn't reproduce the problem. I assumed that
either the internal representation of the input values set up in my test program
with gcry_mpi_scan() and gcry_mpi_set_ui() subtly differed from the ones
encountered in production, or there was some code path that uses an uninitialized
variable, but I don't know if either theory could be the case.

Feb 16 2016, 3:49 PM · Bug Report, libgcrypt

Feb 15 2016

danf added projects to T2256: (Near) endless loop in gcry_mpi_powm: libgcrypt, Bug Report.
Feb 15 2016, 8:18 AM · Bug Report, libgcrypt
danf set Version to 1.6.4 on T2256: (Near) endless loop in gcry_mpi_powm.
Feb 15 2016, 8:18 AM · Bug Report, libgcrypt