You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which was added in 2.3.6 as part of deduplicating APIs when loading them.
I'm fairly sure the panic refers to ApiSpecRegister being nil, and not referenceSpec, as the latter is used a few lines further up in the codebase. And ApiSpecRegister can be nil sometimes, as a pointer to a map.
The good news is that this is already fixed in master, as we got rid of the double pointer. We should do something similar in stable.
The text was updated successfully, but these errors were encountered:
It's unnecessary, as maps are already pointers. This was done in master,
but not yet in stable.
The tricky part is that the double-pointer means that reads can't be
safely done without checking for nil first, which can be done if the
double pointer is removed.
This was missed in the backport of the API deduplication feature, which
led to a nil pointer dereference crash.
Fixes#938.
That line contains:
Which was added in 2.3.6 as part of deduplicating APIs when loading them.
I'm fairly sure the panic refers to
ApiSpecRegister
being nil, and notreferenceSpec
, as the latter is used a few lines further up in the codebase. AndApiSpecRegister
can be nil sometimes, as a pointer to a map.The good news is that this is already fixed in master, as we got rid of the double pointer. We should do something similar in stable.
The text was updated successfully, but these errors were encountered: