Bus error for nm_sr_ping inside Docker
When executing nm_sr_ping
inside a Docker container (see #8 (closed)), I always get a bus error:
GDB backtrace:
Core was generated by `/home/philippe/dev/builds/pm2/bin/nm_sr_ping'.
Program terminated with signal SIGBUS, Bus error.
#0 __memcpy_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:664
664 ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: No such file or directory.
[Current thread is 1 (Thread 0x7f7b65db62c0 (LWP 176277))]
(gdb) bt
#0 __memcpy_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:664
#1 0x00007f7b661ecc73 in nm_data_slicer_generator_op (p_slicer=0x561ac7fdb810, ptr=0x7f7b369a9000,
slice_len=16384, op=NM_SLICER_OP_COPY_FROM) at /root/pm2/scripts/../nmad/src/nm_data.c:656
#2 0x00007f7b661eca10 in nm_data_slicer_op (p_slicer=0x561ac7fdb810, ptr=0x7f7b369a9000, len=16384,
op=NM_SLICER_OP_COPY_FROM) at /root/pm2/scripts/../nmad/src/nm_data.c:580
#3 0x00007f7b661eca75 in nm_data_slicer_copy_from (p_slicer=0x561ac7fdb810, dest_ptr=0x7f7b369a9000,
slice_len=16384) at /root/pm2/scripts/../nmad/src/nm_data.c:595
#4 0x00007f7b65a1a388 in nm_minidriver_largeshm_send_poll (_status=0x561ac7fdb7d0)
at /root/pm2/scripts/../nmad/drivers/shm/nm_minidriver_largeshm.c:277
#5 0x00007f7b66228a22 in nm_pw_send_poll (p_pw=0x561ac7fe65d0)
at /root/pm2/scripts/../nmad/src/nm_schedule_out.c:345
#6 0x00007f7b66229575 in nm_pw_send_post (p_pw=0x561ac7fe65d0)
at /root/pm2/scripts/../nmad/src/nm_schedule_out.c:586
#7 0x00007f7b662284b3 in nm_pw_send_progress (p_pw=0x561ac7fe65d0)
at /root/pm2/scripts/../nmad/src/nm_schedule_out.c:233
#8 0x00007f7b66205200 in nm_ltask_pw_send (_pw=0x561ac7fe65d0)
at /root/pm2/scripts/../nmad/src/nm_piom_ltasks.c:155
#9 0x00007f7b65f577a9 in piom_ltask_queue_schedule (queue=0x561ac7fb3ea0, full=1)
at /root/pm2/scripts/../pioman/src/piom_ltask.c:128
#10 0x00007f7b65f582e4 in piom_ltask_schedule (point=32)
at /root/pm2/scripts/../pioman/src/piom_ltask.c:419
#11 0x00007f7b65f5fce0 in piom_cond_wait (cond=0x7fff32632510, mask=2048)
at /root/pm2/scripts/../pioman/src/piom_sem.c:157
#12 0x00007f7b6628475e in nm_cond_wait (p_cond=0x7fff32632510, bitmask=2048, p_core=0x561ac7fb8330)
at /root/pm2/scripts/../nmad/include/nm_core_interface.h:629
#13 0x00007f7b662847d6 in nm_status_wait (p_req=0x7fff32632500, bitmask=2048, p_core=0x561ac7fb8330)
at /root/pm2/scripts/../nmad/include/nm_core_interface.h:730
#14 0x00007f7b66288ffc in nm_sr_request_wait (p_request=0x7fff32632500)
at /root/pm2/scripts/../nmad/interfaces/sendrecv/src/nm_sendrecv_interface.c:124
#15 0x0000561ac62a0453 in nm_sr_swait (p_session=0x561ac7fdb870, p_request=0x7fff32632500)
at /home/philippe/dev/builds/pm2/include/nm_sendrecv_private.h:189
#16 0x0000561ac62a1270 in main (argc=1, argv=0x7fff32632878)
at /root/pm2/scripts/../nmad/examples/sendrecv/nm_sr_ping.c:123
Valgrind :
==176725== Process terminating with default action of signal 7 (SIGBUS): dumping core
==176725== Non-existent physical address at address 0x14F25000
==176725== at 0x484A35B: memmove (vg_replace_strmem.c:1382)
==176725== by 0x4873C72: nm_data_slicer_generator_op (nm_data.c:656)
==176725== by 0x4873A0F: nm_data_slicer_op (nm_data.c:580)
==176725== by 0x4873A74: nm_data_slicer_copy_from (nm_data.c:595)
==176725== by 0xCB6F387: nm_minidriver_largeshm_send_poll (nm_minidriver_largeshm.c:277)
==176725== by 0x48AFA21: nm_pw_send_poll (nm_schedule_out.c:345)
==176725== by 0x48B0574: nm_pw_send_post (nm_schedule_out.c:586)
==176725== by 0x48AF4B2: nm_pw_send_progress (nm_schedule_out.c:233)
==176725== by 0x488C1FF: nm_ltask_pw_send (nm_piom_ltasks.c:155)
==176725== by 0x4C737A8: piom_ltask_queue_schedule (piom_ltask.c:128)
==176725== by 0x4C742E3: piom_ltask_schedule (piom_ltask.c:419)
==176725== by 0x4C7BCDF: piom_cond_wait (piom_sem.c:157)
==176725== by 0x490B75D: nm_cond_wait (nm_core_interface.h:629)
==176725== by 0x490B7D5: nm_status_wait (nm_core_interface.h:730)
==176725== by 0x490FFFB: nm_sr_request_wait (nm_sendrecv_interface.c:124)