<?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>15497</bug_id>
          
          <creation_ts>2024-05-27 23:20:36 +0000</creation_ts>
          <short_desc>read-only PSEUDO_LOCALSTATEDIR should be fatal error</short_desc>
          <delta_ts>2026-04-01 18:20:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Pseudo</product>
          <component>pseudo</component>
          <version>master</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>ACCEPTED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>6.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>milahu</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>mark.hatle</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>tgamblin</cc>
    
    <cc>yp.pseudo.watcher</cc>
    
    <cc>yp.watcher</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>99095</commentid>
    <comment_count>0</comment_count>
    <who name="">milahu</who>
    <bug_when>2024-05-27 23:20:36 +0000</bug_when>
    <thetext>as expected, a missing PSEUDO_LOCALSTATEDIR throws fatal error

$ PSEUDO_LOCALSTATEDIR=/a/b/c/d ./result/bin/pseudo
Warning: PSEUDO_PREFIX unset, defaulting to /tmp/./result.
Can&apos;t open local state path &apos;/a/b/c/d&apos;: No such file or directory

pseudo-1.9.0/pseudo_client.c

pseudo_diag(&quot;Can&apos;t open local state path &apos;%s&apos;: %s\n&quot;,



but if PSEUDO_LOCALSTATEDIR is read-only
then pseudo produces this deadloop

$ ./result/bin/pseudo
Warning: PSEUDO_PREFIX unset, defaulting to /tmp/./result.
help: can&apos;t open log file /tmp/./result/var/pseudo/pseudo.log: Read-only file system
help: can&apos;t open log file /tmp/./result/var/pseudo/pseudo.log: Read-only file system
help: can&apos;t open log file /tmp/./result/var/pseudo/pseudo.log: Read-only file system
...

pseudo-1.9.0/pseudo_util.c

pseudo_diag(&quot;help: can&apos;t open log file %s: %s\n&quot;, pseudo_path, strerror(errno));



i tried adding &quot;exit(1);&quot; after the pseudo_diag call, but no help
so this condition should be checked earlier in the code</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99433</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-07-25 14:20:31 +0000</bug_when>
    <thetext>Is this an edge case bug for pseudo or is there an oe-core workflow that breaks due to this problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99448</commentid>
    <comment_count>2</comment_count>
    <who name="">milahu</who>
    <bug_when>2024-07-25 15:03:46 +0000</bug_when>
    <thetext>its just a bug in pseudo

i have no idea what oe-core workflow is</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99462</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-07-26 23:51:34 +0000</bug_when>
    <thetext>Ah right. I forgot that some people use pseudo outside of Yocto builds.
Can you send a patch to:
❯ rg sendemail .../pseudo.git/README 
97:  git config sendemail.to yocto-patches@lists.yoctoproject.org
?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99463</commentid>
    <comment_count>4</comment_count>
    <who name="">milahu</who>
    <bug_when>2024-07-27 08:10:12 +0000</bug_when>
    <thetext>i have no time for patching, sorry</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99485</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2024-08-01 14:56:44 +0000</bug_when>
    <thetext>Deadlocks are bad so we should fix this at some point but read only filesystems are not common so medium priority.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101803</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-05-01 14:07:06 +0000</bug_when>
    <thetext>Bulk move of all unassigned 5.2 medium importance bugs to 5.3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104905</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-04-01 18:20:45 +0000</bug_when>
    <thetext>I don&apos;t think this has been fixed. Bumping to 6.1.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>