<?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>13869</bug_id>
          
          <creation_ts>2020-04-15 00:12:25 +0000</creation_ts>
          <short_desc>icu_66.1.bb:do_make_icudata Segmentation Fault in Parallel Builds</short_desc>
          <delta_ts>2020-08-04 02:10:44 +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>oe-core other</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</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>3.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hongxu Jia">hongxu.jia</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>steve</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>87001</commentid>
    <comment_count>0</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2020-04-15 00:12:25 +0000</bug_when>
    <thetext>Since commit [icu: Add knobs to generate a subset of ICU data][1]applied,
It caused Segmentation fault while executing genrb to generate *.res files

1473 LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH  ../bin/genrb -s ./misc -d ./out/build/icudt66l -i ./out/build/icudt66l -k -q pluralRanges.txt
...
1577 make[1]: *** [../data/rules.mk:732: out/build/icudt66l/pluralRanges.res] Segmentation fault (core dumped)
1578 make[1]: *** Waiting for unfinished jobs....


[1]https://git.openembedded.org/openembedded-core/commit/?id=5e5be67744d7ddf5a9ac433ecba02f697a84a325</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87002</commentid>
    <comment_count>1</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2020-04-15 00:14:28 +0000</bug_when>
    <thetext>With a simple google, similar issue of icu

https://unicode-org.atlassian.net/browse/ICU-13595?attachmentOrder=asc&amp;oldIssueView=true

https://bugzilla.mozilla.org/show_bug.cgi?id=869406

https://sourceforge.net/p/icu/mailman/message/12529195/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87050</commentid>
    <comment_count>2</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2020-04-16 15:53:10 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; With a simple google, similar issue of icu
&gt; 
&gt; https://unicode-org.atlassian.net/browse/ICU-
&gt; 13595?attachmentOrder=asc&amp;oldIssueView=true
&gt; 
&gt; https://bugzilla.mozilla.org/show_bug.cgi?id=869406
&gt; 
&gt; https://sourceforge.net/p/icu/mailman/message/12529195/

does disabling parallel make help ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87054</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-04-20 08:38:43 +0000</bug_when>
    <thetext>Also seen here: https://autobuilder.yoctoproject.org/typhoon/#/builders/44/builds/1816 (step 3b)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87055</commentid>
    <comment_count>4</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2020-04-20 19:07:34 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; With a simple google, similar issue of icu
&gt; &gt; 
&gt; &gt; https://unicode-org.atlassian.net/browse/ICU-
&gt; &gt; 13595?attachmentOrder=asc&amp;oldIssueView=true
&gt; &gt; 
&gt; &gt; https://bugzilla.mozilla.org/show_bug.cgi?id=869406
&gt; &gt; 
&gt; &gt; https://sourceforge.net/p/icu/mailman/message/12529195/
&gt; 
&gt; does disabling parallel make help ?

I was trying it locally on wind river linux, if it works, I will send
the fix to community

--- a/meta/recipes-support/icu/icu_66.1.bb
+++ b/meta/recipes-support/icu/icu_66.1.bb
@@ -55,7 +55,7 @@ do_make_icudata_class-target () {
     LDFLAGS=&apos;${BUILD_LDFLAGS}&apos; \
     ICU_DATA_FILTER_FILE=${WORKDIR}/filter.json \
     ./runConfigureICU Linux --with-data-packaging=archive
-    oe_runmake ${PARALLEL_MAKE}
+    oe_runmake
     install -Dm644 ${S}/data/out/icudt${ICU_MAJOR_VER}l.dat ${S}/data/in/icudt${ICU_MAJOR_VER}l.dat
 }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87149</commentid>
    <comment_count>5</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2020-05-06 07:36:24 +0000</bug_when>
    <thetext>I get intermittent failures on dunfell autobuilder builds of icu, likely related:

https://errors.yoctoproject.org/Errors/Details/410500/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87429</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-06-04 23:54:10 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/23/builds/2230</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87491</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-06-16 10:02:27 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/91/builds/2833</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87501</commentid>
    <comment_count>8</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-06-17 03:50:38 +0000</bug_when>
    <thetext>Hongxu: did disabling parallel make help?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87502</commentid>
    <comment_count>9</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2020-06-17 04:04:40 +0000</bug_when>
    <thetext>(In reply to comment #8)
&gt; Hongxu: did disabling parallel make help?

Yes, the issue was not found any more</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87505</commentid>
    <comment_count>10</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-06-18 07:20:20 +0000</bug_when>
    <thetext>We can add PARALLEL_MAKE_task-make-icudata = &quot;&quot; 
to the recipe to disable parallel make in this task.

Execution time for the task goes from 31s to 328s which is my view is unacceptable though, we need to fix this properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87515</commentid>
    <comment_count>11</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-06-18 08:17:26 +0000</bug_when>
    <thetext>Hongxu, Could you (and Robert?) take a look at the build to try to find and fix the race condition?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87516</commentid>
    <comment_count>12</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-06-18 08:20:10 +0000</bug_when>
    <thetext>Actually Ross is going to work on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87520</commentid>
    <comment_count>13</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-06-18 11:07:40 +0000</bug_when>
    <thetext>Got a patch that removes the parallel building but also changes a lot of the build so the performance hit isn&apos;t as bad.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87699</commentid>
    <comment_count>14</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-07-06 15:29:07 +0000</bug_when>
    <thetext>Dropping the AB-INT tag since this is now disabled from the autobuilder perspective (but is still an issue we need to fix).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87876</commentid>
    <comment_count>15</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-08-04 02:10:44 +0000</bug_when>
    <thetext>oe-core df89e8d1136fd406ba35ae573e2cb0cfc88c6aad mostly fixed this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>