⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 271199 in webkit


Ignore:
Timestamp:
Jan 6, 2021, 5:45:07 AM (6 years ago)
Author:
Lauro Moura
Message:

[Flatpak SDK] coredumpctl invocation when using a local SDK repo fallbacks to the remote repo
https://bugs.webkit.org/show_bug.cgi?id=219934

Reviewed by Philippe Normand.

Some commands run in flatpak may end up calling other commands on the
host through flatpak-spawn that would enter the flatpak environment
again. One such command happens when getting crash logs, which invokes
webkit-flatpak with --gdb-stack-trace.

Before this commit, the WEBKIT_FLATPAK_USER_DIR is not forwarded,
making flatpakutils.py to download the regular UserFlatpak SDK instead
of using the one in the mentioned variable.

  • Scripts/webkitpy/port/linux_get_crash_log.py:

(GDBCrashLogGenerator._get_trace_from_flatpak):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r271190 r271199  
     12021-01-06  Lauro Moura  <lmoura@igalia.com>
     2
     3        [Flatpak SDK] coredumpctl invocation when using a local SDK repo fallbacks to the remote repo
     4        https://bugs.webkit.org/show_bug.cgi?id=219934
     5
     6        Reviewed by Philippe Normand.
     7
     8        Some commands run in flatpak may end up calling other commands on the
     9        host through flatpak-spawn that would enter the flatpak environment
     10        again. One such command happens when getting crash logs, which invokes
     11        webkit-flatpak with --gdb-stack-trace.
     12
     13        Before this commit, the WEBKIT_FLATPAK_USER_DIR is not forwarded,
     14        making flatpakutils.py to download the regular UserFlatpak SDK instead
     15        of using the one in the mentioned variable.
     16
     17        * Scripts/webkitpy/port/linux_get_crash_log.py:
     18        (GDBCrashLogGenerator._get_trace_from_flatpak):
     19
    1202021-01-05  Aditya Keerthi  <akeerthi@apple.com>
    221
  • trunk/Tools/Scripts/webkitpy/port/linux_get_crash_log.py

    r267784 r271199  
    109109            coredump_since = "--gdb-stack-trace"
    110110        webkit_flatpak_path = self._webkit_finder.path_to_script('webkit-flatpak')
    111         cmd = ['flatpak-spawn', '--host', webkit_flatpak_path, '--%s' % self._port_name,
    112                "--%s" % self._configuration.lower(), coredump_since]
     111        cmd = ['flatpak-spawn', '--host']
     112
     113        # Forward WEBKIT_FLATPAK_USER_DIR so webkit-flatpak can use the same flatpak
     114        # install as the current one.
     115        user_dir = os.environ.get('WEBKIT_FLATPAK_USER_DIR')
     116        if user_dir:
     117            cmd.append("--env=WEBKIT_FLATPAK_USER_DIR=%s" % user_dir)
     118
     119        cmd.extend([webkit_flatpak_path, '--%s' % self._port_name,
     120                    "--%s" % self._configuration.lower(), "--verbose", coredump_since])
    113121
    114122        proc = self._executive.popen(cmd, stdin=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
Note: See TracChangeset for help on using the changeset viewer.