Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3DS] Occasional crash on ROM load #5

Open
justinweiss opened this issue Oct 9, 2019 · 1 comment
Open

[3DS] Occasional crash on ROM load #5

justinweiss opened this issue Oct 9, 2019 · 1 comment

Comments

@justinweiss
Copy link

justinweiss commented Oct 9, 2019

When loading a ROM on the 3DS, the core will usually crash with an ARM11 exception. It looks like this is related to loading NstDatabase: it fails with 354fa2f, and earlier commits will fail in the same way if NstDatabase.xml is in the system directory.

Here's the dump:

Processor: ARM11 (core 0)
Exception type: prefetch abort (kernel panic)
Fault status: Debug event
Current process: 3dsx_app (0004001000021100)

Register dump:

r0             00000000            r1             00000000
r2             e6a83000            r3             00000000
r4             00000000            r5             ff539d88
r6             00000000            r7             00000001
r8             e6a81000            r9             08800000
r10            00000100            r11            fff2f2b4
r12            ee147460            sp             ff539d18
lr             fff1c76c            pc             fff1c7c0

cpsr           60000113            dfsr           000008ff
ifsr           00000002            far            7affffee
fpexc          40000700            fpinst         eefd7bc7
fpinst2        eefd7bc7

Code dump:

fff1c794:       e12fff1e        bx      lr
fff1c798:       e3510000        cmp     r1, #0, 0
fff1c79c:       0a000005        beq     0xfff1c7b8
fff1c7a0:       e1902f9f        ldrex   r2, [r0]
fff1c7a4:       e5812000        str     r2, [r1]
fff1c7a8:       e180cf91        strex   r12, r1, [r0]
fff1c7ac:       e35c0000        cmp     r12, #0, 0
fff1c7b0:       1afffffa        bne     0xfff1c7a0
fff1c7b4:       e12fff1e        bx      lr
fff1c7b8:       e320f000        nop     {0}
fff1c7bc:       e1a00000        nop                     ; (mov r0, r0)
fff1c7c0:       e12fff7e        bkpt    0xfffe


Stack dump:

ff539d18:  00 00 00 00 1c a5 f1 ff  00 00 00 00 00 80 81 08   |................|
ff539d28:  5c bb f7 ff 51 00 00 00  00 74 14 ee 38 4d f2 ff   |\...Q....t..8M..|
ff539d38:  00 10 a8 26 00 10 00 00  00 00 10 00 87 00 00 00   |...&............|
ff539d48:  24 e2 13 ee 64 74 14 ee  c0 9d 53 ff 5c bb f7 ff   |$...dt....S.\...|
ff539d58:  00 50 57 08 f4 02 00 00  88 9d 53 ff 5c bb f7 ff   |.PW.......S.\...|
ff539d68:  f4 02 00 00 00 50 57 08  00 00 00 00 00 00 00 00   |.....PW.........|
ff539d78:  00 90 86 08 30 00 00 00  7c 9e 53 ff 44 00 f2 ff   |....0...|.S.D...|
ff539d88:  b0 01 00 00 e0 8f f9 ff  1c ea f9 ff 5c bb f7 ff   |............\...|
ff539d98:  5c bb f7 ff f5 1b e0 e0  00 01 00 00 00 00 00 00   |\...............|
ff539da8:  00 00 00 00 00 90 86 08  30 00 00 00 24 d0 f1 ff   |........0...$...|
ff539db8:  1b 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
ff539dc8:  00 80 86 08 00 80 39 07  5c bb f7 ff 2c 9e 53 ff   |......9.\...,.S.|
ff539dd8:  00 50 57 08 5c bb f7 ff  00 50 57 08 f4 02 00 00   |.PW.\....PW.....|
ff539de8:  00 00 00 00 00 90 86 08  00 50 57 08 f4 02 00 00   |.........PW.....|
ff539df8:  00 00 00 00 00 00 00 00  01 01 00 00 05 bb 00 00   |................|
ff539e08:  7c 9e 53 ff c0 0d f1 ff  00 00 00 00 00 00 00 00   ||.S.............|
ff539e18:  00 00 00 00 00 01 00 00  00 00 00 00 1b 00 00 00   |................|
ff539e28:  00 00 00 00 00 00 00 08  00 90 86 00 1b 00 00 00   |................|
ff539e38:  05 bb 00 00 5c bb f7 ff  7c 9e 53 ff 00 50 57 08   |....\...|.S..PW.|
ff539e48:  00 00 00 00 00 50 57 08  00 40 2f 00 00 00 00 00   |.....PW..@/.....|
ff539e58:  01 01 00 00 01 00 00 00  40 bb f7 ff 5c bb f7 ff   |........@...\...|
ff539e68:  00 90 86 08 bc 85 f0 ff  00 40 2f 00 01 01 00 00   |.........@/.....|
ff539e78:  03 00 00 00 00 00 00 00  00 90 ff ff e8 9e 53 ff   |..............S.|
ff539e88:  00 50 57 08 00 00 00 00  00 40 2f 00 03 00 00 00   |.PW......@/.....|
ff539e98:  94 82 f0 ff 00 a1 5e 00  ec a6 5e 00 f8 06 00 40   |......^...^....@|
ff539ea8:  01 00 00 00 01 00 00 00  00 00 00 00 c8 3b 00 40   |.............;.@|
ff539eb8:  01 00 00 00 03 00 00 00  00 00 00 00 00 40 2f 00   |.............@/.|
ff539ec8:  03 00 00 00 03 00 00 00  48 41 2f 00 00 a1 5e 00   |........HA/...^.|
ff539ed8:  ec a6 5e 00 0c 07 00 40  01 00 00 00 03 00 00 00   |..^....@........|
ff539ee8:  00 00 00 00 fc 00 00 40  01 00 00 00 00 50 57 08   |[email protected].|
ff539ef8:  00 00 00 00 00 40 2f 00  03 00 00 00 48 41 2f 00   |.....@/.....HA/.|
ff539f08:  00 a1 5e 00 ec a6 5e 00  80 34 2f 00 00 00 00 00   |..^...^..4/.....|
ff539f18:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
ff539f28:  00 ed ff 0f 44 0f 10 00  48 24 3f 00 10 00 07 a0   |....D...H$?.....|
ff539f38:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
ff539f48:  00 01 00 01 00 00 00 00  c8 10 fd ff 13 01 00 60   |...............`|
ff539f58:  00 00 00 00 20 9d 53 ff  00 78 14 ee 00 00 70 08   |.... .S..x....p.|
ff539f68:  00 01 00 00 b4 f2 f2 ff  f8 9c 53 ff 70 dd f1 ff   |..........S.p...|
ff539f78:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
ff539f88:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
ff539f98:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
ff539fa8:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
ff539fb8:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
ff539fc8:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
ff539fd8:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
ff539fe8:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
ff539ff8:  00 07 00 40 00 00 c0 03                            |...@....|

I've attached the raw file, too.
crash_dump_00000014.dmp.zip

@rdanbrook
Copy link
Contributor

So it seems that the 3DS build can't handle opening the XML database regardless of whether it's compiled directly in, or loaded externally. Many games will fail to operate correctly without the XML database, so simply choosing not to load it is not exactly a great option.

I'd also like to know if any other less powerful platforms have this problem.

keithbowes added a commit to keithbowes/nestopia that referenced this issue Mar 18, 2021
With rdanbrook's blessing
Fixes libretro#5
Fixes libretro#19
Fixes libretro#25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants