public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "jbyers.sf at gmail dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug corefiles/16092] New: The 'gdb' 'gcore' command ignores coredump_filter, and 'madvise(,,MADV_DONTDUMP)'. Date: Sat, 26 Oct 2013 12:28:00 -0000 [thread overview] Message-ID: <bug-16092-4717@http.sourceware.org/bugzilla/> (raw) http://sourceware.org/bugzilla/show_bug.cgi?id=16092 Bug ID: 16092 Summary: The 'gdb' 'gcore' command ignores coredump_filter, and 'madvise(,,MADV_DONTDUMP)'. Product: gdb Version: 7.6 Status: NEW Severity: normal Priority: P2 Component: corefiles Assignee: unassigned at sourceware dot org Reporter: jbyers.sf at gmail dot com The 'gdb' 'gcore' command ignores coredump_filter, and 'madvise(,,MADV_DONTDUMP)'. On Linux x86_64, using 'gdb' version: GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1) and also the latest version of 'gdb' '7.6.1' built from source, the 'gcore' command used to take a "live" core of a process ignores the Linux '/proc/PID/coredump_filter' bit settings, and also 'mmap'ed memory madvise(,,MADV_DONTDUMP)' settings and always dumps all of the address space regardless of attempts to limit it. Note that crash cores do not do this, and obey the filter and madvise settings. This is a real problem when the memory allocations are large, and especially when there are large files mapped, but sparsely accessed. Using 'gdb' and 'gcore' caused the complete file to be read in and included it is also included in the core. There may be cases where overriding the coredump_filter and 'madvise(,,MADV_DONTDUMP)' are useful, but there should also be a way to obey these settings and not have monstrously huge 'gcore' generated core files. -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2013-10-26 12:28 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-10-26 12:28 jbyers.sf at gmail dot com [this message] 2013-10-26 12:29 ` [Bug corefiles/16092] " jbyers.sf at gmail dot com 2013-11-13 6:23 ` jan.kratochvil at redhat dot com 2014-05-23 9:32 ` jan.kratochvil at redhat dot com 2015-03-05 21:44 ` sergiodj at redhat dot com 2015-03-31 23:40 ` cvs-commit at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-16092-4717@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).