From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id B10E61F463 for ; Tue, 7 Jan 2020 12:50:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727944AbgAGMuy (ORCPT ); Tue, 7 Jan 2020 07:50:54 -0500 Received: from mail-wm1-f51.google.com ([209.85.128.51]:40842 "EHLO mail-wm1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726937AbgAGMuy (ORCPT ); Tue, 7 Jan 2020 07:50:54 -0500 Received: by mail-wm1-f51.google.com with SMTP id t14so19236438wmi.5 for ; Tue, 07 Jan 2020 04:50:53 -0800 (PST) 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=n+PA3/MmBiZfLrlpXammFMz5QhXgXfINzYb8XXwI3KQ=; b=ouTiT4HlRLVbqIeG3rbZPC75r9FWAWNXgRBhRfPBp/eZ5zaRLIfHrsDzmRClhU+a5F EImLarfjBqeBRq+HQzj7MywWQxCD7Nif3q68j3vnOLkUNfJ9j8WcFcurebRqkljWCHqk PsTHAR1kugimDRfIO/xXT+vaGNTZWfPiCbShyQ/FIaeMPliZiZMSxxdGSH1iYXhs4Sza /UxCOyDUTlbBhAysVHEVxduyDnW1SoyhvjEdPzpRhnDWu9h6y5+q2hQTz96sp9svKB21 TqQ/plhffBJuKTKNkGeQgeyrk2kcG8DD+DJ5KnQqB6sPvyDZPHYgkUF2axEdXSLwyNWV G2ng== X-Gm-Message-State: APjAAAVPFW0eWi8zFefsH1z2+ni6FjOrN9BZ/fTrgnI7zdZvA7iILDKT 9p86lnYnmAuz/17HkdzUNK9LZ/2mTTAVGkC3COs= X-Google-Smtp-Source: APXvYqy8vn0O2cIsr5zH3hf57qmP12bzI0Ub5cMsKej0w8Kzx2ztH3UJWl19YIwDIfVBvxybN8/aP615n2qoooBC09o= X-Received: by 2002:a7b:c246:: with SMTP id b6mr39522409wmj.75.1578401452892; Tue, 07 Jan 2020 04:50:52 -0800 (PST) MIME-Version: 1.0 References: <20200107114812.GE1073219@coredump.intra.peff.net> In-Reply-To: From: Eric Sunshine Date: Tue, 7 Jan 2020 07:50:41 -0500 Message-ID: Subject: Re: Assertion in git log graphing [regression in v2.25] To: Derrick Stolee Cc: Jeff King , Bradley Smith , Junio C Hamano , James Coglan , Git List Content-Type: text/plain; charset="UTF-8" Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Tue, Jan 7, 2020 at 7:42 AM Derrick Stolee wrote: > Here is a a patch that reproduces the test failure. It hits the > assert, so it definitely fails. What happens if someone builds the project with NDEBUG? Then the test won't fail as expected. Perhaps this patch ought to also change those asserts() to `if (...) BUG(...)` to ensure consistent behavior.