From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 83754 invoked by alias); 23 Jul 2015 14:57:41 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 83724 invoked by uid 48); 23 Jul 2015 14:57:40 -0000 From: "ciro.santilli at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug testsuite/18704] Don't run bigcore test by default on make check Date: Thu, 23 Jul 2015 14:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: testsuite X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: ciro.santilli at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q3/txt/msg00100.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=18704 --- Comment #4 from Ciro Santilli --- Ah, there is even an opt-out check on the test OSes that don't support it, I should have read it better... Ubuntu 14.04 here, kernel 3.13 here. I think I've found the culprit: cat /proc/sys/kernel/core_pattern gives: |/usr/share/apport/apport %p %s %c %P which uses apport to deal with the core. If I do: echo | sudo tee /proc/sys/kernel/core_pattern compile and run `bigcore.c`, the problem is gone, and I get a sparse core. Fedora does not use apport although it was considered: https://fedoraproject.org/wiki/Features/CrashHandling I don't know if it is technically feasible for apport to generate the sparse dump. What pointed me in this direction: https://news.ycombinator.com/item?id=7679307 I propose either of: - don't run bigcore.exp on `make check`, and remove the OS checks of the file. They are ugly anyways. Require some extra option to run it like `make check BIGCORE=true`, or `make check-bigcore` or something. - add another check: "is this linux and does core_pattern start with | ?" Ugly and brittle. How long until another system breaks this check in a different way? :-) I'll patch if you agree to those possibilities or see a better one. -- You are receiving this mail because: You are on the CC list for the bug.