public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@polymtl.ca>
To: Jason Long <hack3rcon@yahoo.com>,
	Eli Zaretskii via Gdb <gdb@sourceware.org>
Subject: Re: Trace/breakpoint trap.
Date: Fri, 14 May 2021 15:52:45 -0400	[thread overview]
Message-ID: <30782f24-62b0-97c8-db48-d798e773fa53@polymtl.ca> (raw)
In-Reply-To: <2058203102.408071.1621021556704@mail.yahoo.com>

On 2021-05-14 3:45 p.m., Jason Long wrote:> Hello,
> Thank you.
> The "bt" show me:
> 
> (gdb) bt
> #0  0x000055555a7556f3 in ?? ()
> #1  0x00005555590002e0 in ?? ()
> #2  0x000055555a75474c in ?? ()
> #3  0x000055555a75a4a1 in ?? ()
> #4  0x0000555558fffb7c in ?? ()
> #5  0x000055555a75addb in ?? ()
> #6  0x0000555558ffe191 in ?? ()
> #7  0x000055555742527b in ?? ()
> #8  0x00007ffff568509b in __libc_start_main (main=0x555557425130, argc=1, 
>     argv=0x7fffffffe288, init=<optimized out>, fini=<optimized out>, 
>     rtld_fini=<optimized out>, stack_end=0x7fffffffe278)
>     at ../csu/libc-start.c:308
> #9  0x000055555742502a in _start ()
> 
> 
> And "info target" showed me: https://pastebin.ubuntu.com/p/3qT9yhkW3Y/

That tells you you are stopped somewhere in your "atomic" binary, whose
.text section is at:

	0x0000555557425000 - 0x000055555c440280 is .text

It could be useful to have function names, for that you'll need a build
with debug information (or install separate debug information, if
available).

You could try looking at the disassembly just around where you are
stopped, see if it looks like an instruction that could have caused a
trap, like a breakpoint instruction or a call to the "kill" syscall.

It's also possible that this application uses SIGTRAP for its own
purpose.  For example, there could be multiple threads sending SIGTRAPs
to each other.  It's also possible that it's an anti-debugging
technique.

Simon

  reply	other threads:[~2021-05-14 19:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <895597245.1533806.1619862429301.ref@mail.yahoo.com>
2021-05-01  9:47 ` Jason Long
2021-05-01 21:31   ` Simon Marchi
2021-05-14 19:45     ` Jason Long
2021-05-14 19:52       ` Simon Marchi [this message]
2021-05-14 20:08         ` Jason Long
2021-05-14 22:01           ` Jeffrey Walton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=30782f24-62b0-97c8-db48-d798e773fa53@polymtl.ca \
    --to=simon.marchi@polymtl.ca \
    --cc=gdb@sourceware.org \
    --cc=hack3rcon@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).