<?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>14869</bug_id>
          
          <creation_ts>2022-08-04 10:10:59 +0000</creation_ts>
          <short_desc>proper closedown of a variable (e.g. SRC_URI) is not properly terminated</short_desc>
          <delta_ts>2022-11-28 10:51:05 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Frans Meulenbroeks">fransmeulenbroeks</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</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>93714</commentid>
    <comment_count>0</comment_count>
    <who name="Frans Meulenbroeks">fransmeulenbroeks</who>
    <bug_when>2022-08-04 10:10:59 +0000</bug_when>
    <thetext>It happens for me every once in a while that I add a line to a multiline SRC_URI or DEPENDS and forget the trailing \
In that case bitbake crashes with SIGTERM, but the lock file is still there

Can we catch this situation and give a proper error message and remove the lock file please?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94460</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-11-28 10:51:05 +0000</bug_when>
    <thetext>I tried to reproduce this with master, removing the &quot;\&quot; from the middle of SRC_URI for acpid:

$ bitbake bash
Loading cache: 100% |#######################################################################################################################################| Time: 0:00:01
Loaded 1688 entries from dependency cache.
ERROR: ParseError at /media/build/poky/meta/recipes-bsp/acpid/acpid.inc:14: unparsed line: &apos;SRC_URI = &quot;${SOURCEFORGE_MIRROR}/acpid2/acpid-${PV}.tar.xz            file://init&apos;
ERROR: Parsing halted due to errors, see error messages above

and I could rerun the command repeatedly, always giving the same error message.

Which release are you seeing the issue in? I suspect we fixed something in recent releases in this area, certainly master seems to work fine.

Please reopen if you can give us a way to reproduce this on master.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>