运行程序出现:double free or corruption (out)错误

环境

  • OS:ubuntu16;
  • 64位系统;
  • 虚拟机;

问题

在deb化一个ros仓库的时候,结尾出现:

dpkg-shlibdeps: 警告: can't extract name and version from library name 'libroscpp.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libroscpp.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'liblsdslam.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'liblsdslam.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'librosconsole.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'librosconsole.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libdynamic_reconfigure_config_init_mutex.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libdynamic_reconfigure_config_init_mutex.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libroscpp_serialization.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libroscpp_serialization.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libroslib.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libroslib.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libroslib.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libroslib.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libroscpp_serialization.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libroscpp_serialization.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libdynamic_reconfigure_config_init_mutex.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libdynamic_reconfigure_config_init_mutex.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'librosconsole.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'librosconsole.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'liblsdslam.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'liblsdslam.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'librostime.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'librostime.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libroscpp.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libroscpp.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libcv_bridge.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libcv_bridge.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'librostime.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'librostime.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libg2o_core.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libg2o_core.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libg2o_csparse_extension.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libg2o_csparse_extension.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libroscpp.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libroscpp.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libg2o_stuff.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libg2o_stuff.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libroscpp_serialization.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libroscpp_serialization.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libg2o_types_sba.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'libg2o_types_sba.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'librosconsole.so'
dpkg-shlibdeps: 警告: can't extract name and version from library name 'librosconsole.so'

但是未影响,deb化成功,顺利生成了可执行文件和动态链接库。

后续将deb包安装到虚拟机系统里,

执行其他命令:正常;

执行rosrun XXXX lsd_slam(一个可执行文件)出现错误:

