Re: Kernel Panic when writing to disk
On Jun 18, 2004, at 10:46 AM, Matthieu Kopp wrote: Hi, I am posting this question to both groups as it involves both drivers and kernel knowledge. I am working on a piece of COCOA code that writes data to disk at regular intervals. The data is written using a NSData object using the writeToFile:atomically method.The size of the file produced during the write operation varies between 100Kb and 5Mb and I typically produce 5 files/minute. Very often, I am getting a kernel panic during the write operation. It can happen after just 2 minutes of operation or at a later stage, say after an hour. It is much easier to get the panic when the writing is performed by a thread that is not the main thread. (I typically do the writing using a ThreadWorker). My test system is a Powerbook G4 (550Mhz) with 1.9Gb of free disk space. I *cannot* reproduce this problem on my G5 2x2Ghz. A sample panic log is shown below. As a side note regardless of what you do in your application you should not be able to trigger a kernel panic, especially if using standard IO services like you are, no matter how hard you try. File a bug report with the panic information, etc. ... <http://developer.apple.com/bugreporter/index.html> -Shawn _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Shawn Erickson