public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Help: debug a binary
@ 2020-04-29 16:16 Kunal Chauhan
  2020-04-29 17:51 ` Jonathan Wakely
  0 siblings, 1 reply; 5+ messages in thread
From: Kunal Chauhan @ 2020-04-29 16:16 UTC (permalink / raw)
  To: gcc-help

Hi team,

How can I debug my binary.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Help: debug a binary
  2020-04-29 16:16 Help: debug a binary Kunal Chauhan
@ 2020-04-29 17:51 ` Jonathan Wakely
  2020-05-05 11:22   ` Kunal Chauhan
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Wakely @ 2020-04-29 17:51 UTC (permalink / raw)
  To: Kunal Chauhan; +Cc: gcc-help

On Wed, 29 Apr 2020 at 18:23, Kunal Chauhan via Gcc-help
<gcc-help@gcc.gnu.org> wrote:
>
> Hi team,
>
> How can I debug my binary.

Compile with the -g flag and use a debugger.

Search the web for "using gdb".

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Help: debug a binary
  2020-04-29 17:51 ` Jonathan Wakely
@ 2020-05-05 11:22   ` Kunal Chauhan
  2020-05-05 12:53     ` Jonathan Wakely
  0 siblings, 1 reply; 5+ messages in thread
From: Kunal Chauhan @ 2020-05-05 11:22 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: gcc-help

Hi Team,


Help for finding and understanding the below line coming in gdb : what
exactly they are saying ?


#0  0xb66e8ee4 in strlen () from /lib/libc.so.6

[Current thread is 1 (LWP 2084)]

(gdb) bt full

#0  0xb66e8ee4 in strlen () from /lib/libc.so.6

No symbol table info available.

#1  0xb6da3854 in ?? () from /opt/qcom/lib/libcurl.so.4

No symbol table info available.

#2  0x05b40000 in ?? ()

No symbol table info available.

Backtrace stopped: previous frame identical to this frame (corrupt stack?)

On Wed, Apr 29, 2020 at 11:21 PM Jonathan Wakely <jwakely.gcc@gmail.com>
wrote:

> On Wed, 29 Apr 2020 at 18:23, Kunal Chauhan via Gcc-help
> <gcc-help@gcc.gnu.org> wrote:
> >
> > Hi team,
> >
> > How can I debug my binary.
>
> Compile with the -g flag and use a debugger.
>
> Search the web for "using gdb".
>


-- 
*Thanks with Regards!*

*Kunal Chauhan*
*Mob:09813614826*
*Mob:08860397903*

*E-mail:atkunalchauhan@gmail.com <E-mail%3Aatkunalchauhan@gmail.com>*

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Help: debug a binary
  2020-05-05 11:22   ` Kunal Chauhan
@ 2020-05-05 12:53     ` Jonathan Wakely
  2020-05-05 13:07       ` Kunal Chauhan
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Wakely @ 2020-05-05 12:53 UTC (permalink / raw)
  To: Kunal Chauhan; +Cc: gcc-help

On Tue, 5 May 2020 at 12:23, Kunal Chauhan <atkunalchauhan@gmail.com> wrote:
>
> Hi Team,

This is the mailing list for GCC, not GDB. Questions about how to use
GDB or what GDB messages mean are off-topic here.

>
> Help for finding and understanding the below line coming in gdb : what exactly they are saying ?

Looks like it's saying that your program's stack looks corrupt. You
probably have a memory corruption bug. Try using valgrind to run it,
or recompile with -fsanitize=undefined and/or -fsanitize=address and
see if they report errors when you run it.

>
> #0  0xb66e8ee4 in strlen () from /lib/libc.so.6
>
> [Current thread is 1 (LWP 2084)]
>
> (gdb) bt full
>
> #0  0xb66e8ee4 in strlen () from /lib/libc.so.6
>
> No symbol table info available.
>
> #1  0xb6da3854 in ?? () from /opt/qcom/lib/libcurl.so.4
>
> No symbol table info available.
>
> #2  0x05b40000 in ?? ()
>
> No symbol table info available.
>
> Backtrace stopped: previous frame identical to this frame (corrupt stack?)
>
>
> On Wed, Apr 29, 2020 at 11:21 PM Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
>>
>> On Wed, 29 Apr 2020 at 18:23, Kunal Chauhan via Gcc-help
>> <gcc-help@gcc.gnu.org> wrote:
>> >
>> > Hi team,
>> >
>> > How can I debug my binary.
>>
>> Compile with the -g flag and use a debugger.
>>
>> Search the web for "using gdb".
>
>
>
> --
> Thanks with Regards!
>
> Kunal Chauhan
> Mob:09813614826
> Mob:08860397903
> E-mail:atkunalchauhan@gmail.com
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Help: debug a binary
  2020-05-05 12:53     ` Jonathan Wakely
