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

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

Open
Wohlstand opened this issue Dec 5, 2022 · 2 comments
Open

Comments

@Wohlstand
Copy link

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.

@fincs
Copy link
Member

fincs commented Dec 6, 2022

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.

@Wohlstand
Copy link
Author

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

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

2 participants