A recent question was asking what would happen if one attempted to exit the Schengen area with an invalidated residency permit. In that particular situation the person in question was a citizen of an Annex II country, so it was legal for her to stay past the expiration date.
However what would happen if a non-Annex II individual attempted to enter/leave the Schengen area with a residency permit that looked valid, but was actually invalidated back in the issuing country? Is there a centralized database of permits that the border guards could look up?
Obviously the issuing country will have access to that information, but what about other members of the Schengen area? Note that since this question is about short-term trips on an invalid residency permit, it doesn't belong to Expats.
P.S. Before you claim fraud, note that residency permits can be revoked without the holder even being aware (see linked question for an example) and therefore some people might try to enter the Schengen without even knowing their permit is no longer valid.