@ 2020-05-05 13:07       ` Kunal Chauhan
  0 siblings, 0 replies; 5+ messages in thread
From: Kunal Chauhan @ 2020-05-05 13:07 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: gcc-help

Thanks !  for pointers towards topic
 I will separate the GDB discussion from here .! ; Will only use GCC
discussion here

On Tue, May 5, 2020 at 6:23 PM Jonathan Wakely <jwakely.gcc@gmail.com>
wrote:

> On Tue, 5 May 2020 at 12:23, Kunal Chauhan <atkunalchauhan@gmail.com>
> wrote:
> >
> > Hi Team,
>
> This is the mailing list for GCC, not GDB. Questions about how to use
> GDB or what GDB messages mean are off-topic here.
>
> >
> > Help for finding and understanding the below line coming in gdb : what
> exactly they are saying ?
>
> Looks like it's saying that your program's stack looks corrupt. You
> probably have a memory corruption bug. Try using valgrind to run it,
> or recompile with -fsanitize=undefined and/or -fsanitize=address and
> see if they report errors when you run it.
>
> >
> > #0  0xb66e8ee4 in strlen () from /lib/libc.so.6
> >
> > [Current thread is 1 (LWP 2084)]
> >
> > (gdb) bt full
> >
> > #0  0xb66e8ee4 in strlen () from /lib/libc.so.6
> >
> > No symbol table info available.
> >
> > #1  0xb6da3854 in ?? () from /opt/qcom/lib/libcurl.so.4
> >
> > No symbol table info available.
> >
> > #2  0x05b40000 in ?? ()
> >
> > No symbol table info available.
> >
> > Backtrace stopped: previous frame identical to this frame (corrupt
> stack?)
> >
> >
> > On Wed, Apr 29, 2020 at 11:21 PM Jonathan Wakely <jwakely.gcc@gmail.com>
> wrote:
> >>
> >> On Wed, 29 Apr 2020 at 18:23, Kunal Chauhan via Gcc-help
> >> <gcc-help@gcc.gnu.org> wrote:
> >> >
> >> > Hi team,
> >> >
> >> > How can I debug my binary.
> >>
> >> Compile with the -g flag and use a debugger.
> >>
> >> Search the web for "using gdb".
> >
> >
> >
> > --
> > Thanks with Regards!
> >
> > Kunal Chauhan
> > Mob:09813614826
> > Mob:08860397903
> > E-mail:atkunalchauhan@gmail.com
> >
>


-- 
*Thanks with Regards!*

*Kunal Chauhan*
*Mob:09813614826*
*Mob:08860397903*

*E-mail:atkunalchauhan@gmail.com <E-mail%3Aatkunalchauhan@gmail.com>*

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-05-05 13:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-29 16:16 Help: debug a binary Kunal Chauhan
2020-04-29 17:51 ` Jonathan Wakely
2020-05-05 11:22   ` Kunal Chauhan
2020-05-05 12:53     ` Jonathan Wakely
2020-05-05 13:07       ` Kunal Chauhan

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).