Memmove causing program crashes, giving SIGTRAP in GDB(?)
matthew patton
pattonme@yahoo.com
Thu Feb 26 09:17:24 GMT 2026
On Wed, Feb 25, 2026 at 11:59:07PM -0800, KENNON J CONRAD via Cygwin wrote:
> Okay, so now I learned about setting the frame and disassemble and see the memmove code:
>
> Dump of assembler code for function memmove:
[snip]
> => 0x00007ff96ba812a9 <+137>: rep movsq %ds:(%rsi),%es:(%rdi)
[snip]
> End of assembler dump.
movsq requires address alignment of 8 bytes.
What are the pointer addresses of the arguments to memmove()?
A SIGTRAP may result if the addresses are not 8-byte aligned.
767 * 2 / 8 and 2633 * 2 / 8 would seem to violate that rule.
More information about the Cygwin
mailing list