Beta5 was my first install choice after buying the camera, I only tested beta4 after all the issues were evident.
Those files are not from a crash, but regular picture taking. I can easily take several shots by refraining from presing full length. RAW corruption happens no matter what resolution I choose, from 4000x3000 to the smallest ones. RAW file size is always 18MB (whatever full size is). The corrupted "pixels" come out both on CRWs and DNGs, that means is not an issue writing pixels but actually getting wrong data buffer to begin with.
Note that you might need to patch your tools to be able to access CRW files due to nonstandard sensor size (4176x3060 at 12 bit depth).
Yes, I presumed it was something I was doing first, hence I installed beta5 and beta4 several times to make sure. I also played with various settings and nothing changed. I was formatting in between installs of course, no previous files were left in between installs.
It is not random data from previous sector contents on the card, since the card was just low level formatted, happens on all RAW files, and the files look similar on a hex editor but are not exactly the same.
Full automatic and manual ISO selection did change nothing.
I tested chdk using both a class 2 and a class 6 card. I have been using chdk on my ixus 85 IS with both cards with no problems whatsoever and I do not think it is a problem with the cards, in fact jpgs come out fine. Class 2 card suffers on 1080p video due to speed but that's about it. Note that the 85IS creates 10 megapixel raws just fine on that very same card.
Reyalp has voiced what I have in mind, that chdk is accessing wrong pixel buffer. I hope posting my firmware dump sheds some light on it, in case there are some minor differences. A naive binary file comparison shows differences to the dump posted on first post of this thread, but that is no way to make a proper code dump comparison for so many obvious reasons. Code dump address remains the same as that firmware, btw.
I know very little about ARM assembly (curious perusal of iOS code and thats about it) and do not know how to compile chdk myself (sx260 doesn't appear on my chdk-shell-343 panel) but with some pointers and access to an up to date IDA database I might be able to help some.
EDIT: I have uploaded a ZIP file with several pics of different sizes, from 4kx3k to 640x480.
http://dl.dropbox.com/u/81185573/more_pics_different_sizes.zip (40MB file might take a while to upload)