douyue8191 2015-09-18 23:08
浏览 484
已采纳

在Linux中使用iprm删除共享内存失败[关闭]

I'm working with shared memory and I am testing memory reference overflow. I have some problems in my code and I can't delete all memory segments I'm trying like this:

ipcs -m
ipcrm -m 360448
ipcs -m

The memory segment never deletes

    ------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status
0x00000000 360448     root       700        2484       2          dest
0x00000000 393218     root       700        8372       2          dest
0x00000000 425987     root       700        4416       2          dest
0x00000000 458756     root       700        2484       2          dest
0x00000000 491525     root       700        2400       2          dest
0x00000000 524294     root       700        12800      2          dest
0x00000000 557063     root       700        5800       2          dest
0x00000000 589832     root       700        144160     2          dest
0x00000000 622601     root       700        24672      2          dest
0x00000000 655370     root       700        34368      2          dest
0x00000000 688139     root       700        9996       2          dest
  • 写回答

1条回答 默认 最新

  • dongsu1539 2015-09-18 23:47
    关注

    I found the solution. When the shared memory status is dest first list all memory segment with ipcs -mp then delete the memory segment with kill "lpid number"

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改
  • ¥20 wireshark抓不到vlan
  • ¥20 关于#stm32#的问题:需要指导自动酸碱滴定仪的原理图程序代码及仿真
  • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持
  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法