From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) by sourceware.org (Postfix) with ESMTPS id AF472387086F for ; Tue, 5 May 2020 12:53:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AF472387086F Received: by mail-il1-x12f.google.com with SMTP id x2so874171ilp.13 for ; Tue, 05 May 2020 05:53:34 -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=PpD52nmQIBmCuqzCfVObr9LlreCillneUW/K0SIs/YA=; b=nNMN8XssarkCo8boxmXRw0bgYHB61qcJN6r8pTIwQPc05yCLN9Qv7gxQrBluBGrnko hE5/NJ0zY86uKH8N6bUaHpri0QvLXhosZltsvvaLGeMpZaxFaAq6KT6o5pHGOdMDvwVK Ux4Z58FoHV1qm7qhcuk9wFbQfI/v5xs4dDyYrDD74XIIrqzllTKxC4fTx4tzkBaLKCBo SD9zm5r8ebIcB8DazsfSHNf7b3JChWCyb8Ic3kXQJdcQL+DYgZmbK/iUk1Jl86XLuRAU RLsu4IxrPbE40LNJYofdwN97IzlEWCqR76t345T4iQ9RwP7HPVGJugOBHfy4ggTQeUza Qy0Q== X-Gm-Message-State: AGi0Pub2PupcRxNPRr8agMliXeLl2//EQ9rcQYhXBk/g8Fnae1TJw1Kf Tc450jQsKqHY1FwiuSN/4TGeKYit3LtYhMQcXP8= X-Google-Smtp-Source: APiQypInwgEJEWAZiORxGr+hGfmoTu9AYpqfhcwvd7wKBMRKeE2ZOHzbulPuNF8tdk1NRvu2EjH3W9HZuaSdvvyZARI= X-Received: by 2002:a92:c14f:: with SMTP id b15mr3689707ilh.134.1588683214218; Tue, 05 May 2020 05:53:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Tue, 5 May 2020 13:53:23 +0100 Message-ID: Subject: Re: Help: debug a binary To: Kunal Chauhan Cc: gcc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, FREEMAIL_REPLY, 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 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 12:53:45 -0000 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 >