From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by sourceware.org (Postfix) with ESMTPS id 3ED493858C50 for ; Thu, 9 Feb 2023 10:56:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3ED493858C50 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x632.google.com with SMTP id sa10so5098238ejc.9 for ; Thu, 09 Feb 2023 02:56:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=B6SqoXnFWcszoeLBZzJzJFPE3f7QLtbNk2kA62ARI30=; b=Wws9WDPsuCctGi0sCTmyl3MxLKnh0b4eOTkcPgzA7kDmjwLw3OoIHgDw2lG4GNXVvS g76UHXxHBvsi3Mz7NQEvgJclHsBPg9Tr5cJ2E2krQ+QorokDEHdAj3hsX/Y+RGin6vD5 v7BdLBIYKBGgboJfV2GBVCoglSSOJtUB2IpUPacESi3jkAsGoI/d6rPEABqrKhzeWX43 NBrfccFxNycEZ8fmkwEXRbPsuj0MKTq+OMbhcmOBdQ407oXpBM0J4eEHHiExE7Npf1dg ddfBx/TTAghcOetFZQgGw8s2wJUKJuwcmGX2W1oRlWMvNQcaBB0jHZ8QZRraCQC+S3Mk VaAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=B6SqoXnFWcszoeLBZzJzJFPE3f7QLtbNk2kA62ARI30=; b=6E8BCuRN6oMVJa2rCT44lJGUaKg+abgmEzjht0grscsGaxhdDT79WfLo4D5/6a1mhF 40/o8s6jQFT27nimw94PE3m9iX23uxv1P5RlrEUYHrXR6vgI+vW5ngRfTHTzEwlr4ZPh C1n9KuS9HTeDfHYWdXcVBcjN80E8myd0BYxpP00FdbvRBTHbIPHYbCdNKsLd9KeUwg4D O3orbM6ibGjonz32c2Ni7cut8eV1kK7k9OCNzbj9fjPHLR6nuEB63RkqCpJZ0fN3EDom +R7Hqd/Uu+TpHDBoQr0Pb/fJY9ZJNMgyYNkHEEoxPfhlAdEGaPvGeBPYgxr1xJw7X2yD H6Zg== X-Gm-Message-State: AO0yUKVaQpKQwsG47nOcFyvGeWsspqqtUh65JGYwPGqUethh++ECwLAd LeCIP56W6+FEzpZgJ5qSv+HxKFPTLchwA4kMqzaWF973 X-Google-Smtp-Source: AK7set85YGi8XhWqPQQt1Vch++HZRGffzoTnYrGvQHwdKjJ08IykOyvg4bf0gLXkFHewgXkr2B2yrhEEMAOCdQCgcco= X-Received: by 2002:a17:906:14c1:b0:887:7d91:d016 with SMTP id y1-20020a17090614c100b008877d91d016mr2443279ejc.110.1675940197643; Thu, 09 Feb 2023 02:56:37 -0800 (PST) MIME-Version: 1.0 From: praveen ab Date: Thu, 9 Feb 2023 16:26:05 +0530 Message-ID: Subject: Random Crash Observed while running program compiled with latest gcc To: gcc-help@gcc.gnu.org Content-Type: multipart/alternative; boundary="000000000000253a1605f4423c65" X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000253a1605f4423c65 Content-Type: text/plain; charset="UTF-8" Hi All, We are upgrading the GCC version for our existing C/C++ project. Earlier we were using gcc 5.4 and everything was working fine.(The application works fine even with gcc 7.4) When trying to build the application using gcc 8.1 and above we are observing the random crashes mostly segmentation fault. Any suggestions on how to debug this? Right now I am trying the following: Enabling the -Wall flag and trying to fix all the warnings Using GDB to inspect memory location and variables. Please Suggest anything else that needs to be checked? -- *Thanks and Regards,* *Praveen AB* --000000000000253a1605f4423c65--