mosquitto_pub中的错误:双重释放或损坏(!prev):0x00000000006a73f0

时间:2019-05-08 12:13:19

标签: linux mosquitto

我正在使用mosquitto_pub发送请求。但是我得到了双重自由或腐败的错误。

下面是我得到的错误

======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7ff8c96b37e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7ff8c96bc37a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7ff8c96c053c]
mosquitto_pub[0x403263]
mosquitto_pub[0x4020d6]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7ff8c965c830]
mosquitto_pub[0x402229]
======= Memory map: ========
00400000-0040b000 r-xp 00000000 08:01 5767892                            /usr/bin/mosquitto_pub
0060a000-0060b000 r--p 0000a000 08:01 5767892                            /usr/bin/mosquitto_pub
0060b000-0060c000 rw-p 0000b000 08:01 5767892                            /usr/bin/mosquitto_pub
00687000-006c9000 rw-p 00000000 00:00 0                                  [heap]
7ff8c4000000-7ff8c4021000 rw-p 00000000 00:00 0 
7ff8c4021000-7ff8c8000000 ---p 00000000 00:00 0 
7ff8c853d000-7ff8c8553000 r-xp 00000000 08:01 6034212                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff8c8553000-7ff8c8752000 ---p 00016000 08:01 6034212                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff8c8752000-7ff8c8753000 rw-p 00015000 08:01 6034212                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff8c8753000-7ff8c875e000 r-xp 00000000 08:01 6039365                    /lib/x86_64-linux-gnu/libnss_files-2.23.so
7ff8c875e000-7ff8c895d000 ---p 0000b000 08:01 6039365                    /lib/x86_64-linux-gnu/libnss_files-2.23.so
7ff8c895d000-7ff8c895e000 r--p 0000a000 08:01 6039365                    /lib/x86_64-linux-gnu/libnss_files-2.23.so
7ff8c895e000-7ff8c895f000 rw-p 0000b000 08:01 6039365                    /lib/x86_64-linux-gnu/libnss_files-2.23.so
7ff8c895f000-7ff8c8965000 rw-p 00000000 00:00 0 
7ff8c8965000-7ff8c8968000 r-xp 00000000 08:01 6039353                    /lib/x86_64-linux-gnu/libdl-2.23.so
7ff8c8968000-7ff8c8b67000 ---p 00003000 08:01 6039353                    /lib/x86_64-linux-gnu/libdl-2.23.so
7ff8c8b67000-7ff8c8b68000 r--p 00002000 08:01 6039353                    /lib/x86_64-linux-gnu/libdl-2.23.so
7ff8c8b68000-7ff8c8b69000 rw-p 00003000 08:01 6039353                    /lib/x86_64-linux-gnu/libdl-2.23.so
7ff8c8b69000-7ff8c8b81000 r-xp 00000000 08:01 6039355                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7ff8c8b81000-7ff8c8d80000 ---p 00018000 08:01 6039355                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7ff8c8d80000-7ff8c8d81000 r--p 00017000 08:01 6039355                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7ff8c8d81000-7ff8c8d82000 rw-p 00018000 08:01 6039355                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7ff8c8d82000-7ff8c8d86000 rw-p 00000000 00:00 0 
7ff8c8d86000-7ff8c8fa1000 r-xp 00000000 08:01 6029317                    /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7ff8c8fa1000-7ff8c91a0000 ---p 0021b000 08:01 6029317                    /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7ff8c91a0000-7ff8c91bc000 r--p 0021a000 08:01 6029317                    /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7ff8c91bc000-7ff8c91c8000 rw-p 00236000 08:01 6029317                    /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7ff8c91c8000-7ff8c91cb000 rw-p 00000000 00:00 0 
7ff8c91cb000-7ff8c9229000 r-xp 00000000 08:01 6029394                    /lib/x86_64-linux-gnu/libssl.so.1.0.0
7ff8c9229000-7ff8c9429000 ---p 0005e000 08:01 6029394                    /lib/x86_64-linux-gnu/libssl.so.1.0.0
7ff8c9429000-7ff8c942d000 r--p 0005e000 08:01 6029394                    /lib/x86_64-linux-gnu/libssl.so.1.0.0
7ff8c942d000-7ff8c9434000 rw-p 00062000 08:01 6029394                    /lib/x86_64-linux-gnu/libssl.so.1.0.0
7ff8c9434000-7ff8c943b000 r-xp 00000000 08:01 6039351                    /lib/x86_64-linux-gnu/librt-2.23.so
7ff8c943b000-7ff8c963a000 ---p 00007000 08:01 6039351                    /lib/x86_64-linux-gnu/librt-2.23.so
7ff8c963a000-7ff8c963b000 r--p 00006000 08:01 6039351                    /lib/x86_64-linux-gnu/librt-2.23.so
7ff8c963b000-7ff8c963c000 rw-p 00007000 08:01 6039351                    /lib/x86_64-linux-gnu/librt-2.23.so
7ff8c963c000-7ff8c97fc000 r-xp 00000000 08:01 6039368                    /lib/x86_64-linux-gnu/libc-2.23.so
7ff8c97fc000-7ff8c99fc000 ---p 001c0000 08:01 6039368                    /lib/x86_64-linux-gnu/libc-2.23.so
7ff8c99fc000-7ff8c9a00000 r--p 001c0000 08:01 6039368                    /lib/x86_64-linux-gnu/libc-2.23.so
7ff8c9a00000-7ff8c9a02000 rw-p 001c4000 08:01 6039368                    /lib/x86_64-linux-gnu/libc-2.23.so
7ff8c9a02000-7ff8c9a06000 rw-p 00000000 00:00 0 
7ff8c9a06000-7ff8c9a1d000 r-xp 00000000 08:01 5767327                    /usr/lib/x86_64-linux-gnu/libmosquitto.so.1
7ff8c9a1d000-7ff8c9c1c000 ---p 00017000 08:01 5767327                    /usr/lib/x86_64-linux-gnu/libmosquitto.so.1
7ff8c9c1c000-7ff8c9c1d000 r--p 00016000 08:01 5767327                    /usr/lib/x86_64-linux-gnu/libmosquitto.so.1
7ff8c9c1d000-7ff8c9c1e000 rw-p 00017000 08:01 5767327                    /usr/lib/x86_64-linux-gnu/libmosquitto.so.1
7ff8c9c1e000-7ff8c9c44000 r-xp 00000000 08:01 6039354                    /lib/x86_64-linux-gnu/ld-2.23.so
7ff8c9e1d000-7ff8c9e23000 rw-p 00000000 00:00 0 
7ff8c9e42000-7ff8c9e43000 rw-p 00000000 00:00 0 
7ff8c9e43000-7ff8c9e44000 r--p 00025000 08:01 6039354                    /lib/x86_64-linux-gnu/ld-2.23.so
7ff8c9e44000-7ff8c9e45000 rw-p 00026000 08:01 6039354                    /lib/x86_64-linux-gnu/ld-2.23.so
7ff8c9e45000-7ff8c9e46000 rw-p 00000000 00:00 0 
7fffb0cbd000-7fffb0cde000 rw-p 00000000 00:00 0                          [stack]
7fffb0ddf000-7fffb0de2000 r--p 00000000 00:00 0                          [vvar]
7fffb0de2000-7fffb0de4000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)

请帮助我。我坚持下去。

0 个答案:

没有答案