Hi Thomas,

i recently meet below crash within dlopen() related to
toolchain-aarch64_cortex-a53_gcc-13.3.0_musl\gcc-13.3.0 for openwrt.

it seems it is caused by gcc bug related to MACRO ATOMIC_FDE_FAST_PATH

(gdb) bt
#0  0x0000007f8adfde4c in strlen (s=s@entry=0x7f7f853b72 <error: Cannot
access memory at address 0x7f7f853b72>) at src/string/strlen.c:16
#1  0x0000007f8a79817c in get_cie_encoding (cie=cie@entry=0x7f7f853b69)
    at
/local/mnt/workspace/sdx85_227/owrt/build_dir/toolchain-aarch64_cortex-a53_gcc-13.3.0_musl/gcc-13.3.0/libgcc/unwind-dw2-fde.c:352
#2  0x0000007f8a7982e0 in classify_object_over_fdes (ob=0x7f8988b0c8
<object>, this_fde=0x7f89873b64, range=0x7f898ad360)
    at
/local/mnt/workspace/sdx85_227/owrt/build_dir/toolchain-aarch64_cortex-a53_gcc-13.3.0_musl/gcc-13.3.0/libgcc/unwind-dw2-fde.c:747
#3  0x0000007f8a7997f0 in register_pc_range_for_object (begin=<optimized
out>, ob=0x7f8988b0c8 <object>)
    at
/local/mnt/workspace/sdx85_227/owrt/build_dir/toolchain-aarch64_cortex-a53_gcc-13.3.0_musl/gcc-13.3.0/libgcc/unwind-dw2-fde.c:118
#4  0x0000007f8ae0c130 in do_init_fini (queue=<optimized out>) at
ldso/dynlink.c:1608
#5  0x0000007f8ae0e098 in dlopen (file=0x7f8a3f6530
<TRANSPORT_LIBRARY_NAME> "bttransport.so", mode=1) at ldso/dynlink.c:2221
#6  0x0000007f8a36744c in vnd_interface_open () at src/hci_layer_le.cc:239
....


there are no such issue for the same program built with below gcc-12.3.0
toolchain-aarch64_cortex-a53_gcc-12.3.0_musl\gcc-12.3.0

i am not sure if this is the good way to report gcc issue. (^^)

Reply via email to