Docker容器中的ipc应用程序段错误

时间:2018-11-25 16:29:00

标签: docker

我试图制作一个通常可以在我的主机上正常工作的ipc应用程序,但在docker启动时似乎会出现段错误。 docker容器以特权模式运行。

这是分段错误导致的gdb回溯。

    Starting program: /opt/cathook/ipc/bin/server
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0xf7d51191 in ?? () from /lib/i386-linux-gnu/libc.so.6
(gdb) bt
#0  0xf7d51191 in ?? () from /lib/i386-linux-gnu/libc.so.6
#1  0x56557c44 in memset (__len=274724, __ch=0, __dest=<optimized out>) at /usr/include/i386-linux-gnu/bits/string_fortified.h:71
#2  cat_ipc::Peer<server_data_s, user_data_s>::InitManager (this=0x5655b1a0 <peer()::object>, this=0x5655b1a0 <peer()::object>)
    at /home/cathook-ipc-server/simple-ipc/src/include/ipcb.hpp:178
#3  cat_ipc::Peer<server_data_s, user_data_s>::Connect (this=0x5655b1a0 <peer()::object>) at /home/cathook-ipc-server/simple-ipc/src/include/ipcb.hpp:136
#4  0x565561d0 in main (argc=1, argv=0xffffd7a4) at src/server.cpp:106

0 个答案:

没有答案