--Hello all libmodbus community,If I could get any help that would be really great. I am testing the code for Jetson TK1, for which my ultimate goal is to use modbus through RTS485 driver.
One time I was able to run a code for the server-client (default: tcp) on the same machine running ubuntu in two different shells; but, now I again I am getting a buffer overflow detected error.
./newserver
Waiting for an indication...
*** buffer overflow detected ***: ./newserver terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f6556ad17e5]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f6556b7311c]
/lib/x86_64-linux-gnu/libc.so.6(+0x117120)[0x7f6556b71120]
/lib/x86_64-linux-gnu/libc.so.6(+0x119067)[0x7f6556b73067]
/usr/local/lib/libmodbus.so.5(_modbus_receive_msg+0x6c)[0x7f6556e282bc]
./newserver[0x401482]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f6556a7a830]
./newserver[0x401079]
======= Memory map: ========
00400000-00402000 r-xp 00000000 08:05 1060826 /home/arvindall/Desktop/libmodbus-master /tests/newserver
00601000-00602000 r--p 00001000 08:05 1060826 /home/arvindall/Desktop/libmodbus-master /tests/newserver
00602000-00603000 rw-p 00002000 08:05 1060826 /home/arvindall/Desktop/libmodbus-master /tests/newserver
025d5000-025f6000 rw-p 00000000 00:00 0 [heap]
7f6556844000-7f655685a000 r-xp 00000000 08:05 660720 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f655685a000-7f6556a59000 ---p 00016000 08:05 660720 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f6556a59000-7f6556a5a000 rw-p 00015000 08:05 660720 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f6556a5a000-7f6556c1a000 r-xp 00000000 08:05 669233 /lib/x86_64-linux-gnu/libc-2.23.so
7f6556c1a000-7f6556e1a000 ---p 001c0000 08:05 669233 /lib/x86_64-linux-gnu/libc-2.23.so
7f6556e1a000-7f6556e1e000 r--p 001c0000 08:05 669233 /lib/x86_64-linux-gnu/libc-2.23.so
7f6556e1e000-7f6556e20000 rw-p 001c4000 08:05 669233 /lib/x86_64-linux-gnu/libc-2.23.so
7f6556e20000-7f6556e24000 rw-p 00000000 00:00 0
7f6556e24000-7f6556e2e000 r-xp 00000000 08:05 543359 /usr/local/lib/libmodbus.so.5.1.0
7f6556e2e000-7f655702e000 ---p 0000a000 08:05 543359 /usr/local/lib/libmodbus.so.5.1.0
7f655702e000-7f655702f000 r--p 0000a000 08:05 543359 /usr/local/lib/libmodbus.so.5.1.0
7f655702f000-7f6557030000 rw-p 0000b000 08:05 543359 /usr/local/lib/libmodbus.so.5.1.0
7f6557030000-7f6557056000 r-xp 00000000 08:05 660831 /lib/x86_64-linux-gnu/ld-2.23.so
7f6557235000-7f6557238000 rw-p 00000000 00:00 0
7f6557252000-7f6557255000 rw-p 00000000 00:00 0
7f6557255000-7f6557256000 r--p 00025000 08:05 660831 /lib/x86_64-linux-gnu/ld-2.23.so
7f6557256000-7f6557257000 rw-p 00026000 08:05 660831 /lib/x86_64-linux-gnu/ld-2.23.so
7f6557257000-7f6557258000 rw-p 00000000 00:00 0
7fff95028000-7fff95049000 rw-p 00000000 00:00 0 [stack]
7fff95137000-7fff95139000 r--p 00000000 00:00 0 [vvar]
7fff95139000-7fff9513b000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted (core dumped)
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "libmodbus".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse libmodbus+unsubscribe@googlegroups.com.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse libmodbus+...@googlegroups.com.