site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Sep 27, 2004, at 9:28, Matt Jaffa wrote: Hi, Regards, Justin -- Justin C. Walker, Curmudgeon-At-Large * Institute for General Semantics | Men are from Earth. | Women are from Earth. | Deal with it. *--------------------------------------*-------------------------------* _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... I have been core dumping my panics to a remote machine and been using gdb to figure out where in my NKE it keeps crashing, and it appears to be randomly crashing at different parts. maybe due to the fact I call _MALLOC and get space but it never allocated it. because I have a structure pointer that I allocate and store things in there, but it is crashing at this line: one->thedata = data; To me one must not be allocated so it crashes, how do I ensure that calling _MALLOC is going to give me space and not crash my NKE??? In all likelihood, it is not _MALLOC that is crashing your NKE. If you call _MALLOC and it returns with an allocation, then you have the space. Are you sure that you get the space you requested? Are you checking for errors? Are you using the correct arguments? The last code snippet you posted, as I recall, had bad arguments in the call. This email sent to site_archiver@lists.apple.com
participants (1)
-
Justin Walker