3dstools icon indicating copy to clipboard operation
3dstools copied to clipboard

Add an ability to debug the "Unaligned relocation" error reason

Open Wohlstand opened this issue 3 years ago • 2 comments

Hello! Recently I attempted to test a certain pile of libraries, HOWEVER, I got the "Unaligned relocation" error with totally no explanation WHERE it happens, WHICH part causes this error, etc. That's a pain! So, in addition to #8, there is really a need to add an ability to debug the reason for the "Unaligned relocation" error, otherwise, it's absolutely confusing when an error happens, and there is totally no explanation for why it happens.

Wohlstand avatar Dec 05 '22 00:12 Wohlstand

Which "certain pile of libraries"? It would be nice to have a test case.

Also, it is a well known issue that sometimes invalid relocations can be generated - unfortunately this issue isn't fixable, unless support for the old hax 2.x environment is dropped.

fincs avatar Dec 06 '22 11:12 fincs

Which "certain pile of libraries"?

These:

  • https://github.com/WohlSoft/AudioCodecs (except SDL2 (I built a separate version, this disabled) and ModPlug (I disabled it because of suspecting it was one defective library, but it didn't help) )
  • https://github.com/Wohlstand/SDL/tree/mac-tiger (it's almost equal to the recent SDL2, but also has my own tweaks for Mac OS X Tiger, recently they added 3DS support, and I wanted to make a simple demo to verify its work, but I can't build the 3dsx using my pile of audio codecs and stuff)
  • https://github.com/WohlSoft/SDL-Mixer-X is my fork of SDL Mixer with extended support of certain features like an ability to run concurrent music streams (including cross-fade support), better MIDI support, etc.
  • My unfinished demo (I wanted to make it play some files, but I did only initialisation and deinitialisation of SDL2 and MixerX only) mixer-x.tar.gz

Wohlstand avatar Dec 06 '22 13:12 Wohlstand