*** Error in `/opt/ros/kinetic/lib/lsd_slam_core/live_slam': double free or corruption (out): 0x0000000000abc800 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f92e77f17e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f92e77fa37a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f92e77fe53c]
/opt/ros/kinetic/lib/libg2o_types_sba.so(_ZN3g2o26EdgeProjectP2MC_IntrinsicsD0Ev+0x2d)[0x7f92e6ed5dad]
/opt/ros/kinetic/lib/libg2o_core.so(_ZN3g2o7Factory12registerTypeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS_32AbstractHyperGraphElementCreatorE+0x33f)[0x7f92e7355f8f]
/opt/ros/kinetic/lib/libg2o_types_sba.so(+0x1db2a)[0x7f92e6ecfb2a]
/lib64/ld-linux-x86-64.so.2(+0x106ca)[0x7f92e974a6ca]
/lib64/ld-linux-x86-64.so.2(+0x107db)[0x7f92e974a7db]
/lib64/ld-linux-x86-64.so.2(+0xc6a)[0x7f92e973ac6a]
======= Memory map: ========
00400000-00451000 r-xp 00000000 08:01 396799                             /opt/ros/kinetic/lib/lsd_slam_core/live_slam
00650000-00651000 r--p 00050000 08:01 396799                             /opt/ros/kinetic/lib/lsd_slam_core/live_slam
00651000-00652000 rw-p 00051000 08:01 396799                             /opt/ros/kinetic/lib/lsd_slam_core/live_slam
00652000-00653000 rw-p 00000000 00:00 0 
00a95000-00ad7000 rw-p 00000000 00:00 0                                  [heap]
7f92d0000000-7f92d0021000 rw-p 00000000 00:00 0 
7f92d0021000-7f92d4000000 ---p 00000000 00:00 0 
7f92d6b20000-7f92d6b30000 r-xp 00000000 08:01 669387                     /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
7f92d6b30000-7f92d6d30000 ---p 00010000 08:01 669387                     /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
7f92d6d30000-7f92d6d31000 r--p 00010000 08:01 669387                     /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
7f92d6d31000-7f92d6d32000 rw-p 00011000 08:01 669387                     /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
7f92d6d32000-7f92d6d37000 r-xp 00000000 08:01 666034                     /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0
7f92d6d37000-7f92d6f36000 ---p 00005000 08:01 666034                     /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0
7f92d6f36000-7f92d6f37000 r--p 00004000 08:01 666034                     /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0
7f92d6f37000-7f92d6f38000 rw-p 00005000 08:01 666034                     /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0
7f92d6f38000-7f92d6f3c000 r-xp 00000000 08:01 667371                     /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0.0.0
7f92d6f3c000-7f92d713b000 ---p 00004000 08:01 667371                     /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0.0.0
7f92d713b000-7f92d713c000 r--p 00003000 08:01 667371                     /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0.0.0
7f92d713c000-7f92d713d000 rw-p 00004000 08:01 667371                     /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0.0.0
7f92d713d000-7f92d7154000 r-xp 00000000 08:01 667375                     /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0.0.0
7f92d7154000-7f92d7353000 ---p 00017000 08:01 667375                     /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0.0.0
7f92d7353000-7f92d7355000 r--p 00016000 08:01 667375                     /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0.0.0
7f92d7355000-7f92d7356000 rw-p 00018000 08:01 667375                     /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0.0.0
7f92d7356000-7f92d7357000 r-xp 00000000 08:01 656311                     /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7f92d7357000-7f92d7556000 ---p 00001000 08:01 656311                     /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7f92d7556000-7f92d7557000 r--p 00000000 08:01 656311                     /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7f92d7557000-7f92d7558000 rw-p 00001000 08:01 656311                     /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7f92d7558000-7f92d755d000 r-xp 00000000 08:01 665998                     /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7f92d755d000-7f92d775c000 ---p 00005000 08:01 665998                     /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7f92d775c000-7f92d775d000 r--p 00004000 08:01 665998                     /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7f92d775d000-7f92d775e000 rw-p 00005000 08:01 665998                     /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7f92d775e000-7f92d7760000 r-xp 00000000 08:01 665992                     /usr/lib/x86_64-linux-gnu/libXdamage.so.1.1.0
7f92d7760000-7f92d795f000 ---p 00002000 08:01 665992                     /usr/lib/x86_64-linux-gnu/libXdamage.so.1.1.0
7f92d795f000-7f92d7960000 r--p 00001000 08:01 665992                     /usr/lib/x86_64-linux-gnu/libXdamage.so.1.1.0
7f92d7960000-7f92d7961000 rw-p 00002000 08:01 665992                     /usr/lib/x86_64-linux-gnu/libXdamage.so.1.1.0
7f92d7961000-7f92d7972000 r-xp 00000000 08:01 665996                     /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7f92d7972000-7f92d7b71000 ---p 00011000 08:01 665996                     /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7f92d7b71000-7f92d7b72000 r--p 00010000 08:01 665996                     /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7f92d7b72000-7f92d7b73000 rw-p 00011000 08:01 665996                     /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7f92d7b73000-7f92d7b9f000 r-xp 00000000 08:01 655454                     /usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
7f92d7b9f000-7f92d7d9e000 ---p 0002c000 08:01 655454                     /usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
7f92d7d9e000-7f92d7da2000 r--p 0002b000 08:01 655454                     /usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
7f92d7da2000-7f92d7da3000 rw-p 0002f000 08:01 655454                     /usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
7f92d7da3000-7f92d7da4000 rw-p 00000000 00:00 0 
7f92d7da4000-7f92d7da5000 r-xp 00000000 08:01 667415                     /usr/lib/x86_64-linux-gnu/libxshmfence.so.1.0.0
7f92d7da5000-7f92d7fa5000 ---p 00001000 08:01 667415                     /usr/lib/x86_64-linux-gnu/libxshmfence.so.1.0.0
7f92d7fa5000-7f92d7fa6000 r--p 00001000 08:01 667415                     /usr/lib/x86_64-linux-gnu/libxshmfence.so.1.0.0
7f92d7fa6000-7f92d7fa7000 rw-p 00002000 08:01 667415                     /usr/lib/x86_64-linux-gnu/libxshmfence.so.1.0.0
7f92d7fa7000-7f92d7fac000 r-xp 00000000 08:01 667395                     /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1.0.0
7f92d7fac000-7f92d81ac000 ---p 00005000 08:01 667395                     /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1.0.0
7f92d81ac000-7f92d81ad000 r--p 00005000 08:01 667395                     /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1.0.0
7f92d81ad000-7f92d81ae000 rw-p 00006000 08:01 667395                     /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1.0.0
7f92d81ae000-7f92d81b0000 r-xp 00000000 08:01 667383                     /usr/lib/x86_64-linux-gnu/libxcb-present.so.0.0.0
7f92d81b0000-7f92d83af000 ---p 00002000 08:01 667383                     /usr/lib/x86_64-linux-gnu/libxcb-present.so.0.0.0
7f92d83af000-7f92d83b0000 r--p 00001000 08:01 667383                     /usr/lib/x86_64-linux-gnu/libxcb-present.so.0.0.0
7f92d83b0000-7f92d83b1000 rw-p 00002000 08:01 667383                     /usr/lib/x86_64-linux-gnu/libxcb-present.so.0.0.0
7f92d83b1000-7f92d83b3000 r-xp 00000000 08:01 667373                     /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0.0.0
7f92d83b3000-7f92d85b2000 ---p 00002000 08:01 667373                     /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0.0.0
7f92d85b2000-7f92d85b3000 r--p 00001000 08:01 667373                     /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0.0.0
7f92d85b3000-7f92d85b4000 rw-p 00002000 08:01 667373                     /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0.0.0
7f92d85b4000-7f92d85d8000 r-xp 00000000 08:01 666548                     /usr/lib/x86_64-linux-gnu/libgraphite2.so.3.0.1
7f92d85d8000-7f92d87d7000 ---p 00024000 08:01 666548                     /usr/lib/x86_64-linux-gnu/libgraphite2.so.3.0.1
7f92d87d7000-7f92d87d9000 r--p 00023000 08:01 666548                     /usr/lib/x86_64-linux-gnu/libgraphite2.so.3.0.1
7f92d87d9000-7f92d87da000 rw-p 00025000 08:01 666548                     /usr/lib/x86_64-linux-gnu/libgraphite2.so.3.0.1
7f92d87da000-7f92d887e000 r-xp 00000000 08:01 656116                     /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.1
7f92d887e000-7f92d8a7d000 ---p 000a4000 08:01 656116                     /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.1
7f92d8a7d000-7f92d8a83000 r--p 000a3000 08:01 656116                     /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.1
7f92d8a83000-7f92d8a84000 rw-p 000a9000 08:01 656116                     /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.1
7f92d8a84000-7f92d8af2000 r-xp 00000000 08:01 1185317                    /lib/x86_64-linux-gnu/libpcre.so.3.13.2
7f92d8af2000-7f92d8cf2000 ---p 0006e000 08:01 1185317                    /lib/x86_64-linux-gnu/libpcre.so.3.13.2
7f92d8cf2000-7f92d8cf3000 r--p 0006e000 08:01 1185317                    /lib/x86_64-linux-gnu/libpcre.so.3.13.2
7f92d8cf3000-7f92d8cf4000 rw-p 0006f000 08:01 1185317                    /lib/x86_64-linux-gnu/libpcre.so.3.13.2
7f92d8cf4000-7f92d8cfb000 r-xp 00000000 08:01 666373                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f92d8cfb000-7f92d8efa000 ---p 00007000 08:01 666373                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f92d8efa000-7f92d8efb000 r--p 00006000 08:01 666373                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f92d8efb000-7f92d8efc000 rw-p 00007000 08:01 666373                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f92d8efc000-7f92da7b2000 r-xp 00000000 08:01 665183                     /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7f92da7b2000-7f92da9b1000 ---p 018b6000 08:01 665183                     /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7f92da9b1000-7f92da9b2000 r--p 018b5000 08:01 665183                     /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7f92da9b2000-7f92da9b3000 rw-p 018b6000 08:01 665183                     /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7f92da9b3000-7f92da9d9000 r-xp 00000000 08:01 1187150                    /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f92da9d9000-7f92dabd9000 ---p 00026000 08:01 1187150                    /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f92dabd9000-7f92dabdb000 r--p 00026000 08:01 1187150                    /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f92dabdb000-7f92dabdc000 rw-p 00028000 08:01 1187150                    /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f92dabdc000-7f92dabe5000 r-xp 00000000 08:01 1189270                    /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f92dabe5000-7f92dade4000 ---p 00009000 08:01 1189270                    /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f92dade4000-7f92dade5000 r--p 00008000 08:01 1189270                    /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f92dade5000-7f92dade6000 rw-p 00009000 08:01 1189270                    /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f92dade6000-7f92dae14000 rw-p 00000000 00:00 0 
7f92dae14000-7f92dae18000 r-xp 00000000 08:01 1184761                    /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f92dae18000-7f92db017000 ---p 00004000 08:01 1184761                    /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f92db017000-7f92db018000 r--p 00003000 08:01 1184761                    /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f92db018000-7f92db019000 rw-p 00004000 08:01 1184761                    /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f92db019000-7f92db01b000 r-xp 00000000 08:01 1189278                    /lib/x86_64-linux-gnu/libutil-2.23.so
7f92db01b000-7f92db21a000 ---p 00002000 08:01 1189278                    /lib/x86_64-linux-gnu/libutil-2.23.so
7f92db21a000-7f92db21b000 r--p 00001000 08:01 1189278                    /lib/x86_64-linux-gnu/libutil-2.23.so
7f92db21b000-7f92db21c000 rw-p 00002000 08:01 1189278                    /lib/x86_64-linux-gnu/libutil-2.23.so
7f92db21c000-7f92db280000 r-xp 00000000 08:01 666960                     /usr/lib/x86_64-linux-gnu/libpcre16.so.3.13.2
7f92db280000-7f92db480000 ---p 00064000 08:01 666960                     /usr/lib/x86_64-linux-gnu/libpcre16.so.3.13.2
7f92db480000-7f92db481000 r--p 00064000 08:01 666960                     /usr/lib/x86_64-linux-gnu/libpcre16.so.3.13.2
7f92db481000-7f92db482000 rw-p 00065000 08:01 666960                     /usr/lib/x86_64-linux-gnu/libpcre16.so.3.13.2
7f92db482000-7f92db4f2000 r-xp 00000000 08:01 918311                     /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0
7f92db4f2000-7f92db6f1000 ---p 00070000 08:01 918311                     /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0
7f92db6f1000-7f92db6f4000 r--p 0006f000 08:01 918311                     /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0
7f92db6f4000-7f92db6f5000 rw-p 00072000 08:01 918311                     /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0
7f92db6f5000-7f92db6f6000 rw-p 00000000 00:00 0 
7f92db6f6000-7f92db752000 r-xp 00000000 08:01 666636                     /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0.10000.1
7f92db752000-7f92db952000 ---p 0005c000 08:01 666636                     /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0.10000.1
7f92db952000-7f92db953000 r--p 0005c000 08:01 666636                     /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0.10000.1
7f92db953000-7f92db954000 rw-p 0005d000 08:01 666636                     /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0.10000.1
7f92db954000-7f92dba63000 r-xp 00000000 08:01 1184845                    /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2
7f92dba63000-7f92dbc62000 ---p 0010f000 08:01 1184845                    /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2
7f92dbc62000-7f92dbc63000 r--p 0010e000 08:01 1184845                    /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2
7f92dbc63000-7f92dbc64000 rw-p 0010f000 08:01 1184845                    /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2
7f92dbc64000-7f92dbc65000 rw-p 00000000 00:00 0 
7f92dbc65000-7f92dbcb7000 r-xp 00000000 08:01 656007                     /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4800.2
7f92dbcb7000-7f92dbeb6000 ---p 00052000 08:01 656007                     /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4800.2
7f92dbeb6000-7f92dbeb7000 r--p 00051000 08:01 656007                     /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4800.2
7f92dbeb7000-7f92dbeb8000 rw-p 00052000 08:01 656007                     /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4800.2
7f92dbeb8000-7f92dbec3000 r-xp 00000000 08:01 666731                     /usr/lib/x86_64-linux-gnu/libjbig.so.0
7f92dbec3000-7f92dc0c2000 ---p 0000b000 08:01 666731                     /usr/lib/x86_64-linux-gnu/libjbig.so.0
7f92dc0c2000-7f92dc0c3000 r--p 0000a000 08:01 666731                     /usr/lib/x86_64-linux-gnu/libjbig.so.0
7f92dc0c3000-7f92dc0c6000 rw-p 0000b000 08:01 666731                     /usr/lib/x86_64-linux-gnu/libjbig.so.0
7f92dc0c6000-7f92dc0e7000 r-xp 00000000 08:01 1185255                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7f92dc0e7000-7f92dc2e6000 ---p 00021000 08:01 1185255                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7f92dc2e6000-7f92dc2e7000 r--p 00020000 08:01 1185255                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7f92dc2e7000-7f92dc2e8000 rw-p 00021000 08:01 1185255                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7f92dc2e8000-7f92dc2ed000 r-xp 00000000 08:01 665994                     /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7f92dc2ed000-7f92dc4ec000 ---p 00005000 08:01 665994                     /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7f92dc4ec000-7f92dc4ed000 r--p 00004000 08:01 665994                     /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7f92dc4ed000-7f92dc4ee000 rw-p 00005000 08:01 665994                     /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7f92dc4ee000-7f92dc4f0000 r-xp 00000000 08:01 665983                     /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7f92dc4f0000-7f92dc6f0000 ---p 00002000 08:01 665983                     /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7f92dc6f0000-7f92dc6f1000 r--p 00002000 08:01 665983                     /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7f92dc6f1000-7f92dc6f2000 rw-p 00003000 08:01 665983                     /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7f92dc6f2000-7f92dc871000 r-xp 00000000 08:01 665187                     /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7f92dc871000-7f92dca71000 ---p 0017f000 08:01 665187                     /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7f92dca71000-7f92dca81000 r--p 0017f000 08:01 665187                     /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7f92dca81000-7f92dca82000 rw-p 0018f000 08:01 665187                     /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7f92dca82000-7f92dca86000 rw-p 00000000 00:00 0 
7f92dca86000-7f92dccd8000 r-xp 00000000 08:01 665184                     /usr/lib/x86_64-linux-gnu/libicui18n.so.55.1
7f92dccd8000-7f92dced8000 ---p 00252000 08:01 665184                     /usr/lib/x86_64-linux-gnu/libicui18n.so.55.1
7f92dced8000-7f92dcee7000 r--p 00252000 08:01 665184                     /usr/lib/x86_64-linux-gnu/libicui18n.so.55.1
7f92dcee7000-7f92dcee8000 rw-p 00261000 08:01 665184                     /usr/lib/x86_64-linux-gnu/libicui18n.so.55.1
7f92dcee8000-7f92dcf0e000 r-xp 00000000 08:01 682405                     /usr/lib/x86_64-linux-gnu/libaprutil-1.so.0.5.4
7f92dcf0e000-7f92dd10d000 ---p 00026000 08:01 682405                     /usr/lib/x86_64-linux-gnu/libaprutil-1.so.0.5.4
7f92dd10d000-7f92dd10e000 r--p 00025000 08:01 682405                     /usr/lib/x86_64-linux-gnu/libaprutil-1.so.0.5.4
7f92dd10e000-7f92dd10f000 rw-p 00026000 08:01 682405                     /usr/lib/x86_64-linux-gnu/libaprutil-1.so.0.5.4
7f92dd10f000-7f92dd140000 r-xp 00000000 08:01 682391                     /usr/lib/x86_64-linux-gnu/libapr-1.so.0.5.2
7f92dd140000-7f92dd33f000 ---p 00031000 08:01 682391                     /usr/lib/x86_64-linux-gnu/libapr-1.so.0.5.2
7f92dd33f000-7f92dd340000 r--p 00030000 08:01 682391                     /usr/lib/x86_64-linux-gnu/libapr-1.so.0.5.2
7f92dd340000-7f92dd341000 rw-p 00031000 08:01 682391                     /usr/lib/x86_64-linux-gnu/libapr-1.so.0.5.2
7f92dd341000-7f92dd345000 r-xp 00000000 08:01 682105                     /usr/lib/x86_64-linux-gnu/libconsole_bridge.so.0.2
7f92dd345000-7f92dd544000 ---p 00004000 08:01 682105                     /usr/lib/x86_64-linux-gnu/libconsole_bridge.so.0.2
7f92dd544000-7f92dd545000 r--p 00003000 08:01 682105                     /usr/lib/x86_64-linux-gnu/libconsole_bridge.so.0.2Aborted (core dumped)

请问有遇到相似问题,或知晓解决办法的大佬吗?help!~

@wuwei @zhouxiaorui @chaichangkun @wangjianmin @hanhaomin

这个问题是linux/C的运行时环境捕获到了一处内存严重bug。

应该是使用的软件中的bug,为什么在这个时候被触发(而在自己build的时候不会触发)比较有意思。

有可能是出现了细微的版本不一致。

接下来是使用gdb追踪下,以及使用debug(而不是 release)方式构建和测试看看是否重现,可以得到更多的调试信息。

好的,我尝试一下看看。

问题已解决,解决办法是将代码的编译依赖重新修正,然后在纯净的环境里打包,防止本地机器的静态链接库build的时候造成影响。修改了CMakeLIsts.txt和control文件后deb成功且可用。

1赞