From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6EBC03844028; Sat, 4 Jul 2020 12:32:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6EBC03844028 From: "hjl.tools at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/26203] New: GLRO(dl_x86_cpu_features) may not be intialized Date: Sat, 04 Jul 2020 12:32:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.32 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 cc 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 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jul 2020 12:32:50 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26203 Bug ID: 26203 Summary: GLRO(dl_x86_cpu_features) may not be intialized Product: glibc Version: 2.32 Status: NEW Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com CC: drepper.fsp at gmail dot com Target Milestone: --- Target: i386, x86-64 This patch: diff --git a/sysdeps/x86/cacheinfo.c b/sysdeps/x86/cacheinfo.c index 311502dee3..3ddc7104f4 100644 --- a/sysdeps/x86/cacheinfo.c +++ b/sysdeps/x86/cacheinfo.c @@ -769,6 +769,8 @@ init_cacheinfo (void) unsigned int threads =3D 0; const struct cpu_features *cpu_features =3D __get_cpu_features (); + assert (cpu_features->basic.kind !=3D arch_kind_unknown); + if (cpu_features->basic.kind =3D=3D arch_kind_intel) { data =3D handle_intel (_SC_LEVEL1_DCACHE_SIZE, cpu_features); caused: FAIL: elf/tst-libc_dlvsym-static GLRO(dl_x86_cpu_features) in ld.so is initialized by init_cpu_features, whi= ch is invoked by DL_PLATFORM_INIT from _dl_sysdep_start. But ld.so loaded by static executable never calls _dl_sysdep_start. --=20 You are receiving this mail because: You are on the CC list for the bug.=