Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: kernel panic on readBytes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kernel panic on readBytes



Timur Alperovich wrote:

struct IOPhysicalRange* range =
(IOPhysicalRange*)IOMalloc(sizeof(struct IOPhysicalRange));
range->address = inStruct->offset;
range->length = MEM_READ_CHUNK;

While it's not the cause of your panic, you should at the very least be checking to see whether IOMalloc returned a valid pointer or 0 before you dereference "range."


But given the DAR is 0x1000, it's clear you're likely dereferencing a NULL pointer at offset 0x1000; what's at 0xB3E40? What's instruct->offset?

    William Kucharski
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >kernel panic on readBytes (From: "Timur Alperovich" <email@hidden>)
 >Re: kernel panic on readBytes (From: Garth Cummings <email@hidden>)
 >Re: kernel panic on readBytes (From: "Timur Alperovich" <email@hidden>)
 >Re: kernel panic on readBytes (From: "Timur Alperovich" <email@hidden>)
 >Re: kernel panic on readBytes (From: "Timur Alperovich" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.