Closed mrsonicblue closed 3 years ago
looks like serious problem... exception has no mention of any exFAT source files.. Not sure if i will be able to fix it.
try this build: kernel_mmap_exfat.zip since i did other changes, existing kernel modules won't work, so you need unpack modules to your linux.img according path in modules.tar.gz
try this build: kernel_mmap_exfat.zip since i did other changes, existing kernel modules won't work, so you need unpack modules to your linux.img according path in modules.tar.gz
I don't know what you did, but it seems to have completely fixed the problem!
Thank you for looking into this. Let me know if you need any additional testing.
Great! Test this version as well. Modules are same as above, just replace zImage_dtb: kernel_mmap_exfat2.zip I did cleanup from all those version control #if #else #endif because it's very hard to support. Some files have it in almost every other line.
Great! Test this version as well. Modules are same as above, just replace zImage_dtb: kernel_mmap_exfat2.zip I did cleanup from all those version control #if #else #endif because it's very hard to support. Some files have it in almost every other line.
Gave it a try. Still works! Agreed: code written for a bunch of platforms can be a nightmare to read.
Confirmed that this is fixed on the latest release
A segmentation fault occurs when writing to a file in /media/fat using mmap. This is in code that worked before the recent kernel upgrade and which still works elsewhere on the filesystem. Since exFAT was ported in, I'm hoping you could review the issue.
Below is a sample application which forces the segmentation fault. The specific line it crashes on is
memset
.Works:
./sample /test.txt
Works:./sample /tmp/test.txt
Crashes:./sample /media/fat/test.txt