-----------------------------------------------------------------

[*] Initial strace run with jchroot on the command ./usr/bin/com.axis.AddonExample1 to identify missing areas

[*] Emulating binary name: com.axis.AddonExample1 in strace mode to identify missing areas (with jchroot)
[*] Emulator used: qemu-mipsel-static
[*] Chroot environment used: jchroot
[*] Using root directory: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract (1/2)
[*] Using CPU config: 

--- SIGILL {si_signo=SIGILL, si_code=SI_KERNEL, si_pid=0, si_uid=0} ---
qemu: uncaught target signal 4 (Illegal instruction) - core dumped

[*] Identification of missing filesytem areas.
[*] No missing areas found.

-----------------------------------------------------------------


-----------------------------------------------------------------

[*] Initial strace run with jchroot on the command ./bin/com.axis.AddonExample1 to identify missing areas

[*] Emulating binary name: com.axis.AddonExample1 in strace mode to identify missing areas (with jchroot)
[*] Emulator used: qemu-mipsel-static
[*] Chroot environment used: jchroot
[*] Using root directory: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr (2/2)
[*] Using CPU config: 24KEc

1 brk(NULL) = 0x40016280
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f7c7000
1 uname(0x3ff1d610) = 0
1 access("/etc/ld.so.preload",R_OK) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/etc/ld.so.cache",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/tls/libgio-2.0.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d3a4,512) = 512
1 prctl(46,1072813272,1072812964,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d260) = 0
1 mmap2(NULL,1990784,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f5e0000
1 mprotect(0x3f7b0000,61440,PROT_NONE) = 0
1 mmap2(0x3f7bf000,24576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x1cf) = 0x3f7bf000
1 mmap2(0x3f7c5000,4224,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f7c5000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libgobject-2.0.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d394,512) = 512
1 prctl(46,1072813224,1072812948,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d250) = 0
1 mmap2(NULL,446160,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f573000
1 mprotect(0x3f5ce000,65536,PROT_NONE) = 0
1 mmap2(0x3f5de000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x5b) = 0x3f5de000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libglib-2.0.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d384,512) = 512
1 prctl(46,1072813240,1072812932,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d240) = 0
1 mmap2(NULL,1257552,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f43f000
1 mprotect(0x3f560000,61440,PROT_NONE) = 0
1 mmap2(0x3f56f000,12288,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x120) = 0x3f56f000
1 mmap2(0x3f572000,80,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f572000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libapac.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d374,512) = 512
1 prctl(46,1072813192,1072812916,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d230) = 0
1 mmap2(NULL,78144,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f42b000
1 mprotect(0x3f42e000,61440,PROT_NONE) = 0
1 mmap2(0x3f43d000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x2) = 0x3f43d000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libc.so.6",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d364,512) = 512
1 prctl(46,1072813336,1072812900,512,1065377792,0) = 0
1 _llseek(3,0,760,0x3ff1d138,SEEK_SET) = 0
1 read(3,0x3ff1d168,32) = 32
1 fstat64(3,0x3ff1d220) = 0
1 mmap2(NULL,1593152,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f2a6000
1 mprotect(0x3f413000,61440,PROT_NONE) = 0
1 mmap2(0x3f422000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x16c) = 0x3f422000
1 mmap2(0x3f429000,8000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f429000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/../glib/tls/libgmodule-2.0.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d294,512) = 512
1 prctl(46,1072812968,1072812692,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d150) = 0
1 mmap2(NULL,78096,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f292000
1 mprotect(0x3f295000,61440,PROT_NONE) = 0
1 mmap2(0x3f2a4000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x2) = 0x3f2a4000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/../glib/tls/libz.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d284,512) = 512
1 prctl(46,1072812984,1072812676,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d140) = 0
1 mmap2(NULL,155984,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f26b000
1 mprotect(0x3f280000,65536,PROT_NONE) = 0
1 mmap2(0x3f290000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x15) = 0x3f290000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/../glib/tls/libresolv.so.2",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d274,512) = 512
1 prctl(46,1072812968,1072812660,512,1065377792,0) = 0
1 _llseek(3,0,648,0x3ff1d038,SEEK_SET) = 0
1 read(3,0x3ff1d068,32) = 32
1 fstat64(3,0x3ff1d130) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f269000
1 mmap2(NULL,149696,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f244000
1 mprotect(0x3f256000,61440,PROT_NONE) = 0
1 mmap2(0x3f265000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x11) = 0x3f265000
1 mmap2(0x3f267000,6336,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f267000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/../glib/tls/libpthread.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d264,512) = 512
1 prctl(46,1072813048,1072812644,512,1065377792,0) = 0
1 _llseek(3,0,768,0x3ff1d028,SEEK_SET) = 0
1 read(3,0x3ff1d058,32) = 32
1 fstat64(3,0x3ff1d120) = 0
1 mmap2(NULL,181248,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f217000
1 mprotect(0x3f231000,61440,PROT_NONE) = 0
1 mmap2(0x3f240000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x19) = 0x3f240000
1 mmap2(0x3f242000,5120,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f242000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/../glib/tls/libffi.so.7",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d254,512) = 512
1 prctl(46,1072812936,1072812628,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d110) = 0
1 mmap2(NULL,95072,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f1ff000
1 mprotect(0x3f206000,61440,PROT_NONE) = 0
1 mmap2(0x3f215000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x6) = 0x3f215000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libpcre.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d244,512) = 512
1 prctl(46,1072812888,1072812612,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d100) = 0
1 mmap2(NULL,545216,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f179000
1 mprotect(0x3f1ee000,61440,PROT_NONE) = 0
1 mmap2(0x3f1fd000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x74) = 0x3f1fd000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libdbus-1.so.3",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d234,512) = 512
1 prctl(46,1072812872,1072812596,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d0f0) = 0
1 mmap2(NULL,376352,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f11d000
1 mprotect(0x3f168000,61440,PROT_NONE) = 0
1 mmap2(0x3f177000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x4a) = 0x3f177000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/../glib/tls/../glib/tls/libdl.so.2",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d224,512) = 512
1 prctl(46,1072812888,1072812580,512,1065377792,0) = 0
1 _llseek(3,0,648,0x3ff1cfe0,SEEK_SET) = 0
1 read(3,0x3ff1d010,32) = 32
1 fstat64(3,0x3ff1d0e0) = 0
1 mmap2(NULL,73968,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f10a000
1 mprotect(0x3f10c000,61440,PROT_NONE) = 0
1 mmap2(0x3f11b000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x1) = 0x3f11b000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libsystemd.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d214,512) = 512
1 prctl(46,1072812872,1072812564,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d0d0) = 0
1 mmap2(NULL,814232,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f043000
1 mprotect(0x3f0f6000,61440,PROT_NONE) = 0
1 mmap2(0x3f105000,20480,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0xb2) = 0x3f105000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/src/basic/tls/librt.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d204,512) = 512
1 prctl(46,1072812888,1072812548,512,1065377792,0) = 0
1 _llseek(3,0,704,0x3ff1cfc0,SEEK_SET) = 0
1 read(3,0x3ff1cff0,32) = 32
1 fstat64(3,0x3ff1d0c0) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f041000
1 mmap2(NULL,94928,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f029000
1 mprotect(0x3f030000,61440,PROT_NONE) = 0
1 mmap2(0x3f03f000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x6) = 0x3f03f000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/src/basic/tls/libcap.so.2",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d1f4,512) = 512
1 prctl(46,1072812808,1072812532,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d0b0) = 0
1 mmap2(NULL,86384,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f013000
1 mprotect(0x3f017000,65536,PROT_NONE) = 0
1 mmap2(0x3f027000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x4) = 0x3f027000
1 close(3) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f011000
1 set_thread_area(0x3f0184a0) = 0
1 mprotect(0x3f422000,16384,PROT_READ) = 0
1 mprotect(0x3f027000,4096,PROT_READ) = 0
1 mprotect(0x3f240000,4096,PROT_READ) = 0
1 mprotect(0x3f03f000,4096,PROT_READ) = 0
1 mprotect(0x3f105000,12288,PROT_READ) = 0
1 mprotect(0x3f11b000,4096,PROT_READ) = 0
1 mprotect(0x3f177000,4096,PROT_READ) = 0
1 mprotect(0x3f1fd000,4096,PROT_READ) = 0
1 mprotect(0x3f215000,4096,PROT_READ) = 0
1 mprotect(0x3f265000,4096,PROT_READ) = 0
1 mprotect(0x3f290000,4096,PROT_READ) = 0
1 mprotect(0x3f56f000,4096,PROT_READ) = 0
1 mprotect(0x3f2a4000,4096,PROT_READ) = 0
1 mprotect(0x3f43d000,4096,PROT_READ) = 0
1 mprotect(0x3f5de000,4096,PROT_READ) = 0
1 mprotect(0x3f7bf000,12288,PROT_READ) = 0
1 mprotect(0x40015000,4096,PROT_READ) = 0
1 mprotect(0x3f7fd000,4096,PROT_READ) = 0
1 set_tid_address(0x3f011078) = 1
1 set_robust_list(0x3f011080,12) = -1 errno=89 (Function not implemented)
1 rt_sigaction(32,0x3ff1dc60,NULL) = 0
1 rt_sigaction(33,0x3ff1dc60,NULL) = 0
1 rt_sigprocmask(SIG_UNBLOCK,0x3ff1dca8,NULL,16) = 0
1 getrlimit(3,0x3ff1dd30) = 0
1 brk(NULL) = 0x40016280
1 brk(0x40037280) = 0x40037280
1 brk(0x40038000) = 0x40038000
1 gettimeofday(0x3ff1dc68,NULL) = 0 ({tv_sec = 1689943058,tv_usec = 316858},NULL)
1 syscall(4238,1062674124,129,2147483647,0,0)1 futex(0x3f571ecc,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,2147483647,NULL,NULL,0) = 0
 = 0
1 syscall(4238,1062674124,129,2147483647,0,1063123456)1 futex(0x3f571ecc,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,2147483647,NULL,0x3f5dfa00,1063123456) = 0
 = 0
1 inotify_init1(524416,1061345346,2,1073858382,0,0) = 3
1 inotify_add_watch(3,1073858368,642,0,0,0) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"lib/charset.alias",O_RDONLY|O_LARGEFILE) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/gconv/gconv-modules.cache",O_RDONLY) = 4
1 fstat64(4,0x3ff1d420) = 0
1 mmap2(NULL,26358,PROT_READ,MAP_SHARED,4,0) = 0x3f00a000
1 close(4) = 0
1 futex(0x3f428460,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,2147483647,NULL,0x3f249020,1059360800) = 0
1 getpeername(2,0x3ff1da58,0x3ff1dad8) = -1 errno=95 (Socket operation on non-socket)
1 syscall(4238,1062674124,129,2147483647,0,1062673540)1 futex(0x3f571ecc,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,2147483647,NULL,0x3f571c84,1062673540) = 0
 = 0
1 ioctl(2,TCGETS,0x3ff1da30) = -1 errno=25 (Inappropriate ioctl for device)
1 getpid() = 1
1 gettimeofday(0x3ff1d978,NULL) = 0 ({tv_sec = 1689943058,tv_usec = 388241},NULL)
1 openat(AT_FDCWD,"/etc/localtime",O_RDONLY|O_CLOEXEC) = 4
1 fstat64(4,0x3ff1d800) = 0
1 fstat64(4,0x3ff1d6a0) = 0
1 read(4,0x4001cee8,4096) = 148
1 _llseek(4,4294967295,4294967290,0x3ff1d6b0,SEEK_CUR) = 0
1 read(4,0x4001cee8,4096) = 6
1 close(4) = 0
1 write(2,0x3ff1b4b8,120)
** (process:1): WARNING **: 12:37:38.388: Failed to setup inotify watch for '/var/lib/apac': No such file or directory
 = 120
1 close(3) = 0
1 clock_getres(CLOCK_MONOTONIC,0x3ff1dbc4) = 0 ({tv_sec = 0,tv_nsec = 1})
1 getresuid(0x3ff1db7c,0x3ff1db80,0x3ff1db84) = 0
1 getresgid(0x3ff1db88,0x3ff1db8c,0x3ff1db90) = 0
1 socket(PF_UNIX,SOCK_STREAM|SOCK_CLOEXEC,IPPROTO_IP) = 3
1 connect(3,0x3ff1d9ec,33) = -1 errno=2 (No such file or directory)
1 close(3) = 0
1 ioctl(2,TCGETS,0x3ff1dab0) = -1 errno=25 (Inappropriate ioctl for device)
1 getpid() = 1
1 gettimeofday(0x3ff1d9f8,NULL) = 0 ({tv_sec = 1689943058,tv_usec = 470115},NULL)
1 stat64("/etc/localtime",0x3ff1d880) = 0
1 write(2,0x3ff1b538,184)
** (process:1): ERROR **: 12:37:38.470: apac_init failed, error Failed to get D-Bus connection: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
 = 184
1 rt_sigprocmask(SIG_BLOCK,0x3ff1dae0,0x3ff1db60,16) = 0
1 getpid() = 1
1 gettid() = 1
1 tgkill(1,1,SIGTRAP) = 0
1 rt_sigprocmask(SIG_SETMASK,0x3ff1db60,NULL,16) = 0
--- SIGTRAP {si_signo=SIGTRAP, si_code=SI_TKILL, si_pid=1, si_uid=0} ---
qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped

[*] Identification of missing filesytem areas.
[*] Found missing area: /etc/ld.so.cache
[*] Trying to identify this missing file: ld.so.cache
[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/etc/ld.so.cache
[*] Found missing area: lib/charset.alias
[*] Trying to identify this missing file: charset.alias
[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usrlib/charset.alias

-----------------------------------------------------------------