<?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>3589</bug_id>
          
          <creation_ts>2012-12-13 14:09:45 +0000</creation_ts>
          <short_desc>lttng-modules crashes while doing do_make_scripts task</short_desc>
          <delta_ts>2012-12-14 14:03:56 +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>OE-Core</product>
          <component>kernel</component>
          <version>1.4</version>
          <rep_platform>Other</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Cristian Iorga">cristian.iorga</reporter>
          <assigned_to name="Tom Zanussi">tom.zanussi</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>corneliux.stoicescu</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>28236</commentid>
    <comment_count>0</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2012-12-13 14:09:45 +0000</bug_when>
    <thetext>Autobuilder partial log:

Build status: FAILURE
Buildslave for this Build: ab09 
Complete logs for all build steps: http://autobuilder.yoctoproject.org:8010/builders/cedartrail/builds/212 
Build Reason: Triggerable(cedartrail) 
Build Source Stamp: [branch master] 45915123a727f86b106da7ccb761b23067b1ff88 
Detailed log of last build step: http://autobuilder.yoctoproject.org:8010/builders/cedartrail/builds/212/steps/shell_59/logs/stdio 
Last 20 lines of &quot;shell_59.stdio&quot; Error log:
ERROR: Function failed: do_make_scripts (see /srv/home/pokybuild/yocto-autobuilder/yocto-slave/cedartrail/build/build/tmp/work/cedartrail-poky-linux/lttng-modules/2.0.5-r0/temp/log.do_make_scripts.27949 for further information)
ERROR: Logfile of failure stored in: /srv/home/pokybuild/yocto-autobuilder/yocto-slave/cedartrail/build/build/tmp/work/cedartrail-poky-linux/lttng-modules/2.0.5-r0/temp/log.do_make_scripts.27949
| DEBUG: Executing shell function do_make_scripts
| /srv/home/pokybuild/yocto-autobuilder/yocto-slave/cedartrail/build/build/tmp/work/cedartrail-poky-linux/lttng-modules/2.0.5-r0/temp/run.do_make_scripts.27949: line 113: cd: /srv/home/pokybuild/yocto-autobuilder/yocto-slave/cedartrail/build/build/tmp/work/cedartrail-poky-linux/lttng-modules/2.0.5-r0/git: No such file or directory
| ERROR: Function failed: do_make_scripts (see /srv/home/pokybuild/yocto-autobuilder/yocto-slave/cedartrail/build/build/tmp/work/cedartrail-poky-linux/lttng-modules/2.0.5-r0/temp/log.do_make_scripts.27949 for further information)
ERROR: Task 4027 (/srv/home/pokybuild/yocto-autobuilder/yocto-slave/cedartrail/build/meta/recipes-kernel/lttng-2.0/lttng-modules_2.0.5.bb, do_make_scripts) failed with exit code &apos;1&apos;
Summary: There was 1 ERROR message shown, returning a non-zero exit code. 


-The Yocto BuildBot

Error line:
cd: /srv/home/pokybuild/yocto-autobuilder/yocto-slave/fri2-noemgd/build/build/tmp/work/fri2_noemgd-poky-linux/lttng-modules/2.0.5-r0/git: No such file or directory</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28244</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-12-13 15:59:06 +0000</bug_when>
    <thetext>Tom, this looks odd with cedartrail and fri2 appearing in the log, so it may be an sstate bug. Can you have a look and confirm that this builds?

Cristian, can you confirm that the log reported below is correct? It includes both cedartrail and fri2-noemgd...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28256</commentid>
    <comment_count>2</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2012-12-13 16:58:12 +0000</bug_when>
    <thetext>Also please refrain from using autobuilder links as they expire and information is lost.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28258</commentid>
    <comment_count>3</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2012-12-13 17:13:20 +0000</bug_when>
    <thetext>The same error appears on cedartrail and also on fri2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28271</commentid>
    <comment_count>4</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-12-13 22:37:55 +0000</bug_when>
    <thetext>I&apos;m not able to reproduce it here with the same commits:

trz@elmorro:/usr/local/dev/yocto/cur-test/build$ bitbake lttng-modules
Loading cache: 100% |###########################################################################| ETA:  00:00:00
Loaded 1145 entries from dependency cache.
Parsing recipes: 100% |#########################################################################| Time: 00:00:06
Parsing of 841 .bb files complete (840 cached, 1 parsed). 1145 targets, 22 skipped, 0 masked, 0 errors.

