I'm trying to debug/program an S32G with S32DS 3.6 on Ubuntu 20.04. Everything builds fine, but I get this error when attempting to launch the debugger:
Could not determine GDB version using command: /usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin/arm-none-eabi-gdb-py --version; execution time 58 seconds
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = '/usr/local/bin/python'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/usr/local/bin/python'
sys.base_prefix = '/usr/local'
sys.base_exec_prefix = '/usr/local'
sys.platlibdir = 'lib'
sys.executable = '/usr/local/bin/python'
sys.prefix = '/usr/local'
sys.exec_prefix = '/usr/local'
sys.path = [
'/usr/local/lib/python310.zip',
'/usr/local/lib/python3.10',
'/usr/local/lib/lib-dynload',
]
Python Exception <class 'ModuleNotFoundError'>: No module named 'encodings'
Python not initialized
This is in a fresh Ubuntu 20.04 VM running on an Ubuntu 22.04 host (because S32DS fails to install on Ubuntu 22
Do I need to be hacking in an install of Python 3.10 here? Ubuntu 20.04 uses Python 3.8, but that's not what arm-none-eabi-gcc-py is looking for. The strace log attached along with looking at the binary with strings makes it look like Python 3.10 paths are hardcoded in.
Also seems odd that I'm getting that ModuleNotFoundError since
1) arm-none-eabi-gcc-py doesn't seem to be finding Python and
2) "import encodings" works fine in my system Python.
解決済! 解決策の投稿を見る。
Hello @dustinr,
I have received the following information from the internal team:
"
Based on the attached log, it looks like a Python environment issue. Has the customer followed the instructions in S32DS.3.6.0/S32DS/help/pdf/S32DS_Installation_Guide.pdf chapter titled Installation prerequisites for Linux platforms to install Python 3.10.x?
For S32Debugger to work correctly while debugging ARM cores, the user must install Python 3.10.x. Please follow the relevant chapter to install the necessary tools. Once installed, open a new terminal, navigate to the directory containing the installed S32DS 3.6.0, and execute ./s32ds.sh to launch S32DS.
"
Please let me know if this information solves your problem.
Attachment didn't seem to work, here's the strace log in case it's useful.
execve("./arm-none-eabi-gdb-py", ["./arm-none-eabi-gdb-py", "--version"], 0x7ffe77c776a8 /* 47 vars */) = 0
brk(NULL) = 0x555be38ac000
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffd41ec3570) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=80035, ...}) = 0
mmap(NULL, 80035, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f1841676000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\221\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=231504, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1841674000
mmap(NULL, 233912, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f184163a000
mmap(0x7f1841642000, 159744, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0x7f1841642000
mmap(0x7f1841669000, 36864, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2f000) = 0x7f1841669000
mmap(0x7f1841672000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x37000) = 0x7f1841672000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libtinfo.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \347\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=192032, ...}) = 0
mmap(NULL, 194944, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f184160a000
mmap(0x7f1841618000, 61440, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) = 0x7f1841618000
mmap(0x7f1841627000, 57344, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d000) = 0x7f1841627000
mmap(0x7f1841635000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2a000) = 0x7f1841635000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220q\0\0\0\0\0\0"..., 832) = 832
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\232e\273F\236E\241\306\373\317\372\345\270*/\327"..., 68, 824) = 68
fstat(3, {st_mode=S_IFREG|0755, st_size=157224, ...}) = 0
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\232e\273F\236E\241\306\373\317\372\345\270*/\327"..., 68, 824) = 68
mmap(NULL, 140408, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f18415e7000
mmap(0x7f18415ed000, 69632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f18415ed000
mmap(0x7f18415fe000, 24576, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f18415fe000
mmap(0x7f1841604000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c000) = 0x7f1841604000
mmap(0x7f1841606000, 13432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1841606000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \22\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=18848, ...}) = 0
mmap(NULL, 20752, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f18415e1000
mmap(0x7f18415e2000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7f18415e2000
mmap(0x7f18415e4000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f18415e4000
mmap(0x7f18415e5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f18415e5000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libutil.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\23\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14880, ...}) = 0
mmap(NULL, 16656, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f18415dc000
mmap(0x7f18415dd000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7f18415dd000
mmap(0x7f18415de000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f18415de000
mmap(0x7f18415df000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f18415df000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \341\t\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=1956992, ...}) = 0
mmap(NULL, 1972224, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f18413fa000
mprotect(0x7f1841490000, 1290240, PROT_NONE) = 0
mmap(0x7f1841490000, 987136, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x96000) = 0x7f1841490000
mmap(0x7f1841581000, 299008, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x187000) = 0x7f1841581000
mmap(0x7f18415cb000, 57344, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d0000) = 0x7f18415cb000
mmap(0x7f18415d9000, 10240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f18415d9000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\323\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=1369384, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f18413f8000
mmap(NULL, 1368336, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f18412a9000
mmap(0x7f18412b6000, 684032, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd000) = 0x7f18412b6000
mmap(0x7f184135d000, 626688, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb4000) = 0x7f184135d000
mmap(0x7f18413f6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14c000) = 0x7f18413f6000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3405\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=104984, ...}) = 0
mmap(NULL, 107592, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f184128e000
mmap(0x7f1841291000, 73728, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f1841291000
mmap(0x7f18412a3000, 16384, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7f18412a3000
mmap(0x7f18412a7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x7f18412a7000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300A\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
pread64(3, "\4\0\0\0\20\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0", 32, 848) = 32
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\7\2C\n\357_\243\335\2449\206V>\237\374\304"..., 68, 880) = 68
fstat(3, {st_mode=S_IFREG|0755, st_size=2029592, ...}) = 0
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
pread64(3, "\4\0\0\0\20\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0", 32, 848) = 32
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\7\2C\n\357_\243\335\2449\206V>\237\374\304"..., 68, 880) = 68
mmap(NULL, 2037344, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f184109c000
mmap(0x7f18410be000, 1540096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22000) = 0x7f18410be000
mmap(0x7f1841236000, 319488, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19a000) = 0x7f1841236000
mmap(0x7f1841284000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e7000) = 0x7f1841284000
mmap(0x7f184128a000, 13920, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f184128a000
close(3) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f184109a000
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1841097000
arch_prctl(ARCH_SET_FS, 0x7f1841097e80) = 0
mprotect(0x7f1841284000, 16384, PROT_READ) = 0
mprotect(0x7f18412a7000, 4096, PROT_READ) = 0
mprotect(0x7f18413f6000, 4096, PROT_READ) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1841095000
mprotect(0x7f18415cb000, 45056, PROT_READ) = 0
mprotect(0x7f18415df000, 4096, PROT_READ) = 0
mprotect(0x7f18415e5000, 4096, PROT_READ) = 0
mprotect(0x7f1841604000, 4096, PROT_READ) = 0
mprotect(0x7f1841635000, 16384, PROT_READ) = 0
mprotect(0x7f1841672000, 4096, PROT_READ) = 0
mprotect(0x555bdb281000, 339968, PROT_READ) = 0
mprotect(0x7f18416b7000, 4096, PROT_READ) = 0
munmap(0x7f1841676000, 80035) = 0
set_tid_address(0x7f1841098150) = 99521
set_robust_list(0x7f1841098160, 24) = 0
rt_sigaction(SIGRTMIN, {sa_handler=0x7f18415edbf0, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f18415fb420}, NULL, = 0
rt_sigaction(SIGRT_1, {sa_handler=0x7f18415edc90, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f18415fb420}, NULL, = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
brk(NULL) = 0x555be38ac000
brk(0x555be38cd000) = 0x555be38cd000
getrusage(RUSAGE_SELF, {ru_utime={tv_sec=0, tv_usec=3471}, ru_stime={tv_sec=0, tv_usec=0}, ...}) = 0
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=5699248, ...}) = 0
mmap(NULL, 5699248, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f1840b25000
close(3) = 0
openat(AT_FDCWD, "/proc/self/fd", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
getdents64(3, /* 6 entries */, 32768) = 144
getdents64(3, /* 0 entries */, 32768) = 0
close(3) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
getcwd("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin", 4096) = 62
getcwd("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin", 4096) = 62
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin/arm-none-eabi-gdb-py", {st_mode=S_IFREG|0775, st_size=15366192, ...}) = 0
stat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin/../arm-none-eabi", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/NXP", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/arm-none-eabi", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
getcwd("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin", 4096) = 62
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin/arm-none-eabi-gdb-py", {st_mode=S_IFREG|0775, st_size=15366192, ...}) = 0
stat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin/../lib/debug", 0x7ffd41ec3170) = -1 ENOENT (No such file or directory)
lstat("/opt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/opt/nxp", 0x7ffd41ec2070) = -1 ENOENT (No such file or directory)
getcwd("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin", 4096) = 62
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin/arm-none-eabi-gdb-py", {st_mode=S_IFREG|0775, st_size=15366192, ...}) = 0
stat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin/../share/gdb", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/NXP", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/share", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/share/gdb", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
stat("/usr/local/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], = 0
rt_sigaction(SIGHUP, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGINT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGQUIT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGILL, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGTRAP, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGABRT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGBUS, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGFPE, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGKILL, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGUSR1, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGSEGV, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGUSR2, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGPIPE, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGALRM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGTERM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGSTKFLT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGCHLD, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGCONT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGSTOP, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGTSTP, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGTTIN, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGTTOU, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGURG, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGXCPU, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGXFSZ, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGVTALRM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGPROF, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGWINCH, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGIO, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGPWR, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGSYS, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_2, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_3, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_4, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_5, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_6, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_7, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_8, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_9, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_10, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_11, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_12, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_13, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_14, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_15, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_16, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_17, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_18, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_19, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_20, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_21, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_22, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_23, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_24, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_25, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_26, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_27, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_28, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_29, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_30, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_31, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGRT_32, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
sigaltstack({ss_sp=0x555be38c5140, ss_flags=0, ss_size=8192}, {ss_sp=NULL, ss_flags=SS_DISABLE, ss_size=0}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
getuid() = 1000
geteuid() = 1000
getgid() = 1000
getegid() = 1000
getuid() = 1000
geteuid() = 1000
getgid() = 1000
getegid() = 1000
stat("/home/dustin/.terminfo", 0x555be38c8ab0) = -1 ENOENT (No such file or directory)
stat("/etc/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/lib/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/etc/terminfo/x/xterm-256color", R_OK) = -1 ENOENT (No such file or directory)
access("/lib/terminfo/x/xterm-256color", R_OK) = 0
openat(AT_FDCWD, "/lib/terminfo/x/xterm-256color", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=3503, ...}) = 0
read(3, "\36\2%\0&\0\17\0\235\1\356\5xterm-256color|xterm"..., 32768) = 3503
read(3, "", 28672) = 0
close(3) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=24, ws_col=194, ws_xpixel=0, ws_ypixel=0}) = 0
brk(0x555be38ef000) = 0x555be38ef000
ioctl(0, TIOCGWINSZ, {ws_row=24, ws_col=194, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
brk(0x555be3910000) = 0x555be3910000
lstat("/opt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/opt/nxp", 0x7ffd41ec29a0) = -1 ENOENT (No such file or directory)
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/NXP", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/share", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/share/gdb", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/share/gdb/auto-load", 0x7ffd41ec29a0) = -1 ENOENT (No such file or directory)
pipe([3, 4]) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=1024*1024}) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=1024*1024}) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=1024*1024}) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=1024*1024}) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=1024*1024}) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=1024*1024}) = 0
mmap(NULL, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f1841681000
rt_sigprocmask(SIG_BLOCK, ~[], [], = 0
clone(child_stack=0x7f1841689ff0, flags=CLONE_VM|CLONE_VFORK|SIGCHLD) = 99522
munmap(0x7f1841681000, 36864) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, = 0
close(4) = 0
fcntl(3, F_GETFL) = 0 (flags O_RDONLY)
fstat(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
read(3, "437//\n500//\n500V1//\n850//\n851//\n"..., 4096) = 4096
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=99522, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
read(3, "DANISH//\nCSISO2022CN//\nCSISO2022"..., 4096) = 4096
read(3, "ISO-2022-CN//\nISO-2022-JP-2//\nIS"..., 4096) = 4096
read(3, "F10010001//\nOSF10010004//\nOSF100"..., 4096) = 1298
read(3, "", 4096) = 0
wait4(99522, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 99522
close(3) = 0
prlimit64(0, RLIMIT_CORE, NULL, {rlim_cur=0, rlim_max=RLIM64_INFINITY}) = 0
brk(0x555be3931000) = 0x555be3931000
getcwd("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin", 4096) = 62
lstat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin/arm-none-eabi-gdb-py", {st_mode=S_IFREG|0775, st_size=15366192, ...}) = 0
stat("/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin/../lib/gdb", 0x7ffd41ec2a80) = -1 ENOENT (No such file or directory)
lstat("/opt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/opt/nxp", 0x7ffd41ec1980) = -1 ENOENT (No such file or directory)
brk(0x555be3952000) = 0x555be3952000
brk(0x555be3973000) = 0x555be3973000
pipe2([3, 4], O_CLOEXEC) = 0
fcntl(3, F_GETFD) = 0x1 (flags FD_CLOEXEC)
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
fcntl(3, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
fcntl(4, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
poll([{fd=3, events=POLLIN}], 1, 0) = 0 (Timeout)
brk(0x555be3994000) = 0x555be3994000
brk(0x555be39b5000) = 0x555be39b5000
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
fcntl(0, F_GETFL) = 0x2 (flags O_RDWR)
ioctl(0, TIOCGPGRP, [99518]) = 0
pipe2([5, 6], O_CLOEXEC) = 0
fcntl(5, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
fcntl(6, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
poll([{fd=5, events=POLLIN}], 1, 0) = 0 (Timeout)
pipe2([7, 8], O_CLOEXEC) = 0
fcntl(7, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
fcntl(8, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
rt_sigaction(SIGINT, {sa_handler=0x555bda9b6dd0, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f18410df090}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGTERM, {sa_handler=0x555bda8bd8a0, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f18410df090}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGQUIT, {sa_handler=0x555bda8bd780, sa_mask=[QUIT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f18410df090}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGHUP, {sa_handler=0x555bda8bd750, sa_mask=[HUP], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f18410df090}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGFPE, {sa_handler=0x555bda8bd9d0, sa_mask=[FPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f18410df090}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGBUS, {sa_handler=0x555bda8bd9d0, sa_mask=[BUS], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f18410df090}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGABRT, {sa_handler=0x555bda8bd9d0, sa_mask=[ABRT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f18410df090}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, = 0
rt_sigaction(SIGSEGV, {sa_handler=0x555bda8bdac0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK, sa_restorer=0x7f18415fb420}, NULL, = 0
stat("/home/dustin/.config/gdb/gdbearlyinit", 0x7ffd41ec30a0) = -1 ENOENT (No such file or directory)
stat("/home/dustin/.gdbearlyinit", 0x7ffd41ec30a0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/sys/devices/system/cpu/online", O_RDONLY|O_CLOEXEC) = 9
read(9, "0-7\n", 8192) = 4
close(9) = 0
rt_sigprocmask(SIG_BLOCK, [INT ALRM TERM CHLD WINCH], [], = 0
mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f1840324000
mprotect(0x7f1840325000, 8388608, PROT_READ|PROT_WRITE) = 0
clone(child_stack=0x7f1840b23870, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[99523], tls=0x7f1840b24700, child_tidptr=0x7f1840b249d0) = 99523
mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f183fb23000
mprotect(0x7f183fb24000, 8388608, PROT_READ|PROT_WRITE) = 0
clone(child_stack=0x7f1840322870, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[99524], tls=0x7f1840323700, child_tidptr=0x7f18403239d0) = 99524
mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f183f322000
mprotect(0x7f183f323000, 8388608, PROT_READ|PROT_WRITE) = 0
clone(child_stack=0x7f183fb21870, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[99525], tls=0x7f183fb22700, child_tidptr=0x7f183fb229d0) = 99525
mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f183eb21000
mprotect(0x7f183eb22000, 8388608, PROT_READ|PROT_WRITE) = 0
clone(child_stack=0x7f183f320870, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[99526], tls=0x7f183f321700, child_tidptr=0x7f183f3219d0) = 99526
mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f183e320000
mprotect(0x7f183e321000, 8388608, PROT_READ|PROT_WRITE) = 0
clone(child_stack=0x7f183eb1f870, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[99527], tls=0x7f183eb20700, child_tidptr=0x7f183eb209d0) = 99527
mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f183db1f000
mprotect(0x7f183db20000, 8388608, PROT_READ|PROT_WRITE) = 0
clone(child_stack=0x7f183e31e870, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[99528], tls=0x7f183e31f700, child_tidptr=0x7f183e31f9d0) = 99528
mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f183d31e000
mprotect(0x7f183d31f000, 8388608, PROT_READ|PROT_WRITE) = 0
clone(child_stack=0x7f183db1d870, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[99529], tls=0x7f183db1e700, child_tidptr=0x7f183db1e9d0) = 99529
mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f183cb1d000
mprotect(0x7f183cb1e000, 8388608, PROT_READ|PROT_WRITE) = 0
clone(child_stack=0x7f183d31c870, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[99530], tls=0x7f183d31d700, child_tidptr=0x7f183d31d9d0) = 99530
rt_sigprocmask(SIG_SETMASK, [], NULL, = 0
futex(0x555be38c34b8, FUTEX_WAKE_PRIVATE, 1) = 1
rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f18410df090}, {sa_handler=0x555bda9b6dd0, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f18410df090}, = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 9
fstat(9, {st_mode=S_IFREG|0644, st_size=27002, ...}) = 0
mmap(NULL, 27002, PROT_READ, MAP_SHARED, 9, 0) = 0x7f1841683000
close(9) = 0
futex(0x7f1841289954, FUTEX_WAKE_PRIVATE, 2147483647) = 0
readlink("/usr/local/bin/python", 0x7ffd41ebda70, 4096) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/bin/pyvenv.cfg", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/pyvenv.cfg", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/local/bin/Modules/Setup.local", 0x7ffd41ebea10) = -1 ENOENT (No such file or directory)
stat("/usr/local/bin/lib/python3.10/os.py", 0x7ffd41ebe900) = -1 ENOENT (No such file or directory)
stat("/usr/local/bin/lib/python3.10/os.pyc", 0x7ffd41ebe900) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/python3.10/os.py", 0x7ffd41ebe900) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/python3.10/os.pyc", 0x7ffd41ebe900) = -1 ENOENT (No such file or directory)
stat("/usr/lib/python3.10/os.py", 0x7ffd41ebe900) = -1 ENOENT (No such file or directory)
stat("/usr/lib/python3.10/os.pyc", 0x7ffd41ebe900) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/python3.10/os.py", 0x7ffd41ebe900) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/python3.10/os.pyc", 0x7ffd41ebe900) = -1 ENOENT (No such file or directory)
write(2, "Could not find platform independ"..., 55Could not find platform independent libraries <prefix>
) = 55
openat(AT_FDCWD, "/usr/local/bin/pybuilddir.txt", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/local/bin/lib/python3.10/lib-dynload", 0x7ffd41ebda00) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/python3.10/lib-dynload", 0x7ffd41ebda00) = -1 ENOENT (No such file or directory)
stat("/usr/lib/python3.10/lib-dynload", 0x7ffd41ebda00) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/python3.10/lib-dynload", 0x7ffd41ebda00) = -1 ENOENT (No such file or directory)
write(2, "Could not find platform dependen"..., 58Could not find platform dependent libraries <exec_prefix>
) = 58
write(2, "Consider setting $PYTHONHOME to "..., 57Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
) = 57
getrandom("\x04\xf0\xa2\x12\x5c\x58\x69\xf9\xe7\x92\x2a\xc4\x9b\x55\x5c\xfc\x1f\x56\x13\xd5\x39\xe0\xe5\x4e", 24, GRND_NONBLOCK) = 24
brk(0x555be39eb000) = 0x555be39eb000
mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f183ca1d000
brk(0x555be3a13000) = 0x555be3a13000
mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f183c91d000
sysinfo({uptime=4102, loads=[17216, 11392, 7168], totalram=4100464640, freeram=251756544, sharedram=39157760, bufferram=148140032, totalswap=1713590272, freeswap=1447161856, procs=577, totalhigh=0, freehigh=0, mem_unit=1}) = 0
openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = 9
fstat(9, {st_mode=S_IFREG|0644, st_size=3592, ...}) = 0
fstat(9, {st_mode=S_IFREG|0644, st_size=3592, ...}) = 0
read(9, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\10\0\0\0\0"..., 4096) = 3592
lseek(9, -2280, SEEK_CUR) = 1312
read(9, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\10\0\0\0\0"..., 4096) = 2280
brk(0x555be3a34000) = 0x555be3a34000
close(9) = 0
stat("/usr/local/lib/python310.zip", 0x7ffd41ec1290) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 9
fstat(9, {st_mode=S_IFREG|0644, st_size=2996, ...}) = 0
read(9, "# Locale name alias data base.\n#"..., 4096) = 2996
read(9, "", 4096) = 0
close(9) = 0
openat(AT_FDCWD, "/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale-langpack/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale-langpack/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale-langpack/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale-langpack/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale-langpack/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale-langpack/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/local/lib/python310.zip", 0x7ffd41ec1070) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/python3.10", 0x7ffd41ec1290) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/local/lib/python3.10", 0x7ffd41ec1070) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/lib-dynload", 0x7ffd41ec1290) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/local/lib/lib-dynload", 0x7ffd41ec1070) = -1 ENOENT (No such file or directory)
write(2, "Python path configuration:\n", 27Python path configuration:
) = 27
write(2, " PYTHONHOME = ", 15 PYTHONHOME = ) = 15
write(2, "(not set)", 9(not set)) = 9
write(2, "\n", 1
) = 1
write(2, " PYTHONPATH = ", 15 PYTHONPATH = ) = 15
write(2, "(not set)", 9(not set)) = 9
write(2, "\n", 1
) = 1
write(2, " program name = ", 17 program name = ) = 17
write(2, "'", 1') = 1
write(2, "/", 1/) = 1
write(2, "u", 1u) = 1
write(2, "s", 1s) = 1
write(2, "r", 1r) = 1
write(2, "/", 1/) = 1
write(2, "l", 1l) = 1
write(2, "o", 1o) = 1
write(2, "c", 1c) = 1
write(2, "a", 1a) = 1
write(2, "l", 1l) = 1
write(2, "/", 1/) = 1
write(2, "b", 1b) = 1
write(2, "i", 1i) = 1
write(2, "n", 1n) = 1
write(2, "/", 1/) = 1
write(2, "p", 1p) = 1
write(2, "y", 1y) = 1
write(2, "t", 1t) = 1
write(2, "h", 1h) = 1
write(2, "o", 1o) = 1
write(2, "n", 1n) = 1
write(2, "'", 1') = 1
write(2, "\n", 1
) = 1
write(2, " isolated = 0\n", 15 isolated = 0
) = 15
write(2, " environment = 1\n", 18 environment = 1
) = 18
write(2, " user site = 1\n", 16 user site = 1
) = 16
write(2, " import site = 1\n", 18 import site = 1
) = 18
write(2, " sys._base_executable = ", 25 sys._base_executable = ) = 25
write(2, "'/usr/local/bin/python'", 23'/usr/local/bin/python') = 23
write(2, "\n", 1
) = 1
write(2, " sys.base_prefix = ", 20 sys.base_prefix = ) = 20
write(2, "'/usr/local'", 12'/usr/local') = 12
write(2, "\n", 1
) = 1
write(2, " sys.base_exec_prefix = ", 25 sys.base_exec_prefix = ) = 25
write(2, "'/usr/local'", 12'/usr/local') = 12
write(2, "\n", 1
) = 1
write(2, " sys.platlibdir = ", 19 sys.platlibdir = ) = 19
write(2, "'lib'", 5'lib') = 5
write(2, "\n", 1
) = 1
write(2, " sys.executable = ", 19 sys.executable = ) = 19
write(2, "'/usr/local/bin/python'", 23'/usr/local/bin/python') = 23
write(2, "\n", 1
) = 1
write(2, " sys.prefix = ", 15 sys.prefix = ) = 15
write(2, "'/usr/local'", 12'/usr/local') = 12
write(2, "\n", 1
) = 1
write(2, " sys.exec_prefix = ", 20 sys.exec_prefix = ) = 20
write(2, "'/usr/local'", 12'/usr/local') = 12
write(2, "\n", 1
) = 1
write(2, " sys.path = [\n", 15 sys.path = [
) = 15
write(2, " '/usr/local/lib/python310.zi"..., 36 '/usr/local/lib/python310.zip',
) = 36
write(2, " '/usr/local/lib/python3.10',"..., 33 '/usr/local/lib/python3.10',
) = 33
write(2, " '/usr/local/lib/lib-dynload'"..., 34 '/usr/local/lib/lib-dynload',
) = 34
write(2, " ]\n", 4 ]
) = 4
ioctl(2, TCGETS, 0x7ffd41ec2a60) = -1 ENOTTY (Inappropriate ioctl for device)
write(2, "Python Exception ", 17Python Exception ) = 17
ioctl(2, TCGETS, 0x7ffd41ec2a60) = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(2, TCGETS, 0x7ffd41ec2a60) = -1 ENOTTY (Inappropriate ioctl for device)
write(2, "<class 'ModuleNotFoundError'>", 29<class 'ModuleNotFoundError'>) = 29
ioctl(2, TCGETS, 0x7ffd41ec2a60) = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(2, TCGETS, 0x7ffd41ec2a60) = -1 ENOTTY (Inappropriate ioctl for device)
write(2, ": ", 2: ) = 2
ioctl(2, TCGETS, 0x7ffd41ec2a60) = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(2, TCGETS, 0x7ffd41ec2a60) = -1 ENOTTY (Inappropriate ioctl for device)
write(2, "No module named 'encodings'", 27No module named 'encodings') = 27
ioctl(2, TCGETS, 0x7ffd41ec2a60) = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(2, TCGETS, 0x7ffd41ec2a60) = -1 ENOTTY (Inappropriate ioctl for device)
write(2, "\n", 1
) = 1
ioctl(2, TCGETS, 0x7ffd41ec2a60) = -1 ENOTTY (Inappropriate ioctl for device)
futex(0x7f18412a81e0, FUTEX_WAKE_PRIVATE, 2147483647) = 0
rt_sigaction(SIGINT, {sa_handler=0x555bda9b6dd0, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f18410df090}, {sa_handler=SIG_DFL, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f18410df090}, = 0
sigaltstack({ss_sp=NULL, ss_flags=SS_DISABLE, ss_size=0}, NULL) = 0
rt_sigprocmask(SIG_BLOCK, [TTOU], [], = 0
ioctl(1, TCSBRK, 1) = 0
rt_sigprocmask(SIG_UNBLOCK, [TTOU], NULL, = 0
write(2, "Python not initialized", 22Python not initialized) = 22
ioctl(2, TCGETS, 0x7ffd41ec3040) = -1 ENOTTY (Inappropriate ioctl for device)
write(2, "\n", 1
) = 1
ioctl(2, TCGETS, 0x7ffd41ec3040) = -1 ENOTTY (Inappropriate ioctl for device)
exit_group(1) = ?
+++ exited with 1 +++
Hello @dustinr,
In the past I have had a lot of cases in which using virtual machines generates a number of unexpected problems particularly when debugging. My first recommendation would be to use a Ubuntu LTS 20.04 64-bit native machine (which is the supported version), it would be even better if you could get a Windows 10/11 native machine but I understand that it may not be possible.
With that said, please share the following information so I may start narrowing down the problem:
$ ls /usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin/arm-none-eabi-gdb-py
$ /usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin/arm-none-eabi-gdb-py --version
About the ubuntu python version, it should not affect the GDB python, since it should be included in the same installation as the S32DS, therefore it does not use the python included in your system.
thanks in advance for the information.
And, yeah, an entire second computer just to run Ubuntu 20 or Windows isn't a great option. IT gets kind of finnicky about that sort of stuff. I'd also rather avoid downgrading my computer to Ubuntu 20. Having S32DS 3.6 locked to a four-year-old Ubuntu version is a bit of an unfortunate limitation.
Thanks for the tidbit about the GDB Python version, I didn't realize it was bundled.
This is my first time using S32DS, it's a new addition for my entire team since we only recently started working with an NXP processor.
Here's the info:
dustin@dustin-Standard-PC-Q35-ICH9-2009:~$ ls /usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin/arm-none-eabi-gdb-py
/usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin/arm-none-eabi-gdb-py
dustin@dustin-Standard-PC-Q35-ICH9-2009:~$ /usr/local/NXP/S32DS.3.6.0/S32DS/tools/gdb-arm/arm32-eabi/bin/arm-none-eabi-gdb-py --version
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = '/usr/local/bin/python'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/usr/local/bin/python'
sys.base_prefix = '/usr/local'
sys.base_exec_prefix = '/usr/local'
sys.platlibdir = 'lib'
sys.executable = '/usr/local/bin/python'
sys.prefix = '/usr/local'
sys.exec_prefix = '/usr/local'
sys.path = [
'/usr/local/lib/python310.zip',
'/usr/local/lib/python3.10',
'/usr/local/lib/lib-dynload',
]
Python Exception <class 'ModuleNotFoundError'>: No module named 'encodings'
Python not initialized
dustin@dustin-Standard-PC-Q35-ICH9-2009:~$ echo $PYTHONHOME
dustin@dustin-Standard-PC-Q35-ICH9-2009:~$ echo $PYTHONPATH
dustin@dustin-Standard-PC-Q35-ICH9-2009:~$
You are correct in assuming I'm not setting PYTHONHOME or PYTHONPATH.
Thanks!
Hello @dustinr
Thanks a lot for the information, after some investigation, there might be a configuration issue with the python environment for the S32DS 3.6.0 for Linux. I will escalate this topic with the internal team and come back with their feedback. About the Native PC issue, please consider that we may find some error that arise because of the use of a VM, either way, I will do my best to try to solve the issue.
Please also share all the installation logs so I may also share them with the internal team, they should be in a path similar to this:
...\S32DS.3.6.0\_S32 Design Studio for S32 Platform 3.6.0_installation\Logs
Thanks in advance.
Hello @dustinr,
Thanks for all the information, I will share it with the appropriate team and let you know their feedback.
Best regards
Hello @dustinr,
I have received the following information from the internal team:
"
Based on the attached log, it looks like a Python environment issue. Has the customer followed the instructions in S32DS.3.6.0/S32DS/help/pdf/S32DS_Installation_Guide.pdf chapter titled Installation prerequisites for Linux platforms to install Python 3.10.x?
For S32Debugger to work correctly while debugging ARM cores, the user must install Python 3.10.x. Please follow the relevant chapter to install the necessary tools. Once installed, open a new terminal, navigate to the directory containing the installed S32DS 3.6.0, and execute ./s32ds.sh to launch S32DS.
"
Please let me know if this information solves your problem.
That did the trick, thank you! I originally followed the S32DS 3.5 installation guide since I couldn't find the 3.6 guide on the NXP website, and it doesn't include anything about doing a non-distribution Python install. Has the 3.6 guide been published somewhere? I'm looking on this page: https://www.nxp.com/design/design-center/software/automotive-software-and-tools/s32-design-studio-id...
Hello @dustinr,
I'm glad to know that you were able to debug your chip. About the installation guide, with the S32DS 3.6 being a very recent release, some documents may be missing, just as the installation guide. I am sorry for the inconvenience.
Best regards.