public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/29076] New: user_string_quoted() doesn't properly generate strings in .rodata on x86_64 machines
@ 2022-04-20 14:45 wcohen at redhat dot com
  2022-04-20 14:48 ` [Bug runtime/29076] " wcohen at redhat dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: wcohen at redhat dot com @ 2022-04-20 14:45 UTC (permalink / raw)
  To: systemtap

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

            Bug ID: 29076
           Summary: user_string_quoted() doesn't properly generate strings
                    in .rodata on x86_64 machines
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: wcohen at redhat dot com
  Target Milestone: ---

Created attachment 14073
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14073&action=edit
User-space and systemtap script showing issue with .rodata strings

When triaging the testsuite systemtap.syscall/syscall.exp failures I found that
strings that were stored in the .rodata section were not properly printed on
x86_64 fedora 35 machine.  In their place was the pointer value passed in for
the string location.

Have a little example demonstrating the issue in x86_ro_string.tar.gz:
$ uname -a
Linux fedora 5.16.20-200.fc35.x86_64 #1 SMP PREEMPT Wed Apr 13 22:09:20 UTC
2022 x86_64 x86_64 x86_64 GNU/Linux
$ gcc -o acct2 -O2 acct2.c
$ sudo stap -c ./acct2 sys_acct.stp 
[sudo] password for wcohen: 
kprobe.function("__x64_sys_acct")?(0x402010)
kprobe.function("__x64_sys_acct")?("foobar")
kprobe.function("__x64_sys_acct")?(0xffffffffffffffff)

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

end of thread, other threads:[~2022-04-21 12:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-20 14:45 [Bug runtime/29076] New: user_string_quoted() doesn't properly generate strings in .rodata on x86_64 machines wcohen at redhat dot com
2022-04-20 14:48 ` [Bug runtime/29076] " wcohen at redhat dot com
2022-04-20 14:48 ` wcohen at redhat dot com
2022-04-20 14:48 ` fche at redhat dot com
2022-04-20 17:37 ` wcohen at redhat dot com
2022-04-20 18:02 ` fche at redhat dot com
2022-04-20 18:17 ` wcohen at redhat dot com
2022-04-21  9:33 ` mcermak at redhat dot com
2022-04-21 12:33 ` mcermak at redhat dot com

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).