public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/30658] New: LoongArch: ld.so segfaults when tracing
@ 2023-07-20 11:38 asheplyakov at basealt dot ru
  2023-07-20 11:42 ` [Bug dynamic-link/30658] " asheplyakov at basealt dot ru
  2023-07-22 13:05 ` ldv at sourceware dot org
  0 siblings, 2 replies; 3+ messages in thread
From: asheplyakov at basealt dot ru @ 2023-07-20 11:38 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 30658
           Summary: LoongArch: ld.so segfaults when tracing
           Product: glibc
           Version: 2.37
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: asheplyakov at basealt dot ru
  Target Milestone: ---

Created attachment 14991
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14991&action=edit
patch

cat > test.c <<EOF
struct THD;
extern __thread struct THD *current_thd;
void *test() { return current_thd; }
EOF

gcc -ftls-model=initial-exec -shared -fPIC -o libtest.so test.c
env LD_TRACE_LOADED_OBJECTS=1 LD_WARN=1 LD_BIND_NOW=1
/lib64/ld-linux-loongarch-lp64d.so.1 ./libtest.so
    statically linked
undefined symbol: current_thd   (./libtest.so)
Segmentation fault

This failure is particularly annoying since the above tracing command is used
when building RPM packages.

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

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

* [Bug dynamic-link/30658] LoongArch: ld.so segfaults when tracing
  2023-07-20 11:38 [Bug dynamic-link/30658] New: LoongArch: ld.so segfaults when tracing asheplyakov at basealt dot ru
@ 2023-07-20 11:42 ` asheplyakov at basealt dot ru
  2023-07-22 13:05 ` ldv at sourceware dot org
  1 sibling, 0 replies; 3+ messages in thread
From: asheplyakov at basealt dot ru @ 2023-07-20 11:42 UTC (permalink / raw)
  To: glibc-bugs

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

Alexey Sheplyakov <asheplyakov at basealt dot ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |asheplyakov at basealt dot ru

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

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

* [Bug dynamic-link/30658] LoongArch: ld.so segfaults when tracing
  2023-07-20 11:38 [Bug dynamic-link/30658] New: LoongArch: ld.so segfaults when tracing asheplyakov at basealt dot ru
  2023-07-20 11:42 ` [Bug dynamic-link/30658] " asheplyakov at basealt dot ru
@ 2023-07-22 13:05 ` ldv at sourceware dot org
  1 sibling, 0 replies; 3+ messages in thread
From: ldv at sourceware dot org @ 2023-07-22 13:05 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #1 from Dmitry V. Levin <ldv at sourceware dot org> ---
Per https://sourceware.org/glibc/wiki/Contribution%20checklist, please submit
the patch to the mailing list libc-alpha@sourceware.org.

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

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

end of thread, other threads:[~2023-07-22 13:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-20 11:38 [Bug dynamic-link/30658] New: LoongArch: ld.so segfaults when tracing asheplyakov at basealt dot ru
2023-07-20 11:42 ` [Bug dynamic-link/30658] " asheplyakov at basealt dot ru
2023-07-22 13:05 ` ldv at sourceware 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).