WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
160927
[EFL][GTK] Script process-linux-coredump is not needed, switch back to use the kernel core dumper instead.
https://bugs.webkit.org/show_bug.cgi?id=160927
Summary
[EFL][GTK] Script process-linux-coredump is not needed, switch back to use th...
Carlos Alberto Lopez Perez
Reported
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.
Attachments
Patch
(7.46 KB, patch)
2016-08-16 18:18 PDT
,
Carlos Alberto Lopez Perez
dbates
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Carlos Alberto Lopez Perez
Comment 1
2016-08-16 18:18:43 PDT
Created
attachment 286244
[details]
Patch
Daniel Bates
Comment 2
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.
Carlos Alberto Lopez Perez
Comment 3
2016-08-22 10:28:09 PDT
Committed
r204727
: <
http://trac.webkit.org/changeset/204727
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug