Skip to content

Fix SIGBUS on ARM 32bit when starting level 3#708

Open
emileb wants to merge 1 commit intofgsfdsfgs:portfrom
emileb:fix_float_missaligment_on_arm_32bit
Open

Fix SIGBUS on ARM 32bit when starting level 3#708
emileb wants to merge 1 commit intofgsfdsfgs:portfrom
emileb:fix_float_missaligment_on_arm_32bit

Conversation

@emileb
Copy link
Copy Markdown

@emileb emileb commented Mar 17, 2026

Fix float misalignment when on ARM7, this was causing SIGBUS sig when starting level 3. Could be other instances of this but it let me start level 3.

@emileb
Copy link
Copy Markdown
Author

emileb commented Mar 17, 2026

Maybe a better fix than this but works-for-me

@fgsfdsfgs
Copy link
Copy Markdown
Owner

fgsfdsfgs commented Mar 17, 2026

You'd need to at least update romdataFileGetEstimatedSize to account for the potential extra 3 bytes, or else it'll overrun the malloc'd buffer for converted data. Or increase the size in the preprocessPadsFile directly.

@emileb
Copy link
Copy Markdown
Author

emileb commented Mar 17, 2026

Still seemed to fit in to the estimated size when I tried level 3, but didn't try other levels, will test loading all levels

@Rinnegatamante
Copy link
Copy Markdown

For Vita port to work properly, more 32 bit ARM changes were necessary. Reference: Rinnegatamante@25da3be

@emileb
Copy link
Copy Markdown
Author

emileb commented Mar 17, 2026

For Vita port to work properly, more 32 bit ARM changes were necessary. Reference: Rinnegatamante@25da3be

Ha ah amazing, missed this work, will apply the same fixes. Thanks for the reply

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 this pull request may close these issues.

3 participants