Re: Memmove causing program crashes, giving SIGTRAP in GDB(?)

Glenn Strauss via Cygwin <[email protected]>
Newsgroups gmane.os.cygwin
Message-ID <aaABFf5iEowV1l7I@xps13>
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.

Cheers, Glenn

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.