<?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>13389</bug_id>
          
          <creation_ts>2019-06-11 11:09:32 +0000</creation_ts>
          <short_desc>dtc -I fs (v1.4.7) crashes</short_desc>
          <delta_ts>2020-02-03 02:14:37 +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>2.6.3</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.7.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Maarten Brock">m.brock</reporter>
          <assigned_to name="Maarten Brock">m.brock</assigned_to>
          <cc>akuster</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
    
    <cc>tom.zanussi</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>84140</commentid>
    <comment_count>0</comment_count>
    <who name="Maarten Brock">m.brock</who>
    <bug_when>2019-06-11 11:09:32 +0000</bug_when>
    <thetext>Hi,

Though dtc is also part of the build system, the problem I encountered is with runtime use at the target, which is why I categorized this bug under Runtime.

When you run dtc -I fs /proc/device-tree it fails with a segmentation fault. There already is a patch for this applied to dtc v1.5.0. Would you consider either applying this patch or upgrading to 1.50 or downgrading 1.4.6 in your version 2.6.x ?

https://git.kernel.org/pub/scm/utils/dtc/dtc.git/commit/?id=9619c8619c37b9aea98100bcc15c51a5642e877e

Kind regards,
Maarten Brock</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84141</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-06-11 11:34:07 +0000</bug_when>
    <thetext>For master upgrading is preferred, for any stable branches picking the patch is preferred.

As you&apos;ve identified the fix, would you be willing to prepare a patch to oe-core?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84143</commentid>
    <comment_count>2</comment_count>
    <who name="Maarten Brock">m.brock</who>
    <bug_when>2019-06-11 12:49:35 +0000</bug_when>
    <thetext>Hello Ross,

Thanks for answering. I&apos;m not familiar with sending in patches to openembedded/yocto. Since I pointed out the exact patch upstream, isn&apos;t that enough to just take that and apply it?

Else I would need directions how to proceed.

Kind regards,
Maarten Brock</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84149</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-06-11 15:02:05 +0000</bug_when>
    <thetext>Well for master you&apos;ll ideally be doing the upgrade to 1.5.  Otherwise yes, it should be a simple matter of applying the patch: you&apos;ll spend more time explaining what the fix is for than applying it in the first place.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84151</commentid>
    <comment_count>4</comment_count>
    <who name="Maarten Brock">m.brock</who>
    <bug_when>2019-06-11 15:42:46 +0000</bug_when>
    <thetext>But newer versions including master already carry dtc v1.5.0.

And the mentioned patch already has an explanation why it needs to be applied: &apos;This causes &apos;dtc -I fs&apos; to crash&apos;. It&apos;s actually more verbose.

It&apos;s just that stable 2.6 contains a crashing application which doesn&apos;t exactly sound stable to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84152</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-06-11 22:08:22 +0000</bug_when>
    <thetext>Ah sorry, I wasn&apos;t paying attention obviously.  In that case just apply the fix to all the stable branches.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84180</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-06-13 14:49:41 +0000</bug_when>
    <thetext>The standard flow is to always fix in master, and then back down the branches. This ensures that a fix isn&apos;t made to an old release and not made to newer ones.

master has 1.5.0, which you say doesn&apos;t have this problem.
warrior has 1.4.7.
thud has 1.4.7.
sumo has 1.4.5.

Can you send backport patches for the fix to the three stable branches?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84207</commentid>
    <comment_count>7</comment_count>
    <who name="Maarten Brock">m.brock</who>
    <bug_when>2019-06-14 08:45:33 +0000</bug_when>
    <thetext>dtc 1.4.5 is not broken and thus needs no fix.

And since you insist that *I* apply the patch, I&apos;ll repeat my previous answer:

I&apos;m not familiar with sending in patches to openembedded/yocto. (...) I would need directions how to proceed.

Maarten</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84209</commentid>
    <comment_count>8</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-06-14 11:37:49 +0000</bug_when>
    <thetext>I&apos;m not insisting, I&apos;m asking.  You have the fix to hand and know how to replicate it.  If you don&apos;t want to then we can reassign.

https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded covers the process, but the summary is: take the upstream patch, apply it to the dtc recipe in oe-core.  Add an Upstream-Status: Backport [9619c8619c37b9aea98100bcc15c51a5642e877e] and your Signed-off-by to the patch.  Commit message should explain the problem and fix.  Then git-send-email it to openembedded-core@lists.openembedded.org.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86262</commentid>
    <comment_count>9</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2020-02-03 02:14:26 +0000</bug_when>
    <thetext>2.6 is under community support. no intention of actively working this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86263</commentid>
    <comment_count>10</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2020-02-03 02:14:37 +0000</bug_when>
    <thetext>closing</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>