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

[*] Initial strace run with jchroot on the command ./usr/sbin/syslog-ng-ctl to identify missing areas

[*] Emulating binary name: syslog-ng-ctl 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 ./sbin/syslog-ng-ctl to identify missing areas

[*] Emulating binary name: syslog-ng-ctl 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) = 0x40014510
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f7c7000
1 uname(0x3ff1d670) = 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/libsyslog-ng-3.19.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d404,512) = 512
1 prctl(46,1072813400,1072813060,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d2c0) = 0
1 mmap2(NULL,847244,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f6f8000
1 mprotect(0x3f7b0000,65536,PROT_NONE) = 0
1 mmap2(0x3f7c0000,24576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0xb8) = 0x3f7c0000
1 mmap2(0x3f7c6000,3468,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f7c6000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libsecret-storage.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d3f4,512) = 512
1 prctl(46,1072813320,1072813044,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d2b0) = 0
1 mmap2(NULL,78112,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f6e4000
1 mprotect(0x3f6e7000,61440,PROT_NONE) = 0
1 mmap2(0x3f6f6000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x2) = 0x3f6f6000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libglib-2.0.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d3e4,512) = 512
1 prctl(46,1072813336,1072813028,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d2a0) = 0
1 mmap2(NULL,1257552,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f5b0000
1 mprotect(0x3f6d1000,61440,PROT_NONE) = 0
1 mmap2(0x3f6e0000,12288,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x120) = 0x3f6e0000
1 mmap2(0x3f6e3000,80,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f6e3000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libpthread.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d3d4,512) = 512
1 prctl(46,1072813416,1072813012,512,1065377792,0) = 0
1 _llseek(3,0,768,0x3ff1d1a0,SEEK_SET) = 0
1 read(3,0x3ff1d1d0,32) = 32
1 fstat64(3,0x3ff1d290) = 0
1 mmap2(NULL,181248,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f583000
1 mprotect(0x3f59d000,61440,PROT_NONE) = 0
1 mmap2(0x3f5ac000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x19) = 0x3f5ac000
1 mmap2(0x3f5ae000,5120,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f5ae000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libc.so.6",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d3c4,512) = 512
1 prctl(46,1072813432,1072812996,512,1065377792,0) = 0
1 _llseek(3,0,760,0x3ff1d198,SEEK_SET) = 0
1 read(3,0x3ff1d1c8,32) = 32
1 fstat64(3,0x3ff1d280) = 0
1 mmap2(NULL,1593152,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f3fe000
1 mprotect(0x3f56b000,61440,PROT_NONE) = 0
1 mmap2(0x3f57a000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x16c) = 0x3f57a000
1 mmap2(0x3f581000,8000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f581000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/librt.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d2d4,512) = 512
1 prctl(46,1072813096,1072812756,512,1065377792,0) = 0
1 _llseek(3,0,704,0x3ff1d0a8,SEEK_SET) = 0
1 read(3,0x3ff1d0d8,32) = 32
1 fstat64(3,0x3ff1d190) = 0
1 mmap2(NULL,94928,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f3e6000
1 mprotect(0x3f3ed000,61440,PROT_NONE) = 0
1 mmap2(0x3f3fc000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x6) = 0x3f3fc000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libevtlog-3.19.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d2c4,512) = 512
1 prctl(46,1072813016,1072812740,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d180) = 0
1 mmap2(NULL,78144,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f3d2000
1 mprotect(0x3f3d5000,61440,PROT_NONE) = 0
1 mmap2(0x3f3e4000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x2) = 0x3f3e4000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libpcre.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d2b4,512) = 512
1 prctl(46,1072813000,1072812724,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d170) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f3d0000
1 mmap2(NULL,545216,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f34a000
1 mprotect(0x3f3bf000,61440,PROT_NONE) = 0
1 mmap2(0x3f3ce000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x74) = 0x3f3ce000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libdl.so.2",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d2a4,512) = 512
1 prctl(46,1072813016,1072812708,512,1065377792,0) = 0
1 _llseek(3,0,648,0x3ff1d078,SEEK_SET) = 0
1 read(3,0x3ff1d0a8,32) = 32
1 fstat64(3,0x3ff1d160) = 0
1 mmap2(NULL,73968,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f337000
1 mprotect(0x3f339000,61440,PROT_NONE) = 0
1 mmap2(0x3f348000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x1) = 0x3f348000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libsystemd.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d294,512) = 512
1 prctl(46,1072813000,1072812692,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d150) = 0
1 mmap2(NULL,814232,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f270000
1 mprotect(0x3f323000,61440,PROT_NONE) = 0
1 mmap2(0x3f332000,20480,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0xb2) = 0x3f332000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libgmodule-2.0.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d284,512) = 512
1 prctl(46,1072812952,1072812676,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d140) = 0
1 mmap2(NULL,78096,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f25c000
1 mprotect(0x3f25f000,61440,PROT_NONE) = 0
1 mmap2(0x3f26e000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x2) = 0x3f26e000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libgthread-2.0.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d274,512) = 512
1 prctl(46,1072812936,1072812660,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d130) = 0
1 mmap2(NULL,69712,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f24a000
1 mprotect(0x3f24b000,61440,PROT_NONE) = 0
1 mmap2(0x3f25a000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0) = 0x3f25a000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libssl.so.1.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d264,512) = 512
1 prctl(46,1072812952,1072812644,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d120) = 0
1 mmap2(NULL,566080,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f1bf000
1 mprotect(0x3f232000,61440,PROT_NONE) = 0
1 mmap2(0x3f241000,36864,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x72) = 0x3f241000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libcrypto.so.1.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d254,512) = 512
1 prctl(46,1072812968,1072812628,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d110) = 0
1 mmap2(NULL,2304304,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ef8c000
1 mprotect(0x3f192000,61440,PROT_NONE) = 0
1 mmap2(0x3f1a1000,106496,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x205) = 0x3f1a1000
1 mmap2(0x3f1bb000,14640,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f1bb000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libuuid.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d244,512) = 512
1 prctl(46,1072812952,1072812612,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d100) = 0
1 mmap2(NULL,94560,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ef74000
1 mprotect(0x3ef7b000,61440,PROT_NONE) = 0
1 mmap2(0x3ef8a000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x6) = 0x3ef8a000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/src/basic/tls/libcap.so.2",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,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3ef72000
1 mmap2(NULL,86384,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ef5c000
1 mprotect(0x3ef60000,65536,PROT_NONE) = 0
1 mmap2(0x3ef70000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x4) = 0x3ef70000
1 close(3) = 0
1 mmap2(NULL,16384,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3ef58000
1 set_thread_area(0x3ef5f4a0) = 0
1 mprotect(0x3f57a000,16384,PROT_READ) = 0
1 mprotect(0x3ef70000,4096,PROT_READ) = 0
1 mprotect(0x3ef8a000,4096,PROT_READ) = 0
1 mprotect(0x3f5ac000,4096,PROT_READ) = 0
1 mprotect(0x3f348000,4096,PROT_READ) = 0
1 mprotect(0x3f1a1000,90112,PROT_READ) = 0
1 mprotect(0x3f241000,20480,PROT_READ) = 0
1 mprotect(0x3f3ce000,4096,PROT_READ) = 0
1 mprotect(0x3f6e0000,4096,PROT_READ) = 0
1 mprotect(0x3f25a000,4096,PROT_READ) = 0
1 mprotect(0x3f26e000,4096,PROT_READ) = 0
1 mprotect(0x3f3fc000,4096,PROT_READ) = 0
1 mprotect(0x3f332000,12288,PROT_READ) = 0
1 mprotect(0x3f3e4000,4096,PROT_READ) = 0
1 mprotect(0x3f6f6000,4096,PROT_READ) = 0
1 mprotect(0x3f7c0000,8192,PROT_READ) = 0
1 mprotect(0x40013000,4096,PROT_READ) = 0
1 mprotect(0x3f7fd000,4096,PROT_READ) = 0
1 set_tid_address(0x3ef58078) = 1
1 set_robust_list(0x3ef58080,12) = -1 errno=89 (Function not implemented)
1 rt_sigaction(32,0x3ff1dcc0,NULL) = 0
1 rt_sigaction(33,0x3ff1dcc0,NULL) = 0
1 rt_sigprocmask(SIG_UNBLOCK,0x3ff1dd08,NULL,16) = 0
1 getrlimit(3,0x3ff1dd90) = 0
1 brk(NULL) = 0x40014510
1 brk(0x40035510) = 0x40035510
1 brk(0x40036000) = 0x40036000
1 gettimeofday(0x3ff1dcc8,NULL) = 0 ({tv_sec = 1689943283,tv_usec = 203848},NULL)
1 openat(AT_FDCWD,"/lib/locale/locale-archive",O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/share/locale/locale.alias",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/locale/C.UTF-8/LC_IDENTIFICATION",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/locale/C.utf8/LC_IDENTIFICATION",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/locale/C/LC_IDENTIFICATION",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 write(2,0x3ff1b6d0,72)Syntax: ./sbin/syslog-ng-ctl <command> [options]
Possible commands are:
 = 72
1 write(2,0x3ff1b6d0,64)    stats                Get syslog-ng statistics in CSV format
 = 64
1 write(2,0x3ff1b6d0,55)    verbose              Enable/query verbose messages
 = 55
1 write(2,0x3ff1b6d0,53)    debug                Enable/query debug messages
 = 53
1 write(2,0x3ff1b6d0,53)    trace                Enable/query trace messages
 = 53
1 write(2,0x3ff1b6d0,48)    stop                 Stop syslog-ng process
 = 48
1 write(2,0x3ff1b6d0,42)    reload               Reload syslog-ng
 = 42
1 write(2,0x3ff1b6d0,58)    reopen               Re-open of log destination files
 = 58
1 write(2,0x3ff1b6d0,93)    query                Query syslog-ng statistics. Possible commands: list, get, get --sum
 = 93
1 write(2,0x3ff1b6d0,60)    show-license-info    Show information about the license
 = 60
1 write(2,0x3ff1b6d0,45)    credentials          Credentials manager
 = 45
1 write(2,0x3ff1b6d0,46)    config               Print current config
 = 46
1 exit_group(1)

[*] 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/locale/C.UTF-8/LC_IDENTIFICATION
[*] Trying to identify this missing file: LC_IDENTIFICATION
[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/locale/C.UTF-8/LC_IDENTIFICATION
[*] Found missing area: /lib/locale/C.utf8/LC_IDENTIFICATION
[*] Trying to identify this missing file: LC_IDENTIFICATION
[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/locale/C.utf8/LC_IDENTIFICATION
[*] Found missing area: /lib/locale/C/LC_IDENTIFICATION
[*] Trying to identify this missing file: LC_IDENTIFICATION
[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/locale/C/LC_IDENTIFICATION
[*] Found missing area: /lib/locale/locale-archive
[*] Trying to identify this missing file: locale-archive
[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/locale/locale-archive
[*] Found missing area: /share/locale/locale.alias
[*] Trying to identify this missing file: locale.alias
[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/share/locale/locale.alias

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