data->have_share_modes = false;
data->modified = true;
+ /*
+ * This is a temporary reproducer for the origin of
+ * https://bugzilla.samba.org/show_bug.cgi?id=14428
+ * "PANIC: assert failed in get_lease_type()"
+ *
+ * This will be removed again once the bug is demonstrated
+ * and fixed.
+ */
+ TALLOC_FREE(state.lck);
+ state.lck = get_existing_share_mode_lock(frame, fid);
+ if (state.lck != NULL) {
+ DBG_ERR("Reproduced BUG#14428\n");
+ }
+
ret = true;
done:
talloc_free(frame);
smb2.durable-v2-delay.durable_v2_reconnect_delay ||
failed=$(expr $failed + 1)
+SMBD_LOG_FILES="$SMBD_TEST_LOG"
+if [ $SMBD_DONT_LOG_STDOUT -eq 1 ]; then
+ _SMBD_LOG_FILE=$(dirname $SMBD_TEST_LOG)/logs/log.smbd
+ SMBD_LOG_FILES="$SMBD_LOG_FILES $_SMBD_LOG_FILE"
+fi
+
+bug_count_0=$(grep 'Reproduced BUG#14428' $SMBD_LOG_FILES | wc -l)
+
testit "durable_v2_delay.durable_v2_reconnect_delay_msec" $VALGRIND \
$BINDIR/smbtorture //$SERVER_IP/durable \
-U$USERNAME%$PASSWORD \
smb2.durable-v2-delay.durable_v2_reconnect_delay_msec ||
failed=$(expr $failed + 1)
+bug_count_1=$(grep 'Reproduced BUG#14428' $SMBD_LOG_FILES | wc -l)
+
+testit "bug.14428 bug_count_0[$bug_count_0] bug_count_1[$bug_count_1]" \
+ test $bug_count_0 -eq $bug_count_1 ||
+ failed=$(expr $failed + 1)
+
rm $delay_inject_conf
testok $0 $failed