public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "dsmith at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug tapsets/18649] int_arg() misbehaves on x86[_64] for 32-bit uprobe in binary having debuginfo
Date: Mon, 13 Jul 2015 14:38:00 -0000	[thread overview]
Message-ID: <bug-18649-6586-zNSM8I7AHG@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-18649-6586@http.sourceware.org/bugzilla/>

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

David Smith <dsmith at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dsmith at redhat dot com

--- Comment #6 from David Smith <dsmith at redhat dot com> ---
(In reply to Martin Cermak from comment #3)
> Maybe it'd be useful to have an option to foce stap not to use debuginfo
> even if it's available. It'd be easier to use and less invasive than strip.
> I've seen more contraindications between present debuginfo and dwarfless
> probes today, e.g when testing longlong_arg() in 32-on-64 environment on
> x86_64. I see e.g. -P in the man page, but not resp. opposite switch. Dunno.
> Just saying.
> 
> This is just a sidenote, since it has nothing to do with actual fix for this
> bug.

There sort of is an option to ignore all debuginfo, by setting the
SYSTEMTAP_DEBUGINFO environment variable to the empty string. This is what the
nd_syscall.exp test case does, to make sure we're using dwarfless accesses for
everything. Here's the section from the test case:

    # Override SYSTEMTAP_DEBUGINFO_PATH to ensure no debuginfo could be used    
    set env(SYSTEMTAP_DEBUGINFO_PATH) ""                                        

See stappaths.7 for more info on SYSTEMTAP_DEBUGINFO_PATH if you are
interested.

I made this change to nd_syscall.exp after running into copy-and-paste errors
when adding probes to the nd_syscall tapsets - I'd accidentally leave a '$foo'
reference in the nd_syscall probe.

I know this works to ignore kernel debuginfo, I haven't tested to make sure it
works to ignore user program debuginfo.

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

  parent reply	other threads:[~2015-07-13 14:38 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-09  9:29 [Bug tapsets/18649] New: " mcermak at redhat dot com
2015-07-09  9:32 ` [Bug tapsets/18649] " mcermak at redhat dot com
2015-07-09 15:50 ` jistone at redhat dot com
2015-07-10 20:45 ` mcermak at redhat dot com
2015-07-10 20:57 ` mcermak at redhat dot com
2015-07-10 21:47 ` jistone at redhat dot com
2015-07-13 14:38 ` dsmith at redhat dot com [this message]
2015-07-13 16:52 ` jistone at redhat dot com
2015-07-21 14:10 ` mcermak at redhat dot com
2015-07-29 16:29 ` mcermak at redhat dot com
2015-08-14 19:07 ` dsmith at redhat dot com
2015-08-21  7:49 ` mcermak at redhat dot com
2015-08-21 13:50 ` dsmith at redhat dot com
2015-08-21 17:42 ` jistone at redhat dot com
2015-08-31  8:22 ` mcermak at redhat dot com
2015-09-01  7:36 ` mcermak at redhat dot com
2015-09-04  7:47 ` mcermak at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-18649-6586-zNSM8I7AHG@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=systemtap@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).