public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/16960] New: today's fresh bits do not work correctly on RHEL6
@ 2014-05-19 14:34 mcermak at redhat dot com
  2014-05-21 18:22 ` [Bug translator/16960] " dsmith at redhat dot com
  2014-05-21 19:11 ` dsmith at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: mcermak at redhat dot com @ 2014-05-19 14:34 UTC (permalink / raw)
  To: systemtap

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

            Bug ID: 16960
           Summary: today's fresh bits do not work correctly on RHEL6
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: mcermak at redhat dot com

Today's master head bits do not work correctly on RHEL6. They compile fine, but
stap throws:


 6.5 S x86_64 # stap -v -e 'probe kernel.function("vfs_read"){ log("hey!");
exit() }'
Pass 1: parsed user script and 106 library script(s) using
205180virt/32988res/3128shr/30452data kb, in 220usr/10sys/229real ms.
Pass 2: analyzed script: 1 probe(s), 2 function(s), 0 embed(s), 0 global(s)
using 233928virt/62272res/3752shr/59200data kb, in 430usr/90sys/524real ms.
Pass 3: translated to C into
"/tmp/stap5OIzNd/stap_21128e6f690f827280eb0960a3fccd4f_1173_src.c" using
233928virt/62600res/4080shr/59200data kb, in 0usr/70sys/74real ms.
In file included from /usr/share/systemtap/runtime/linux/runtime.h:210,
                 from /usr/share/systemtap/runtime/runtime.h:24,
                 from
/tmp/stap5OIzNd/stap_21128e6f690f827280eb0960a3fccd4f_1173_src.c:24:
/usr/share/systemtap/runtime/linux/task_finder.c: In function
‘__stp_utrace_attach_match_filename’:
/usr/share/systemtap/runtime/linux/task_finder.c:850: error: implicit
declaration of function ‘from_kuid_munged’
In file included from /usr/share/systemtap/runtime/linux/print.c:17,
                 from /usr/share/systemtap/runtime/print.c:17,
                 from /usr/share/systemtap/runtime/runtime_context.h:22,
                 from
/tmp/stap5OIzNd/stap_21128e6f690f827280eb0960a3fccd4f_1173_src.c:52:
/usr/share/systemtap/runtime/transport/transport.c: In function
‘_stp_transport_init’:
/usr/share/systemtap/runtime/transport/transport.c:353: error: implicit
declaration of function ‘from_kgid_munged’
make[1]: *** [/tmp/stap5OIzNd/stap_21128e6f690f827280eb0960a3fccd4f_1173_src.o]
Error 1
make: *** [_module_/tmp/stap5OIzNd] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_21128e6f690f827280eb0960a3fccd4f_1173.ko" in
6070usr/1250sys/7863real ms.
Pass 4: compilation failed.  [man error::pass4]
 6.5 S x86_64 # 


Some logs (and also built packages in an xz tarball) available at
https://url.corp.redhat.com/a4aba4f

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

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

* [Bug translator/16960] today's fresh bits do not work correctly on RHEL6
  2014-05-19 14:34 [Bug translator/16960] New: today's fresh bits do not work correctly on RHEL6 mcermak at redhat dot com
@ 2014-05-21 18:22 ` dsmith at redhat dot com
  2014-05-21 19:11 ` dsmith at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: dsmith at redhat dot com @ 2014-05-21 18:22 UTC (permalink / raw)
  To: systemtap

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

David Smith <dsmith at redhat dot com> changed:

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

--- Comment #1 from David Smith <dsmith at redhat dot com> ---
I believe this is related to the following commit:

==================
commit b50e1cd22c61f8f3b32b249a203a1f053ef0fe4c                                 
Author: Frank Ch. Eigler <fche@redhat.com>                                      
Date:   Sat May 17 16:15:01 2014 -0400                                          

    linux/runtime.h: more CONFIG_USER_NS fallout                                

    Partially unrolling commit 7d35a948401, because on modern kernels           
    (3.14+), the from_k?id_munged functions are defined as inlines, and         
    should be used regardless of CONFIG_USER_NS etc.  The buildrun.cxx          
    exportedness test for from_kuid_munged would fail, triggering our           
    runtime to use a do-nothing macro instead.                                  

    Until a more programmatic way is found for those unidentified older         
    kernels that have CONFIG_USER_NS but no from_k?id_munged inlines,           
    for now a user will have to work around the build problem with              

      % stap -DSTAP_FAKE_KID_MUNGED                                             
===================

I'm working on a fix.

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

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

* [Bug translator/16960] today's fresh bits do not work correctly on RHEL6
  2014-05-19 14:34 [Bug translator/16960] New: today's fresh bits do not work correctly on RHEL6 mcermak at redhat dot com
  2014-05-21 18:22 ` [Bug translator/16960] " dsmith at redhat dot com
@ 2014-05-21 19:11 ` dsmith at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: dsmith at redhat dot com @ 2014-05-21 19:11 UTC (permalink / raw)
  To: systemtap

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

David Smith <dsmith at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from David Smith <dsmith at redhat dot com> ---
This should be fixed in commit ca89d28. This change seems to work on RHEL6, on
rawhide, and on arch linux 3.14.4-1 (which has !CONFIG_USER_NS).

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

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

end of thread, other threads:[~2014-05-21 19:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-19 14:34 [Bug translator/16960] New: today's fresh bits do not work correctly on RHEL6 mcermak at redhat dot com
2014-05-21 18:22 ` [Bug translator/16960] " dsmith at redhat dot com
2014-05-21 19:11 ` dsmith 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).