Wind River Support Network

HomeDefectsLIN1024-3529
Fixed

LIN1024-3529 : grpc: core dumped when set grpc server on qemuriscv64

Created: Aug 27, 2024    Updated: Oct 7, 2024
Resolved Date: Sep 28, 2024
Found In Version: 10.24.33.1
Severity: Standard
Applicable for: Wind River Linux LTS 24
Component/s: Userspace

Description

Build qemuriscv64 image with template feature/grpc and recipe python3-grpcio. 

root@qemuriscv64:~# python3
Python 3.12.4 (main, Jun 6 2024, 18:26:44) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> import grpc
>>> from concurrent import futures
>>>
>>> server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))
[ 129.944788] resolver-execut[1848]: unhandled signal 4 code 0x1 at 0x00007fff9ab4b48c in cygrpc.cpython-312-riscv64-linux-gnu.so[7fff9a3f1000+b70000]
[ 129.948993] CPU: 1 PID: 1848 Comm: resolver-execut Not tainted 6.6.43-yocto-standard #1
[ 129.949670] Hardware name: riscv-virtio,qemu (DT)
[ 129.950223] epc : 00007fff9ab4b48c ra : 00007fff9ab4a612 sp : 00007fff991b4390
[ 129.950805] gp : 000055557e8b2800 tp : 00007fff991b58e0 t0 : 00007fff9b6a2ad0
[ 129.951257] t1 : 00007fff9a6f9c4c t2 : c35feec959a63954 s0 : 0000000000000001
[ 129.951719] s1 : 00007fff9afdc9a8 a0 : 0000000000000001 a1 : 00007fff9b6495a0
[ 129.952336] a2 : 000000000000000a a3 : 000000000000000a a4 : 0000000000000000
[ 129.952889] a5 : 00007fff9afdc9a0 a6 : 00007fff991b3ef3 a7 : 0000000000000039
[ 129.953479] s2 : ffffffffffffffff s3 : 00007fff9bce6d08 s4 : 00007fff9bce6d08
[ 129.954399] s5 : ffffffffffffffff s6 : 00007fff9adbbf18 s7 : 00007fff9afd3b08
[ 129.955097] s8 : 00007fff9bce6d08 s9 : 00007fff991b4760 s10: 00007fff9afd7678
[ 129.955829] s11: 0000000000000000 t3 : 00007fff9ab4b48c t4 : 00007fff9b648ca0
[ 129.956322] t5 : 0000000000000005 t6 : 000055557eb9b510
[ 129.956720] status: 0000000200004020 badaddr: 00000000c0002573 cause: 0000000000000002
Illegal instruction (core dumped)

Steps to Reproduce

1) build
--machine qemuriscv64 --dl-layers  --distros wrlinux --templates feature/LAMP feature/grpc feature/ipv6 feature/mariadb feature/ntp feature/package-management feature/sftp-server feature/syslog-ng feature/system-stats feature/target-toolchain feature/tcpslice

2) 
source environment-setup-x86_64-wrlinuxsdk-linux
source oe-init-build-env build

3) modify conf/local.conf
IMAGE_INSTALL:append=" python3-grpcio"

4) bitbake wrlinux-image-std

5) boot the qemu
$ QB_NET="none" runqemu qemuriscv64 slirp nographic qemuparams=" -device virtio-net-pci,netdev=net0 -netdev user,id=net0,hostfwd=tcp::5340-:22 -m 2048 -smp cpus=4" bootparams="selinux=0 enforcing=0"  ext4  snapshot
 
Live chat
Online