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
308249
Fix filter-build-webkit crash when build line has no path argument
https://bugs.webkit.org/show_bug.cgi?id=308249
Summary
Fix filter-build-webkit crash when build line has no path argument
zak ridouh
Reported
2026-02-19 15:10:59 PST
Guard basename() call against undef $4 when the optional path capture group doesn't match, which causes a error from File::Basename, causing the script to crash. This was manifesting as output stopping and the following error code being emitted, when piping build output through `filter-build-webkit`: ``` Use of uninitialized value $_[0] in substitution (s///) at /System/Library/Perl/5.34/File/Basename.pm line 341, <> line 11967. fileparse(): need a valid pathname at /Users/z/ws/wk/OpenSource/Tools/Scripts/filter-build-webkit line 188. ```
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-02-19 15:11:05 PST
<
rdar://problem/170756867
>
zak ridouh
Comment 2
2026-02-19 15:13:59 PST
Pull request:
https://github.com/WebKit/WebKit/pull/59031
EWS
Comment 3
2026-02-19 16:46:22 PST
Committed
307866@main
(06eb9b4c77bf): <
https://commits.webkit.org/307866@main
> Reviewed commits have been landed. Closing PR #59031 and removing active labels.
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