Re: kernel panic on readBytes
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=adkN67JZUnn3zu4/Q9foUkF50lldYDNZWSl8oncsJDA=; b=PrDaVjexCKll9nGn8pcGC1z/Nk+g78E+qi8IelkIUmqLxb1fR7Ail/qg2yqqBwZs76ekhVUCXJPWEGxj+kBH94tafhcBjC/rSgYYKqiP8zUx2jgIJejpzRIBovdH7hculisWs/caT89lmV8R+RXPoQDwB/1KppEbz0jbut3hSXk= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LnDIGJ3MoRr8QDWwe4TzeZq6DLxN2kgqAi+GJmpX6oUJgKaa5rPNQogXSaji8rH4xaU6aNFEp7g14ORA1kFPOWhukl1bvzmaz8YKzCE5ZQ9szQqXKz7RYXrdB6DWz4fUWLKC3XOqHMATyYBpMI8F8OxI2R6Xhhwxgc5gFV+0lVk= Thanks for the prompt responses!
Please see Technical Note 2063. <http://developer.apple.com/technotes/tn2002/tn2063.html>.
Typing "kernel panic" into the search engine on developer.apple.com would turn this up too.
Ok, I figured out how to get the logs, etc, out of it. I tried searching on google and the apple developer for the error it reports: AppleDART::mapAddr not mapped for I/O -- and couldn't find anything as to what could be going on. Any hints? Is there some other way to map memory pages? Here is a code snippet of what I'm doing: IOMemoryDescriptor* d = IOMemoryDescriptor::withPhysicalAddress(inStruct->offset, 4096, kIODirectionOut); if(d == NULL){ IOLog("Failed to grab a descriptor\n"); return kIOReturnError; } if(d->prepare() != kIOReturnSuccess){ IOLog("Failed to prepare the page\n"); return kIOReturnError; } char buf[4096]; int copied; copied = d->readBytes(0, (void*) buf, 4096); // <--- Removing this line gets rid of the panic -- makes me think the error is here. d->complete(); d->release(); return kIOReturnSuccess; _______________________________________________ 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
Timur Alperovich