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

Makerom crashes on Debian Linux x64 due to "malloc(): Memory Corruption" error #14

Closed
thedax opened this issue Dec 16, 2015 · 9 comments

Comments

@thedax
Copy link

thedax commented Dec 16, 2015

I built the latest commit (94c4ba7) on Debian 8.2 (uname Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux) with GCC 4.9.2 (Debian 4.9.2-10) and when I try to build any homebrew that can build a CIA or 3DS file, it just crashes. I ran it through valgrind (I'm not an expert, this is the correct tool for this problem, right?) and it shows "Invalid write of size 8" at CreateCodeSegmentFromElf (code.c:206).

Any suggestions on what I can do? If needed, I can post more output from Valgrind or gdb.

@Cruel
Copy link

Cruel commented Dec 16, 2015

Yeah, happens for me to. Did this happen after you updated devkitARM?

@thedax
Copy link
Author

thedax commented Dec 16, 2015

..Actually, yes. When I last used makerom some months ago, I still had DKA r44, but I upgraded just today to r45 and the latest commit of ctrulib (devkitPro/libctru@7defc90 as of this message), and the problems started today.

@thedax
Copy link
Author

thedax commented Dec 16, 2015

This crash also happens on Windows 7 x64, just FYI.

@Cruel
Copy link

Cruel commented Dec 16, 2015

Considering the crash occurs using previously working makerom builds, I'm thinking there are some devkitARM changes that need to be accommodated. I'm not familiar enough with the ELF parsing to diagnose the actual problem.

@jakcron
Copy link
Collaborator

jakcron commented Dec 17, 2015

Provide examples of ELF files created with the new devkitARM/ctrulib tool-chain, so I can look at them. Currently my 3ds development environment is broken, so I cannot create these ELF files myself.

@Cruel
Copy link

Cruel commented Dec 17, 2015

This is a ctrulib example elf: https://mega.nz/#!DgInAQYA!zxCAQzE3BdhY2NTo14eCbHUvIpuBzobBmJK3CEn7WC8

@jakcron
Copy link
Collaborator

jakcron commented Dec 17, 2015

Try using the most recent commit.

@thedax
Copy link
Author

thedax commented Dec 17, 2015

@jakcron, that seems to have fixed it, thank you for the quick update.

@thedax thedax closed this as completed Dec 17, 2015
@jakcron
Copy link
Collaborator

jakcron commented Dec 17, 2015

You're welcome.

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

No branches or pull requests

3 participants