public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/30183] New: x86 bug about glibc.cpu.hwcaps processing in ld.so
@ 2023-03-01  9:03 caiyinyu at loongson dot cn
  2024-05-01 18:08 ` [Bug dynamic-link/30183] " adhemerval.zanella at linaro dot org
  0 siblings, 1 reply; 2+ messages in thread
From: caiyinyu at loongson dot cn @ 2023-03-01  9:03 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30183

            Bug ID: 30183
           Summary: x86 bug about glibc.cpu.hwcaps processing in ld.so
           Product: glibc
           Version: 2.37
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: caiyinyu at loongson dot cn
  Target Milestone: ---

x86: Fix bug about glibc.cpu.hwcaps.

    1. export GLIBC_TUNABLES=glibc.cpu.hwcaps=-AVX512
    2. Add  _dl_printf("p -- %s\n", p); just before switch(nl) in
       sysdeps/x86/cpu-tunables.c
    3. compiled and run ./testrun.sh /usr/bin/ls
    you will get:

    p -- -AVX512
    p -- LC_ADDRESS=en_US.UTF-8
    p -- LC_NUMERIC=C
    ...

    The function, TUNABLE_CALLBACK (set_hwcaps)
    (tunable_val_t *valp), checks far more than it should and it
    should stop at end of "-AVX512".

This can be fixed by the following patch.
https://sourceware.org/pipermail/libc-alpha/2023-March/145961.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug dynamic-link/30183] x86 bug about glibc.cpu.hwcaps processing in ld.so
  2023-03-01  9:03 [Bug dynamic-link/30183] New: x86 bug about glibc.cpu.hwcaps processing in ld.so caiyinyu at loongson dot cn
@ 2024-05-01 18:08 ` adhemerval.zanella at linaro dot org
  0 siblings, 0 replies; 2+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2024-05-01 18:08 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30183

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |2.38
                 CC|                            |adhemerval.zanella at linaro dot o
                   |                            |rg

--- Comment #1 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Fixed on 2.38 (4c721f24fc190d1dc935eb0bab283de7cf13182e).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-01 18:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-01  9:03 [Bug dynamic-link/30183] New: x86 bug about glibc.cpu.hwcaps processing in ld.so caiyinyu at loongson dot cn
2024-05-01 18:08 ` [Bug dynamic-link/30183] " adhemerval.zanella at linaro dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).