+2020-01-18 Frank Ch. Eigler <fche@redhat.com>
+
+ * debuginfod.cxx (thread_main_scanner): Handle empty source_paths[].
+
2020-01-11 Frank Ch. Eigler <fche@redhat.com>
* debuginfod.cxx (libarchive_fdcache): New class/facility to own a
static void
scan_source_paths()
{
+ // NB: fedora 31 glibc/fts(3) crashes inside fts_read() on empty
+ // path list.
+ if (source_paths.empty())
+ return;
+
// Turn the source_paths into an fts(3)-compatible char**. Since
// source_paths[] does not change after argv processing, the
// c_str()'s are safe to keep around awile.
+2020-01-18 Frank Ch. Eigler <fche@redhat.com>
+
+ * run-debuginfod-find.sh: Test empty source_paths[].
+
2020-01-08 Mark Wielaard <mark@klomp.org>
* asm-test?.c: include libebl.h.
PID1=0
PID2=0
+PID3=0
cleanup()
{
if [ $PID1 -ne 0 ]; then kill $PID1; wait $PID1; fi
if [ $PID2 -ne 0 ]; then kill $PID2; wait $PID2; fi
+ if [ $PID3 -ne 0 ]; then kill $PID3; wait $PID3; fi
rm -rf F R D L ${PWD}/.client_cache*
exit_cleanup
testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID2 && false || true
+# Test debuginfod without a path list; reuse $PORT1
+env LD_LIBRARY_PATH=$ldpath ${abs_builddir}/../debuginfod/debuginfod $VERBOSE -F -U -d :memory: -p $PORT1 -L -F &
+PID3=$!
+wait_ready $PORT1 'thread_work_total{role="traverse"}' 1
+wait_ready $PORT1 'thread_work_pending{role="scan"}' 0
+wait_ready $PORT1 'thread_busy{role="scan"}' 0
+kill -int $PID3
+wait $PID3
+PID3=0
+
exit 0