On Thu, Feb 15, 2024 at 3:49 AM Adhemerval Zanella Netto adhemerval.zanella@linaro.org wrote:
On 15/02/24 08:47, H.J. Lu wrote:
On Thu, Feb 15, 2024 at 12:01 AM Maxim Kuvyrkov maxim.kuvyrkov@linaro.org wrote:
On Feb 15, 2024, at 03:54, H.J. Lu hjl.tools@gmail.com wrote:
FAIL: elf/tst-gnu2-tls2
indicates that your _dl_tlsdesc_dynamic may not preserve all caller-saved registers. Please find out how the test fails.
Hi H.J.,
See below.
...
FAIL: 1 regressions
regressions.sum: === glibc tests ===
Running glibc:elf ... FAIL: elf/tst-gnu2-tls2
You can find the failure logs in *.log.1.xz files in
tests.log.1.xz contains output of failed tests -- https://ci.linaro.org/job/tcwg_glibc_check--master-arm-precommit/1460/artifa... === FAIL: elf/tst-gnu2-tls2 original exit status 1 open tst-gnu2-tls2mod0.so open tst-gnu2-tls2mod1.so open tst-gnu2-tls2mod2.so close tst-gnu2-tls2mod0.so close tst-gnu2-tls2mod1.so open tst-gnu2-tls2mod0.so open tst-gnu2-tls2mod1.so Didn't expect signal from child: got `Segmentation fault' ===
Let me know if you need any help investigating this.
I don't have access to aarch64 machine which can build glibc. Please configure glibc with --enable-hardcoded-path-in-tests and run elf/tst-gnu2-tls2 under GDB to find out what is going on.
I will check this out H.J.
Does your _dl_tlsdesc_dynamic save ALL caller-saved registers, except for the return value register? I saw
stp x5, x6, [sp, #16*1] stp x7, x8, [sp, #16*2] stp x9, x10, [sp, #16*3] stp x11, x12, [sp, #16*4] stp x13, x14, [sp, #16*5] stp x15, x16, [sp, #16*6] stp x17, x18, [sp, #16*7]
Do you need to save x1 to x4?