From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) by sourceware.org (Postfix) with ESMTPS id 2E876388F057 for ; Tue, 5 May 2020 13:07:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2E876388F057 Received: by mail-qt1-x82c.google.com with SMTP id w29so1823446qtv.3 for ; Tue, 05 May 2020 06:07:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sJvvMpPUKFwIWGb7uGmiux2m9ERMhto8zLsKp1o6Ghs=; b=KGs3bGX79dSwGr9gMA/NfMz9N/7kiFhYcegn1etKxvlpUb+AeNAsRwd5aRX2tula/M ewpmiFvtBz6LvA8zIjYhefX3AbtpZu9Cjsc4vWql89PmdhBbnJza7gtyFvcGFwRX+EUW qi80liKQi/M5enW590nSf+BV/IaNfRXsmlntXhy7IY5E0OKWuE2zkPMUDtckgPuYxwZe r1AiZYJipmSHoPENiQ5M0+IX8jf30fx3/meDcT6Y8NRljZk4K0tWsk151fMhfCmJ+8zf D7bx7IsXKRP7WF9TNIax9567gtFeEMH6HTf2JjBkOypXMAAJQm/uRY4xFRG8arpNLJ7u tebw== X-Gm-Message-State: AGi0PuarSjGvTi6gN4xOBWLek8yDjNZVkNxxdYMjHW24sq6X00k/wiYY m+W3m4EGjk0zMx85WsXYOsk7cQLBPgAo2zwJog8= X-Google-Smtp-Source: APiQypIarJvCpXSbGaTxU8YKRt4zG3DKFnxYSYXT6UTLihQ0WkshE0jb+Io1Za1D72w4YpetV4QOLI6S2HKP1zQUzx8= X-Received: by 2002:aed:2f44:: with SMTP id l62mr2512745qtd.390.1588684056416; Tue, 05 May 2020 06:07:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kunal Chauhan Date: Tue, 5 May 2020 18:37:25 +0530 Message-ID: Subject: Re: Help: debug a binary To: Jonathan Wakely Cc: gcc-help X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, FREEMAIL_REPLY, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 May 2020 13:07:44 -0000 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 wrote: > On Tue, 5 May 2020 at 12:23, Kunal Chauhan > 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 > wrote: > >> > >> On Wed, 29 Apr 2020 at 18:23, Kunal Chauhan via Gcc-help > >> 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 *