Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 571801 Details for
Bug 805645
Kernell freeze under rapid allocation of memory
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
C program that will allocate and touch memory.
MemoryCrashProg.c (text/x-csrc), 586 bytes, created by
Bob Fries
on 2012-03-21 18:01:26 UTC
(
hide
)
Description:
C program that will allocate and touch memory.
Filename:
MIME Type:
Creator:
Bob Fries
Created:
2012-03-21 18:01:26 UTC
Size:
586 bytes
patch
obsolete
>// This program started up twice with a parameter just short of the number >// of gigs of ram will cause crashes on several machines. >#include <stdint.h> >#include <stdlib.h> >#include <stdio.h> >main(int argc,char **argv) { > uint64_t GigInt=(1024/sizeof(int))*1024*1024; > int *Buf; > uint64_t Idx; > int NrGig; > if (argc!=2) { > fprintf(stderr,"Usage: <NumberGigs>\n"); > exit(1); > } > NrGig=atoi(argv[1]); > Buf=malloc(NrGig*GigInt*sizeof(int)); > if (Buf==NULL) { > fprintf(stderr,"Cannot allocate Buf\n"); > exit(1); > } > for (Idx=0;Idx<NrGig*GigInt;Idx++) Buf[Idx]=Idx; >}
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 805645
: 571801