Skip to content

Instantly share code, notes, and snippets.

@zzeroo
Created May 8, 2017 16:26
Show Gist options
  • Save zzeroo/8c16db7bffdf62ba622d68162147e7e8 to your computer and use it in GitHub Desktop.
Save zzeroo/8c16db7bffdf62ba622d68162147e7e8 to your computer and use it in GitHub Desktop.
rust backtrace libmodbus receive segfault
*** buffer overflow detected ***: target/debug/examples/test-receive-segfault terminated
======= Backtrace: =========
/usr/lib/libc.so.6(+0x722ab)[0x7f8698ef22ab]
/usr/lib/libc.so.6(__fortify_fail+0x37)[0x7f8698f7d407]
/usr/lib/libc.so.6(+0xfb330)[0x7f8698f7b330]
/usr/lib/libc.so.6(+0xfd34a)[0x7f8698f7d34a]
/usr/lib/libmodbus.so.5(_modbus_receive_msg+0x6b)[0x7f8699a691fb]
target/debug/examples/test-receive-segfault(+0xa9ea)[0x5637f3ace9ea]
target/debug/examples/test-receive-segfault(+0x96d7)[0x5637f3acd6d7]
target/debug/examples/test-receive-segfault(+0x2e61b)[0x5637f3af261b]
target/debug/examples/test-receive-segfault(+0x28032)[0x5637f3aec032]
target/debug/examples/test-receive-segfault(+0x97b3)[0x5637f3acd7b3]
/usr/lib/libc.so.6(__libc_start_main+0xf1)[0x7f8698ea0511]
target/debug/examples/test-receive-segfault(+0x724a)[0x5637f3acb24a]
======= Memory map: ========
5637f3ac4000-5637f3b30000 r-xp 00000000 fe:04 1984504 /var/src/Rust/libmodbus-rs/target/debug/examples/test-receive-segfault
5637f3d2f000-5637f3d33000 r--p 0006b000 fe:04 1984504 /var/src/Rust/libmodbus-rs/target/debug/examples/test-receive-segfault
5637f3d33000-5637f3d34000 rw-p 0006f000 fe:04 1984504 /var/src/Rust/libmodbus-rs/target/debug/examples/test-receive-segfault
5637f3d34000-5637f3d35000 rw-p 00000000 00:00 0
7f8698a00000-7f8698e00000 rw-p 00000000 00:00 0
7f8698e80000-7f869901b000 r-xp 00000000 00:13 448959 /usr/lib/libc-2.25.so
7f869901b000-7f869921a000 ---p 0019b000 00:13 448959 /usr/lib/libc-2.25.so
7f869921a000-7f869921e000 r--p 0019a000 00:13 448959 /usr/lib/libc-2.25.so
7f869921e000-7f8699220000 rw-p 0019e000 00:13 448959 /usr/lib/libc-2.25.so
7f8699220000-7f8699224000 rw-p 00000000 00:00 0
7f8699224000-7f869923a000 r-xp 00000000 00:13 451026 /usr/lib/libgcc_s.so.1
7f869923a000-7f8699439000 ---p 00016000 00:13 451026 /usr/lib/libgcc_s.so.1
7f8699439000-7f869943a000 r--p 00015000 00:13 451026 /usr/lib/libgcc_s.so.1
7f869943a000-7f869943b000 rw-p 00016000 00:13 451026 /usr/lib/libgcc_s.so.1
7f869943b000-7f8699454000 r-xp 00000000 00:13 448978 /usr/lib/libpthread-2.25.so
7f8699454000-7f8699653000 ---p 00019000 00:13 448978 /usr/lib/libpthread-2.25.so
7f8699653000-7f8699654000 r--p 00018000 00:13 448978 /usr/lib/libpthread-2.25.so
7f8699654000-7f8699655000 rw-p 00019000 00:13 448978 /usr/lib/libpthread-2.25.so
7f8699655000-7f8699659000 rw-p 00000000 00:00 0
7f8699659000-7f8699660000 r-xp 00000000 00:13 448905 /usr/lib/librt-2.25.so
7f8699660000-7f869985f000 ---p 00007000 00:13 448905 /usr/lib/librt-2.25.so
7f869985f000-7f8699860000 r--p 00006000 00:13 448905 /usr/lib/librt-2.25.so
7f8699860000-7f8699861000 rw-p 00007000 00:13 448905 /usr/lib/librt-2.25.so
7f8699861000-7f8699864000 r-xp 00000000 00:13 448909 /usr/lib/libdl-2.25.so
7f8699864000-7f8699a63000 ---p 00003000 00:13 448909 /usr/lib/libdl-2.25.so
7f8699a63000-7f8699a64000 r--p 00002000 00:13 448909 /usr/lib/libdl-2.25.so
7f8699a64000-7f8699a65000 rw-p 00003000 00:13 448909 /usr/lib/libdl-2.25.so
7f8699a65000-7f8699a6f000 r-xp 00000000 00:13 1302597 /usr/lib/libmodbus.so.5.1.0
7f8699a6f000-7f8699c6e000 ---p 0000a000 00:13 1302597 /usr/lib/libmodbus.so.5.1.0
7f8699c6e000-7f8699c6f000 r--p 00009000 00:13 1302597 /usr/lib/libmodbus.so.5.1.0
7f8699c6f000-7f8699c70000 rw-p 0000a000 00:13 1302597 /usr/lib/libmodbus.so.5.1.0
7f8699c70000-7f8699c93000 r-xp 00000000 00:13 448960 /usr/lib/ld-2.25.so
7f8699e3b000-7f8699e42000 rw-p 00000000 00:00 0
7f8699e8f000-7f8699e92000 rw-p 00000000 00:00 0
7f8699e92000-7f8699e93000 r--p 00022000 00:13 448960 /usr/lib/ld-2.25.so
7f8699e93000-7f8699e94000 rw-p 00023000 00:13 448960 /usr/lib/ld-2.25.so
7f8699e94000-7f8699e95000 rw-p 00000000 00:00 0
7ffc62545000-7ffc62546000 ---p 00000000 00:00 0
7ffc62d24000-7ffc62d45000 rw-p 00000000 00:00 0 [stack]
7ffc62d8b000-7ffc62d8d000 r--p 00000000 00:00 0 [vvar]
7ffc62d8d000-7ffc62d8f000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment