Process finished with exit code 133 (interrupted by signal 5: SIGTRAP)

解决方案:把析构函数也设置成虚函数

//父类 .cpp 文件
class identity {public://如果基类里面有虚成员函数,则最好把析构函数也设置为虚函数//否则,派生类在用基类指针调用时,发生内存泄露,析构时不会调用派生类的析构函数virtual ~identity() = 0;//操作菜单(纯虚函数)virtual void submeun() = 0;public:string name;//姓名string pwd;//密码
};
//父类 .h 文件
#include "identity.h"identity::~identity() {}

Process finished with exit code 133 (interrupted by signal 5: SIGTRAP)相关推荐

  1. Pytorch出现Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

    只是提出问题,并没有解决 简介 最近一直在修改一个3D的网络,在设计网络的过程中出现了上面的问题,具体的原因还没有找到,我有一个习惯是设计好网络结构后,需要使用Variable数据输入到网络里面测试, ...

  2. 《南溪的目标检测学习笔记》——验证模式下出现“Process finished with exit code 137 (interrupted by signal 9: SIGKILL)“的问题

    1 问题描述 在验证模式下运行代码的时候,出现这样的错误: Process finished with exit code 137 (interrupted by signal 9: SIGKILL) ...

  3. Process finished with exit code 135 (interrupted by signal 7: SIGEMT)

    在Ubuntu下运行Python程序,IDE为pycharm,直接运行出现如下所示的错误信息,但是在命令行下程序可以运行 Process finished with exit code 135 (in ...

  4. 【报错】Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

    在pycharm中运行程序报错:Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) 检查了常见的问题,与我的 ...

  5. pycharm debug: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

    记录: mac上pycharm上debug时,突然弹出以下提示 以为可以加速,点击install后,就出现debug时,程序退出: Process finished with exit code 13 ...

  6. Process finished with exit code 137 (interrupted by signal 9: SIGKILL)错误

    程序正确运行结束的提示是:Process finished with exit code 0.如果程序出现Process finished with code 137 (interrupted by ...

  7. 「Python-Bug」matplotlib画图时报错Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

    系统环境为: python3.6.9 ubuntu18.04 安装matplotlib画最简单的图也会报标题的错误,也没找到解决办法,也尝试了不同369版本下的matoplotlib版本,还是报同样的 ...

  8. Process finished with exit code 132 (interrupted by signal 4: SIGILL)

    遇到这种问题,一般都是包的版本问题 我的问题是Torch的版本低了,所以当我升级包之后,代码就可以正常运行了 升级包:pip install --upgrade xxxxx 升级包中出现报错:read ...

  9. python Process finished with exit code -1073741819 (0xC0000005) 解决

    运行程序时,Process finished with exit code -1073741819 (0xC0000005) 报错 原因:没有 python33.dll 在 c:\WINDOWS\sy ...

最新文章

  1. 全栈工程师就是一棵歪脖子树
  2. 云南大学计算机网络原理,云南大学软件学院计算机网络原理期中试卷王世普.doc...
  3. 0基础学python-看完这篇,零基础也知道怎么学Python
  4. 我用nagios-check_http check Checker
  5. Python教程:import 、from import 及from import *
  6. 动态规划入门_数塔问题
  7. 分布式系统架构师必须要考虑的四个方面
  8. 如何处理“转换数据类型错误”错误?
  9. grid赋予oracle磁盘权限,grid 与 Oracle 用户下 Oracle 程序权限不一致导致无法连接 ASM 问题...
  10. 58、IPv6访问控制列表及ICMPv6简介
  11. SPSS案例实践:RFM营销分析
  12. ubuntu结束进程快捷键_ubuntu快捷键详细版
  13. Java 计量单位换算 工具类
  14. wifi可以连接但是上不了网该怎么解决?
  15. 关于Negative values in data passed to MultinomialNB (input X)报错问题
  16. 重点推荐:看乾隆“上书房”求学记,哈哈
  17. kubectl命令的使用、滚动更新以及回滚操作
  18. IOS开发笔记和技巧
  19. 每周分享第 38 期
  20. Kindle资源-史上最全60GB的Kindle电子书资源网盘打包下载

热门文章

  1. Open BMC开发系列(六)增加对GPIO的支持
  2. env 文件与环境设置
  3. php move函数,PHP中move_uploaded_file() 函数详解
  4. 【pygame】字体
  5. CSP题目:跳一跳小游戏
  6. React 实现js跳转路由
  7. java 打war包,jar包
  8. 二,usb描述符-设备 配置 接口 端点
  9. python django校园二手商城
  10. ProcessingJoy —— 连线的幽浮魔点(2D/3D)【JAVA】