From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) by sourceware.org (Postfix) with ESMTPS id 1B563388B029 for ; Sat, 30 May 2020 02:01:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1B563388B029 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=kegel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=daniel.r.kegel@gmail.com Received: by mail-lj1-f181.google.com with SMTP id z6so1479787ljm.13 for ; Fri, 29 May 2020 19:01:54 -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=5FQfUnBQMWvGXI7gM4bL6T0ma5QejLxnRwvfJ3lpH+c=; b=VQhTADRlFw53u79bi3rTeGXOe+DEpqFXU5E7Z2wDfb2JnTOjdfWWS1cBqp5fRMvOoU eQAGd3yCupGltFQtnEZgXvv7pSkMcjM8tRkVez9AaS5b9aSfvQjAJYsbS+zkg0xtFpLi miTzKMLkVlHWoS1Kyh5aP/2SzIwAhchptFhb5w7ASPO32aen9jKMM3+hRlbaUwGYqInf mTktOcQH6OecVlZAlWu0AiijrToYL+S9CB+dONJiof5aN/sdHXEg067EmrZqc7ccWBxN i2zLxbenzHmQGO2f5UvGUUsCDWpSoQe+gXhHsWvJq3TknnMDBPRuA9pqq7Y2UyZ4LPHN pFvQ== X-Gm-Message-State: AOAM533BjMRS22G4UeMoaHo808ndFB8k8VH4gL4d7ZXqxEAimId9Vv6H m2gkZUTa9NbeOULMrcFiY/mA6j7zkOqsSeyPI7M= X-Google-Smtp-Source: ABdhPJwIsxPYVd8jO3qpdWA2klC00RHPmBUDriFwtVZRzviqVjOD06OAA52sTAjEvInITW798OMXCdHFrNkUEroYaGs= X-Received: by 2002:a2e:a0cd:: with SMTP id f13mr2407427ljm.139.1590804112697; Fri, 29 May 2020 19:01:52 -0700 (PDT) MIME-Version: 1.0 References: <61ade9a5-4252-9b6d-5aed-9451404111d4@gmx.ch> In-Reply-To: <61ade9a5-4252-9b6d-5aed-9451404111d4@gmx.ch> From: Dan Kegel Date: Fri, 29 May 2020 19:01:39 -0700 Message-ID: Subject: Re: Debugging ICE in GCC To: Manfred Schwarb Cc: gcc-help X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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: Sat, 30 May 2020 02:01:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95090 looks sorted, did you figure out your gdb question? On Fri, May 29, 2020, 16:55 Manfred Schwarb wrote: > Hi, > I tried to debug fortran.dg/pr95090.f90, which showed > > f951: internal compiler error: Segmentation fault > 0x83cfe3c ??? > ../sysdeps/i386/start.S:117 > Please submit a full bug report, > with preprocessed source if appropriate. > Please include the complete backtrace with any bug report. > See for instructions. > > > Using GDB (8.3.1), I got > #> f951="`$instdir/bin/gcc -print-prog-name=f951`" > #> gdb -ex run -ex bt --batch --args $f951 fortran.dg/pr95090.f90 > > Program received signal SIGSEGV, Segmentation fault. > 0xf7aa5162 in __strlen_sse2_bsf () from /lib/libc.so.6 > #0 0xf7aa5162 in __strlen_sse2_bsf () from /lib/libc.so.6 > #1 0x083e7c3f in get_unique_hashed_string(char*, gfc_symbol*) () > #2 0x083e85a4 in gfc_find_derived_vtab(gfc_symbol*) () > #3 0x0847fde1 in resolve_fl_derived(gfc_symbol*) () > #4 0x0847c717 in resolve_symbol(gfc_symbol*) () > #5 0x084a78d0 in do_traverse_symtree(gfc_symtree*, void > (*)(gfc_symtree*), void (*)(gfc_symbol*)) () > #6 0x08487f77 in resolve_types(gfc_namespace*) () > #7 0x0847b6e5 in gfc_resolve(gfc_namespace*) () > #8 0x0846e9f6 in gfc_parse_file() () > #9 0x084bebe7 in gfc_be_parse_file() () > #10 0x08a3b59e in compile_file() () > #11 0x083c98a5 in toplev::main(int, char**) () > #12 0x083cd9b1 in main () > > > So far so good, but there are no file locations shown, and I can't > switch frames and list code in GDB. > This although I built GCC with debug information and binaries are not > stripped. > > I built GCC with > #> ../configure --enable-checking=yes,extra i686-linux > #> make BOOT_CFLAGS="-O2 -ggdb" bootstrap2-lean > > In desperation, I even tried > #> make BOOT_CFLAGS="-O2 -fanalyzer" bootstrap2-lean > and > #> make BOOT_CFLAGS="-O2 -fsanitize=address" bootstrap2-lean > but both compilation attempts failed. > > > Are there any magic knobs to make GDB output more useful? > > Thanks, > Manfred > > >