Istio sidecar crashes when running in pod with Envoy gateway

The Problem

This issue in Istio affects pods with an Envoy gateway, that also have an Istio sidecar (these are used by the Panoptica agent).
The issue caused the sidecar to crash.

Solution

Assign a unique ID to the envoy, using the argument --base-id . With this, the sidecar won't crash.