public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/31494] New: gcore should generate sparse cores
@ 2024-03-15 15:34 pedro at palves dot net
  2024-03-15 15:34 ` [Bug gdb/31494] " pedro at palves dot net
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: pedro at palves dot net @ 2024-03-15 15:34 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31494

            Bug ID: 31494
           Summary: gcore should generate sparse cores
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: pedro at palves dot net
  Target Milestone: ---

As can be seen with the gdb.base/bigcore.exp program:

 $ gdb -q --batch ./testsuite/outputs/gdb.base/bigcore/bigcore -ex "run" -ex
"gcore /tmp/core.gdb"
 (...)
 Dump core ....

 Program received signal SIGSEGV, Segmentation fault.
 main () at gdb.base/bigcore.c:270
 270       *(volatile char*)0 = 0;
 warning: Memory read failed for corefile section, 4096 bytes at
0xffffffffff600000.
 Saved corefile /tmp/core.gdb

 $ du --hu /tmp/core.gdb
 16G     /tmp/core.gdb
 $ du --hu --apparent-size /tmp/core.gdb
 16G     /tmp/core.gdb

... GDB isn't generating sparse core files.  It would good if it did.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-03-22 15:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-15 15:34 [Bug gdb/31494] New: gcore should generate sparse cores pedro at palves dot net
2024-03-15 15:34 ` [Bug gdb/31494] " pedro at palves dot net
2024-03-15 15:35 ` [Bug corefiles/31494] " pedro at palves dot net
2024-03-15 18:32 ` pedro at palves dot net
2024-03-22 12:31 ` cvs-commit at gcc dot gnu.org
2024-03-22 12:34 ` pedro at palves dot net
2024-03-22 15:33 ` tromey at sourceware dot org

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).