envp is not set correctly under armv5-android
Original Reporter info from Mantis: de_jean_7777 @de_jean_paca
-
Reporter name: Dejan Boras
Original Reporter info from Mantis: de_jean_7777 @de_jean_paca
- Reporter name: Dejan Boras
Description:
The envp variable in system unit is not set correctly. It is not nil but points to an invalid region of memory (for example an address BECD1068). Attempting to access that part of memory will cause a SIGSEG (SEGV_MAPPER) violation. This for effect also causes the initialization of sysutils unit to cause a violation.
This happens in a shared library under JNI in Android. However, for a regular linux program (which was loaded onto the Android emulator using adb shell) this does not happen, and the address is significantly different (e.g. $0000ECEC).
Steps to reproduce:
Load a library which uses sysutils or tries to access the envp variable in Android via JNI.
Mantis conversion info:
- Mantis ID: 18833
- Build: 17032
- Version: 2.5.1
- Fixed in version: 3.0.0
- Monitored by: » torstenchr (Torsten Bonde Christiansen)
- Target version: 2.7.1