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
Comments
Yeah, happens for me to. Did this happen after you updated devkitARM? |
..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. |
This crash also happens on Windows 7 x64, just FYI. |
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. |
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. |
This is a ctrulib example elf: https://mega.nz/#!DgInAQYA!zxCAQzE3BdhY2NTo14eCbHUvIpuBzobBmJK3CEn7WC8 |
Try using the most recent commit. |
@jakcron, that seems to have fixed it, thank you for the quick update. |
You're welcome. |
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.
The text was updated successfully, but these errors were encountered: