Arm11 Exception when running homebrew that uses romfs files.

Post Reply
gama
Posts: 1
Joined: Fri May 02, 2025 8:16 pm

Arm11 Exception when running homebrew that uses romfs files.

Post by gama » Sat May 10, 2025 2:16 am

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?


WinterMute
Site Admin
Posts: 2052
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Arm11 Exception when running homebrew that uses romfs files.

Post by WinterMute » Sun May 18, 2025 5:53 pm

I think you probably updated while we were still rolling some releases and hadn't yet rolled a new libctru. Everything should be working now assuming you have all the latest updates. sudo dkp-pacman -Syu to make sure.

Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest