debug时new_allocator.h文件出现异常

debug时new_allocator.h文件出现错误debug时执行到语句while(!st.empty()) st.pop()//st为栈提示signal S

debug时new_allocator.h文件出现错误
debug时执行到语句
while(!st.empty()) st.pop();  //st为栈
提示signal SIGSEGV,出错地方在new_allocator.h的以下代码处:

      // __p is not permitted to be a null pointer.
      void
      deallocate(pointer __p, size_type)
      { ::operator delete(__p); }

但是如果直接build&run就没问题。

求教原因~
[解决办法]
去检查一下,你的代码是否越界了
[解决办法]
linux+gcc?