<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>224417</bug_id>
          
          <creation_ts>2021-04-11 07:42:34 -0700</creation_ts>
          <short_desc>bwrap: Can&apos;t mkdir parents for /run/systemd/resolve/stub-resolv.conf: Read-only file system</short_desc>
          <delta_ts>2021-05-04 13:39:03 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Damien Nadé">webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>pgriffis</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1749088</commentid>
    <comment_count>0</comment_count>
    <who name="Damien Nadé">webkit</who>
    <bug_when>2021-04-11 07:42:34 -0700</bug_when>
    <thetext>So I&apos;ve upgraded from fedora 33 to fedora 34 beta this week, and evolution, which I used on a daily basis so far, refused to start after the upgrade. The process does not crash, it just hangs and the window never pops.

Fedora 34 provides a gnome 40 stack, with evolution-3.40.0-1.fc34.x86_64 and webkit2gtk3-2.32.0-2.fc34.x86_64.

If I try to run &apos;evolution&apos; from command line, it prints:

bwrap: Can&apos;t mkdir parents for /run/systemd/resolve/stub-resolv.conf: Read-only file system

But the evolution window never shows up. I&apos;ve tried creating a bogus user on my system to see if it was systemd-wide or just about my own user environment and it turned out the bogus user could actually make evolution start

That&apos;s when I&apos;ve started googling for a potential fix and/or workaround. Then I&apos;ve came accross this year old (and fixed) bug: https://bugzilla.redhat.com/show_bug.cgi?id=1781631 which is linked to https://bugs.webkit.org/show_bug.cgi?id=202880 which looked very similar.

So, I&apos;ve tried &apos;WEBKIT_FORCE_SANDBOX=0 evolution&apos;: it worked. I can get my e-mails now.

I&apos;ve read in the bug comments that it was due to an empty component in LD_LIBRARY_PATH.

My own LD_LIBRARY_PATH is non-empty and contains a single component: The current directory &apos;.&apos; (I often drop .so files here and there for debug. It turned out to be quite convenient). The problem occurs whatever the current working directory is, and I had no .so in my $HOME nor the few other directories I&apos;ve tried, *but* if I &apos;cd /&apos;, then the error message becomes:

bwrap: Can&apos;t create file at /.flatpak-info: Read-only file system

which sounded familliar after reading . The same happens if I explicitly `export LD_LIBRARY_PATH=/`.

I know one could consider this bad practice, but it&apos;s a use case nonetheless. And as a user, what I want is that LD_LIBRARY_PATH does not interfer with the process I start unless there are actually .so files in the directories pointed by its components.

I have not checked webkitgtk source tree but if there are automated test cases somewhere in your environment, maybe you should have a test case for more LD_LIBRARY_PATH values such has:
1. .
2. ..
3. any relative PATH value
4. /
5. Those values with one or more trailing /
6. Things like that :)

I hope this helps. (and gets fixed :) )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1749089</commentid>
    <comment_count>1</comment_count>
    <who name="Damien Nadé">webkit</who>
    <bug_when>2021-04-11 07:43:48 -0700</bug_when>
    <thetext>Forgot to mention that if I unset LD_LIBRARY_PATH, evolution *does* start.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>