Build Configuration:
BB_VERSION        = &quot;1.17.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-11.10&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;cedartrail&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.3+snapshot-20121213&quot;
TUNE_FEATURES     = &quot;m32 core2&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;45915123a727f86b106da7ccb761b23067b1ff88:45915123a727f86b106da7ccb761b23067b1ff88&quot;
meta-intel        
meta-cedartrail   = &quot;master0:bb36db616a05b318b211513682d849cebaff2cfb&quot;

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: validating kernel configuration
[non-hardware (28)]: meta/cfg/standard/cedartrail/specified_non_hdw.cfg
   This BSP sets config options that are possibly non-hardware related.

[invalid (50)]: meta/cfg/standard/cedartrail/invalid.cfg
   This BSP sets config options that are not offered anywhere within this kernel

NOTE: Tasks Summary: Attempted 575 tasks of which 547 didn&apos;t need to be rerun and all succeeded.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28274</commentid>
    <comment_count>5</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-12-14 02:45:39 +0000</bug_when>
    <thetext>Also, not seen with fri2-noemgd + DISTRO = poky-lsb and &apos;bitbake core-image-lsb core-image-lsb-sdk -k&apos; - this built fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28277</commentid>
    <comment_count>6</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-12-14 02:57:26 +0000</bug_when>
    <thetext>So, looking at the actual build directories on the autobuilder, we see the following error saying it can&apos;t find the git directory in the workdir:

tomz@yocto-iab09:/srv/home/pokybuild/yocto-autobuilder/yocto-slave/cedartrail/build/build/tmp/work/cedartrail-poky-linux/lttng-modules/2.0.5-r0/temp&gt; less log.do_make_scripts

/srv/home/pokybuild/yocto-autobuilder/yocto-slave/cedartrail/build/build/tmp/work/cedartrail-poky-linux/lttng-modules/2.0.5-r0/temp/run.do_make_scripts.27949: line 113: cd: /srv/home/pokybuild/yocto-autobuilder/yocto-slave/cedartrail/build/build/tmp/work/cedartrail-poky-linux/lttng-modules/2.0.5-r0/git: No such file or directory


But listing it shows it&apos;s in fact there:

tomz@yocto-iab09:/srv/home/pokybuild/yocto-autobuilder/yocto-slave/cedartrail/build/build/tmp/work/cedartrail-poky-linux/lttng-modules/2.0.5-r0/temp&gt; ls -al /srv/home/pokybuild/yocto-autobuilder/yocto-slave/cedartrail/build/build/tmp/work/cedartrail-poky-linux/lttng-modules/2.0.5-r0/git
total 352
drwxr-xr-x 9 pokybuild users  4096 Dec 13 06:58 .
drwxrwxrwx 6 pokybuild users  4096 Dec 13 06:58 ..
-rw-rw-rw- 1 pokybuild users  7042 Dec 13 06:58 ChangeLog
drwxrwxrwx 8 pokybuild users  4096 Dec 13 06:58 .git
-rw-rw-rw- 1 pokybuild users   936 Dec 13 06:58 .gitignore
-rw-rw-rw- 1 pokybuild users 17987 Dec 13 06:58 gpl-2.0.txt
drwxrwxrwx 4 pokybuild users  4096 Dec 13 06:58 instrumentation
-rw-rw-rw- 1 pokybuild users 26434 Dec 13 06:58 lgpl-2.1.txt
drwxrwxrwx 4 pokybuild users  4096 Dec 13 06:58 lib
-rw-rw-rw- 1 pokybuild users   689 Dec 13 06:58 LICENSE
-rw-rw-rw- 1 pokybuild users 20571 Dec 13 06:58 lttng-abi.c
-rw-rw-rw- 1 pokybuild users  4851 Dec 13 06:58 lttng-abi.h
-rw-rw-rw- 1 pokybuild users  1178 Dec 13 06:58 lttng-calibrate.c
-rw-rw-rw- 1 pokybuild users  2924 Dec 13 06:58 lttng-context.c


So it is actually there, but apparently it wasn&apos;t when that task (run_do_make_scripts) was run, which means we probably have a race.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28280</commentid>
    <comment_count>7</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-12-14 05:28:41 +0000</bug_when>
    <thetext>I sent a patch that might fix this - basically trying to make sure do_make_scripts can&apos;t happen before do_unpack as seems to be happening in this case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28294</commentid>
    <comment_count>8</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-12-14 14:03:56 +0000</bug_when>
    <thetext>fixed by poky/master commmit: 936c460ab8ab71d29e768e8e417abd477ece4166</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>