reswitched / libtransistor

Open source toolchain for Switch development
ISC License
204 stars 46 forks source link

Crash when exiting after being started from hbl #110

Closed roblabla closed 6 years ago

roblabla commented 6 years ago

When libtransistor NROs are started from hbl, they crash on exit, yielding error 2347-0026. This is an undocumented errno. Pinging @plutooo on this. Any hints as to what that error code means ?

roblabla commented 6 years ago

Apparently, test_helloworld doesn't crash. But test_display crashes.

roblabla commented 6 years ago

Apparently : Failed to unmap code memory (.data+.bss).

misson20000 commented 6 years ago

I was like 90% sure I fixed this. My guess before doing any further investigation is that some resources might take a while to release before they reset memory states.

roblabla commented 6 years ago

Appears to be fixed in latest Libtransistor. For further mitigations, see #111