From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by sourceware.org (Postfix) with ESMTPS id 73173396D828 for ; Thu, 14 May 2020 14:15:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 73173396D828 Received: by mail-qk1-x729.google.com with SMTP id z80so3131334qka.0 for ; Thu, 14 May 2020 07:15:57 -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=bu32z1VZr7ukLbdxegC70V6DULQGWW6HpTHJI/OMxRs=; b=PCHe8wQUmJ60MYgtcL3r6WGz2CqD4ZBGyHi4Zj4KXm5rIlmTr7lGJ80sAX1C6fRlEf GfNuDivOmMJt/TuApWAnz/rYpMIEptPi4kAJhbxxHrVqluWCrHVcpKBwZ/o2Mp+1gx1t XbIUgwq7Q++9qTIyXYRLxSj0BrOPjtArWlPPzqcZKUDt5RmcLPSdQ4/Y5cCY5hxNtWf/ AZ2tFsVeybkFE4aZiIYyRVSlEAa/r2Jhahnu8qNI+rb1xlLdWH+3pCPTE7SIbhSvv22y Moen4lzQpgdb2yRzngABp4d6N4RXOPQEDdZ/SwmRA0YHtM4Vc9nmfI4UwCwKt40R/hgV RgIw== X-Gm-Message-State: AOAM530ziueFkFqyOu8tl49KCzETrjeMe9l8jftowWsYddHMk28FZuUA AfQdwU2LkWGfc217O196Si05hVeEOVDhOwRpYbfsb/IGdtWCHw== X-Google-Smtp-Source: ABdhPJxKLTLeHm9xrQjHsA/7k/p/WPc/5NkEKHT+2bUU2PkZfE8u9UuuzW+U5w8d3ITysYdHu29B4hRdVyGia9DAgB0= X-Received: by 2002:a37:4cd:: with SMTP id 196mr4966903qke.455.1589465756851; Thu, 14 May 2020 07:15:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kunal Chauhan Date: Thu, 14 May 2020 19:45:42 +0530 Message-ID: Subject: Re: [Help/Hint]: gdb output analysis To: Philippe Waroquiers Cc: gdb@sourceware.org X-Spam-Status: No, score=-1.7 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: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 May 2020 14:16:07 -0000 Hi I have only binary and core file at running the gdb only will bt full is not working it showing following >>>>> : previous frame is identical , >>also when i tried : return it shows , it will need the process, should I need the process to run , but scenerio of crash I can not produce. Steps that I followed as below: > gdb process core file output: 0xb66e8ee4 in strlen () from /lib/libc.so.6 > #1 0xb6da3854 in ?? () from /opt/qcom/lib/libcurl.so.4 > #2 ---Type to continue, or q to quit-- >bt full Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb On Thu, May 14, 2020 at 7:18 PM Philippe Waroquiers < philippe.waroquiers@skynet.be> wrote: > If you get a SEGV in strlen, it is typically because you > call it with a bad pointer (null pointer, not addressable memory, ...) > or with a pointer to a non null terminated string and strlen then > goes too far and reaches an not addressable page. > > You should 'Type ' to continue and examine the callstack > and the variables/args in the call stack. > As strlen is called by libcurl, you should look at how your application > calls libcurl. > > The gdb command > bt full > will show you the full stack trace with args and local variables. > > Good luck > > Philippe > > On Thu, 2020-05-14 at 19:06 +0530, Kunal Chauhan via Gdb wrote: > > Hi Team, > > > > I got some output at gdb with core dump file > > > > *I have not a clue that how the address shown by gdb can help me to go > to > > exact point of code violation.* > > *please suggest some clue !* > > > > *Logs by gdb:* > > > > Core was generated by `/opt/proj/bin/ty 0 0'. > > Program terminated with signal SIGSEGV, Segmentation fault. > > #0 0xb66e8ee4 in strlen () from /lib/libc.so.6 > > [Current thread is 1 (LWP 2084)] > > (gdb) bt > > #0 0xb66e8ee4 in strlen () from /lib/libc.so.6 > > #1 0xb6da3854 in ?? () from /opt/qcom/lib/libcurl.so.4 > > #2 ---Type to continue, or q to quit--- > > > > thanks > > kunal > > -- *Thanks with Regards!* *Kunal Chauhan* *Mob:09813614826* *Mob:08860397903* *E-mail:atkunalchauhan@gmail.com *