Bug 160927 - [EFL][GTK] Script process-linux-coredump is not needed, switch back to use the kernel core dumper instead.
Summary: [EFL][GTK] Script process-linux-coredump is not needed, switch back to use th...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Carlos Alberto Lopez Perez
URL:
Keywords:
Depends on:
Blocks: 128928
  Show dependency treegraph
 
Reported: 2016-08-16 18:10 PDT by Carlos Alberto Lopez Perez
Modified: 2016-08-22 10:28 PDT (History)
9 users (show)

See Also:


Attachments
Patch (7.46 KB, patch)
2016-08-16 18:18 PDT, Carlos Alberto Lopez Perez
dbates: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Alberto Lopez Perez 2016-08-16 18:10:16 PDT
On r203674 and r203677 a script was added to write to disk the coredumps generated by the WebKit tests.

However, this script is not really needed, because the kernel itself can take care of writing the coredumps to disk directly.

Relying on the kernel core dumper to write the cores to disk has some advantages:

 * Simplifies the handling of coredumps.
 * Avoids running as root a script.
 * The coredump file gets written to disk as the user running the tests, rather than as root.
 * Avoids potential race conditions. On the WebKit Debug bot I found that sometimes when GDB was executed the coredump was still not 100% fully written to disk, and therefore GDB failed with an error saying that the core was truncated. Probably this could be fixed by setting the sysctl core_pipe_limit to a non-zero value. But to seems simpler and safer not piping to a program/script if its not really needed. Since I switched the GTK Debug bot to use the kernel coredumper rather than piping to the script process-linux-coredump I have not found this issue again.
Comment 1 Carlos Alberto Lopez Perez 2016-08-16 18:18:43 PDT
Created attachment 286244 [details]
Patch
Comment 2 Daniel Bates 2016-08-16 22:39:21 PDT
Comment on attachment 286244 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=286244&action=review

> Tools/Scripts/webkitpy/port/linux_get_crash_log.py:80
> +            core_pattern = os.path.join(log_directory, "core-pid_%p.dump")

We should use Filesystem.join() instead of os.path.join() directly.

> Tools/Scripts/webkitpy/port/linux_get_crash_log_unittest.py:47
> +        core_pattern = os.path.join(core_directory, "core-pid_%p.dump")

Ditto.
Comment 3 Carlos Alberto Lopez Perez 2016-08-22 10:28:09 PDT
Committed r204727: <http://trac.webkit.org/changeset/204727>