To ascertain the grounds on which an informal or void warrant has been issued, the judge or court may cause to be summoned the magistrate who issued the warrant, and may, by an order, require him to bring with him all the papers and proceedings touching the matter. The attendance of such magistrate and the production of such papers may be enforced by warrant of arrest.
Tex. Code Crim. Proc. § 11.47