Hanging at loading at android versions older than 3.0
Original Reporter info from Mantis: benjamin@0ok.de @bero1985
-
Reporter name: Benjamin Rosseaux
Original Reporter info from Mantis: benjamin@0ok.de @bero1985
- Reporter name: Benjamin Rosseaux
Description:
It hangs on a android version older than android version (honeycomb) 3.0 while the Java System.LoadLibrary call and even before the JNI_OnLoad native function call.
Steps to reproduce:
Compile any FPC android stuff and try that to run on a android version older than android version (honeycomb) 3.0. My android 2.3.7 test device is a Google Nexus One.
Additional information:
Here is the strace output while System.LoadLibrary("main") before it hangs somewhere in FPC's RTL inside the Java System.LoadLibrary call:
rt_sigaction(SIGFPE, {0xb0005bfd, [], SA_RESTORER|SA_RESTART, 0x8042f250}, NULL,
8) = 0
rt_sigaction(SIGSEGV, {0xb0005bfd, [], SA_RESTORER|SA_RESTART, 0x8042f250}, NULL
, 8) = 0
rt_sigaction(SIGBUS, {0xb0005bfd, [], SA_RESTORER|SA_RESTART, 0x8042f250}, NULL,
8) = 0
rt_sigaction(SIGILL, {0xb0005bfd, [], SA_RESTORER|SA_RESTART, 0x8042f250}, NULL,
8) = 0
open("/etc/timezone", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/etc/localtime", 0xbe91b140) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/zoneinfo/localtime", 0xbe91b140) = -1 ENOENT (No such file or d
irectory)
open("/usr/share/zoneinfo/localtime", O_RDONLY) = -1 ENOENT (No such file or dir
ectory)
gettimeofday({1379233409, 598861}, {4294967176, 0}) = 0
mmap2(NULL, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4
006c000
mmap2(NULL, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4
0275000
mmap2(NULL, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4
36bd000
mmap2(NULL, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4
3ced000
mmap2(NULL, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4
5af4000
mmap2(NULL, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4
5e24000
recv(-1342094492, (<- here it freezes)
Mantis conversion info:
- Mantis ID: 25024
- Build: 25439
- Version: 2.7.1