From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DCB523858286; Thu, 21 Dec 2023 00:16:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DCB523858286 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1703117810; bh=xX68RBNMKs/nJG7N6zbZEenSlLofN+uZdvBsGwEbpfw=; h=From:To:Subject:Date:From; b=BT/rc7Klw7Gja+cQL/wKBUej7VVDuMIENbyFsfi8LAvmd8Z21eFOaTF+BGO5ldE8v 3L6r3d3nNXnoEYATYKarXMYcegtDrUvkEAggVUAI3n/rGuhKTPDbk5FAougTxSHECj XssKQ78Q1tICWiQBihfW2A2LF+4/YBp9aYQihncw= From: "hjl.tools at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/31184] New: FAIL: elf/tst-tlsgap Date: Thu, 21 Dec 2023 00:16:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.38 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31184 Bug ID: 31184 Summary: FAIL: elf/tst-tlsgap Product: glibc Version: 2.38 Status: NEW Severity: normal Priority: P2 Component: dynamic-link Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com Target Milestone: --- Target: x32 On x32, I got FAIL: elf/tst-tlsgap open tst-tlsgap-mod1.so Thread 2 "tst-tlsgap" received signal SIGSEGV, Segmentation fault. [Switching to LWP 2268754] _dl_tlsdesc_dynamic () at ../sysdeps/x86_64/dl-tlsdesc.S:108 108 movq (%rsi), %rax (gdb) p/x $rsi $4 =3D 0xf7dbf9005655fb18 (gdb)=20 The problem is at _dl_tlsdesc_dynamic: _CET_ENDBR /* Preserve call-clobbered registers that we modify. We need two scratch regs anyway. */ movq %rsi, -16(%rsp) movq %fs:DTV_OFFSET, %rsi movq %rdi, -8(%rsp) movq TLSDESC_ARG(%rax), %rdi movq (%rsi), %rax cmpq %rax, TLSDESC_GEN_COUNT(%rdi) ja .Lslow movq TLSDESC_MODID(%rdi), %rax salq $4, %rax movq (%rax,%rsi), %rax cmpq $-1, %rax je .Lslow addq TLSDESC_MODOFF(%rdi), %rax .Lret: movq -16(%rsp), %rsi subq %fs:0, %rax movq -8(%rsp), %rdi ret since the dtv field is a pointer, %fs:DTV_OFFSET is a 32-bit location, not 64-bit. --=20 You are receiving this mail because: You are on the CC list for the bug.=