WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
216068
[GLIB] kill-old-processes: Remove stale Apache2 shm segments
https://bugs.webkit.org/show_bug.cgi?id=216068
Summary
[GLIB] kill-old-processes: Remove stale Apache2 shm segments
Diego Pino
Reported
2020-09-01 23:09:34 PDT
kill-old-processes: Remove stale Apache shm segments
Attachments
Patch
(3.81 KB, patch)
2020-09-01 23:35 PDT
,
Diego Pino
no flags
Details
Formatted Diff
Diff
Patch
(3.45 KB, patch)
2020-09-01 23:53 PDT
,
Diego Pino
no flags
Details
Formatted Diff
Diff
Patch
(3.48 KB, patch)
2020-09-02 14:18 PDT
,
Diego Pino
no flags
Details
Formatted Diff
Diff
Patch
(3.32 KB, patch)
2020-09-03 20:51 PDT
,
Diego Pino
no flags
Details
Formatted Diff
Diff
Refactored patch.
(4.03 KB, patch)
2020-09-08 14:00 PDT
,
Lauro Moura
no flags
Details
Formatted Diff
Diff
Patch for landing
(3.98 KB, patch)
2020-09-08 21:30 PDT
,
Lauro Moura
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Diego Pino
Comment 1
2020-09-01 23:35:13 PDT
Created
attachment 407742
[details]
Patch
Diego Pino
Comment 2
2020-09-01 23:47:18 PDT
This issue was happening in several EWS workers running in the UAT. For instance:
https://ews-build.webkit-uat.org/#/builders/34/builds/4926/steps/10/logs/stdio
Apache2 doesn't start because it believes there's already an Apache2 instance running, when actually what's happening is that there's an orphan shm segment which pid matches the pid of the new Apache2 instance. In that case layout-test-results/error-log shows an error like this: [Sat Aug 29 20:02:16.013912 2020] [core:crit] [pid 26] (17)File exists: AH00001: unable to create or access scoreboard "/tmp/WebKit/httpd.scoreboard" (name-based shared memory failure) And here's a post with the description of the problem and solution:
https://makandracards.com/fabio-silva/49967-apache-unable-to-create-scoreboard-shared-memory-failure
Diego Pino
Comment 3
2020-09-01 23:53:01 PDT
Created
attachment 407744
[details]
Patch
Alexey Proskuryakov
Comment 4
2020-09-02 10:31:14 PDT
Comment on
attachment 407744
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=407744&action=review
> Tools/BuildSlaveSupport/kill-old-processes:27 > +import subprocess as sp
Why rename the module? WebKit coding style is to avoid abbreviations.
Diego Pino
Comment 5
2020-09-02 14:18:04 PDT
Created
attachment 407812
[details]
Patch
Diego Pino
Comment 6
2020-09-02 14:20:24 PDT
(In reply to Alexey Proskuryakov from
comment #4
)
> Comment on
attachment 407744
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=407744&action=review
> > > Tools/BuildSlaveSupport/kill-old-processes:27 > > +import subprocess as sp > > Why rename the module? WebKit coding style is to avoid abbreviations.
Sorry, I didn't know about this code convention. I pushed a new patch undoing the renaming.
EWS
Comment 7
2020-09-03 01:07:53 PDT
Committed
r266507
: <
https://trac.webkit.org/changeset/266507
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 407812
[details]
.
Radar WebKit Bug Importer
Comment 8
2020-09-03 01:08:13 PDT
<
rdar://problem/68262415
>
Truitt Savell
Comment 9
2020-09-03 11:15:01 PDT
It looks like the changes in
https://trac.webkit.org/changeset/266507/webkit
broke our JSC EWS bot:
https://ews-build.webkit.org/#/builders/38/builds/1408
We will need to roll this out unless it can be fixed very quickly. Traceback (most recent call last): File "Tools/BuildSlaveSupport/kill-old-processes", line 192, in <module> sys.exit(main(user)) File "Tools/BuildSlaveSupport/kill-old-processes", line 184, in main removeOrphanShmSegmentsOf("apache2") File "Tools/BuildSlaveSupport/kill-old-processes", line 39, in removeOrphanShmSegmentsOf pid = futurePidOf(task) File "Tools/BuildSlaveSupport/kill-old-processes", line 56, in futurePidOf ps = subprocess.Popen(task, stderr=subprocess.STDOUT, stdout=devnull) File "/usr/lib/python2.7/subprocess.py", line 394, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
WebKit Commit Bot
Comment 10
2020-09-03 11:40:46 PDT
Re-opened since this is blocked by
bug 216135
Diego Pino
Comment 11
2020-09-03 20:51:38 PDT
Created
attachment 407941
[details]
Patch
Lauro Moura
Comment 12
2020-09-08 14:00:48 PDT
Created
attachment 408266
[details]
Refactored patch.
EWS
Comment 13
2020-09-08 20:55:35 PDT
ChangeLog entry in Tools/ChangeLog is not at the top of the file.
Lauro Moura
Comment 14
2020-09-08 21:30:52 PDT
Created
attachment 408309
[details]
Patch for landing
EWS
Comment 15
2020-09-08 22:14:20 PDT
Committed
r266775
: <
https://trac.webkit.org/changeset/266775
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 408309
[details]
.
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