<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5948</bug_id>
          
          <creation_ts>2014-03-12 03:14:42 +0000</creation_ts>
          <short_desc>[1.4.3] crosstap doesn&apos;t work on qemuppc</short_desc>
          <delta_ts>2014-03-27 14:43:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.4.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>adrian.dudau</cc>
    
    <cc>alexandra.safta</cc>
    
    <cc>alexandru.c.georgescu</cc>
    
    <cc>dvhart</cc>
    
    <cc>ke.zou</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>tom.zanussi</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>41114</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-03-12 03:14:42 +0000</bug_when>
    <thetext>Git rev: dylan/7ab82abcad9ede847c42c01d2a4f4c2c18877e6f

This issue was fixed on 1.4 with bug 4099, but now it happens on 1.4.3.
Please refer to bug 5403 and 4099. 
 

Steps:
1.Create the trace_open.stp script as follows:
probe syscall.open
{
        printf (&quot;%s(%d) open (%s)\n&quot;, execname(), pid(), argstr)
}

2.Bitbake a qemuppc core-image-sato-sdk image and start it under qemu.
3.From the host machine poky build_dir, run &quot;crosstap root@192.168.7.2 trace_open.stp&quot;.

Error message:
######################
semantic error: not accessible at this address [man error::dwarf] (0xc012cdc0, dieoffset: 0xc1840d): identifier &apos;$flags&apos; at /buildarea3/yzhao1/poky-build/build-cross/tmp/sysroots/x86_64-linux/usr/share/systemtap/tapset/linux/syscalls2.stp:129:10
        source: 	flags = $flags
                	        ^

semantic error: not accessible at this address [man error::dwarf] (0xc012cdc0, dieoffset: 0xc183fd): identifier &apos;$filename&apos; at :132:54
        source: 		argstr = sprintf(&quot;%s, %s, %#o&quot;, user_string_quoted($filename),
                		                                                   ^

Pass 2: analysis failed.  [man error::pass2]
####################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41132</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-03-12 11:15:49 +0000</bug_when>
    <thetext>I&apos;m not sure what to do with this; the fix is definitely in the kernel source branch we&apos;re using for qemuppc. Tom, any suggestions?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41136</commentid>
    <comment_count>2</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-03-12 13:28:08 +0000</bug_when>
    <thetext>At this point, I would suggest bisecting to figure out what caused the regression - if I&apos;m not mistaken, the number of commits between broken and not should be pretty small.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41146</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-03-12 18:51:42 +0000</bug_when>
    <thetext>Well, FWIW I just tried this on a fresh build of 1.4.2 and it failed there, so this isn&apos;t a 1.4.3 regression. (CentOS 6.5 build machine.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41160</commentid>
    <comment_count>4</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-03-13 06:41:52 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Well, FWIW I just tried this on a fresh build of 1.4.2 and it failed there,
&gt; so this isn&apos;t a 1.4.3 regression. (CentOS 6.5 build machine.)

I tested it on original 1.4 , it also failed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41532</commentid>
    <comment_count>5</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-03-20 14:35:43 +0000</bug_when>
    <thetext>Could we re-test this on master just to make sure it definitely works there?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41588</commentid>
    <comment_count>6</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-03-21 21:57:01 +0000</bug_when>
    <thetext>*** Bug 6016 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41762</commentid>
    <comment_count>7</comment_count>
    <who name="Adrian Dudau">adrian.dudau</who>
    <bug_when>2014-03-26 12:29:47 +0000</bug_when>
    <thetext>IIRC, this was a result of the way later gcc compiles the kernel causing some issues in the debuginfo that scrambles the function entries and variable locations.

We have had this kind of failures before at Enea, in particular with the scheduler.stp file. We wrote some patches around the issue for scheduler.stp but those do not solve the root cause.

Some related bugs are already reported/fixed upstream, not sure if they help with our problem :
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54793
https://sourceware.org/bugzilla/show_bug.cgi?id=15123

I would say we need to investigate if the existing fixes solve our problem and, if not, push the problem upstream.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41765</commentid>
    <comment_count>8</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-03-26 13:10:35 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; IIRC, this was a result of the way later gcc compiles the kernel causing
&gt; some issues in the debuginfo that scrambles the function entries and
&gt; variable locations.
&gt; 
&gt; We have had this kind of failures before at Enea, in particular with the
&gt; scheduler.stp file. We wrote some patches around the issue for scheduler.stp
&gt; but those do not solve the root cause.
&gt; 
&gt; Some related bugs are already reported/fixed upstream, not sure if they help
&gt; with our problem :
&gt; http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54793
&gt; https://sourceware.org/bugzilla/show_bug.cgi?id=15123
&gt; 
&gt; I would say we need to investigate if the existing fixes solve our problem
&gt; and, if not, push the problem upstream.

If you look at the yocto bugs mentioned e.g. 4099 and 5403, you can see that the fix was incorporating those upstream gcc and systemtap fixes.

The fixes did work and were verified by QA at that point - apparently the whole situation is so fragile that unrelated patches added to the point release broke it again.

You mentioned that you have patches that fix the issue - if could please submit them, that would help.

For master, I&apos;ll try upgrading systemtap to the very latest commit and see if it fixes the problem.  If it does, great, if not, we may just have to remove systemtap support for ppc unless someone comes up with fixes.

For 1.4.3, we may or may not be able to upgrade to the latest systemtap, if not, we&apos;ll probably have to remove support for ppc unless someone can come up with fixes.

It&apos;s not a great use of our time to be chasing down bugs in fundamentally broken software.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41846</commentid>
    <comment_count>9</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-03-27 14:43:23 +0000</bug_when>
    <thetext>This will not make 1.4.3 at this point, and is not likely to get fixed for 1.4 in general. Will un-duplicate Bug 6016 opened against master. If someone wants to perform the work to fix this for 1.4, please reopen and assign the bug to yourself.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>