FreeBSD Bugzilla – Attachment 229685 Details for
Bug 260006
Compressed user core files with large segments are truncated
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Test program
test.cpp (text/plain), 553 bytes, created by
chorneck
on 2021-11-23 21:29:47 UTC
(
hide
)
Description:
Test program
Filename:
MIME Type:
Creator:
chorneck
Created:
2021-11-23 21:29:47 UTC
Size:
553 bytes
patch
obsolete
>#include <stdlib.h> >#include <stdint.h> > >int main() >{ > // Allocate a buffer > 0xFFFFFFFF > size_t size = 4ULL*1024*1024*1024; > void *pbuffer = malloc(size); > > > // Fault in the buffers pages > uintptr_t page = (uintptr_t)pbuffer; > for (; > page < (((uintptr_t)pbuffer) + size); > page += 4096) > { > *((uintptr_t*)page) = 0; > } > > // Segfault to drop a core > int *pSeg = NULL; > (*pSeg) = 0; > return 0; >} > >~
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 260006
: 229685