Arm11 Exception when running homebrew that uses romfs files.
Hi there, I am getting an arm 11 exception whenever I try to run an app that uses romfs files.
I recently installed the devkitARM toolchain and 3ds-dev package as stated in the devkitpro guide for 3ds.
The I git cloned the examples repo and built the 3dsx files. The strange thing is that only the apps that uses romfs files crashes.
I have downloaded other apps from the Universal Updater and they also run fine.
This is the backtrace I got from gdb:
Code: Select all
(gdb) continue
Continuing.
[New Thread 45.268]
[New Thread 45.272]
Thread 1 received signal SIGSEGV, Segmentation fault.
navigateToDir (mount=0x0, ppDir=0x8007f34, ppDir@entry=0x8007f2c, pPath=0x8007f2c, pPath@entry=0x8007f24,
isDir=isDir@entry=false)
at /home/davem/projects/devkitpro/pacman-packages/libctru/src/libctru-2.4.1/libctru/source/romfs_dev.c:413
warning: 413 /home/davem/projects/devkitpro/pacman-packages/libctru/src/libctru-2.4.1/libctru/source/romfs_dev.c: No such file or directory
(gdb) backtrace
#0 navigateToDir (mount=0x0, ppDir=0x8007f34, ppDir@entry=0x8007f2c, pPath=0x8007f2c, pPath@entry=0x8007f24,
isDir=isDir@entry=false)
at /home/davem/projects/devkitpro/pacman-packages/libctru/src/libctru-2.4.1/libctru/source/romfs_dev.c:413
#1 0x001029c4 in romfs_open (r=0x11c488 <_impure_data>, fileStruct=0x800c34c, path=<optimized out>, flags=0,
mode=438)
at /home/davem/projects/devkitpro/pacman-packages/libctru/src/libctru-2.4.1/libctru/source/romfs_dev.c:544
#2 0x00119620 in _open_r ()
#3 0x0010e2f4 in _fopen_r ()
#4 0x00100a3c in printfile (path=path@entry=0x11a058 "romfs:/folder/file.txt")
at /home/stalker/3ds-dev/devkitpro/examples/romfs/source/main.c:8
#5 0x00100b40 in main () at /home/stalker/3ds-dev/devkitpro/examples/romfs/source/main.c:39
(gdb)
Could the problem be related to the sdcard or could the toolchain be corrupted somehow? I have tested four different sd cards and the problem persist.
I am using WSL2 debian on Windows 10. And testing on a New 3DS with latest luma and latest toolchain.
P.S. By the way, right after I installed the cfw I tested the romfs example and it worked fine! Started failing after a while.
Any help?