[Webkit-unassigned] [Bug 232328] New: REGRESSION(r276695): Fails to execute JavaScript when soft stack limit is unlimited

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 26 12:59:27 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=232328

            Bug ID: 232328
           Summary: REGRESSION(r276695): Fails to execute JavaScript when
                    soft stack limit is unlimited
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcatanzaro at gnome.org
                CC: bugs-noreply at webkitgtk.org, dkolesa at igalia.com

Reproducer:

$ ulimit -s unlimited
$ jsc
>>> 1 + 1
Exception:

I'm not sure why JSC cannot print the exception, but it's "maximum call stack size exceeded."

Problem is since r276695 "[WPE][GTK] More correct fixes for stack size issues on musl libc", WTF::StackBounds::currentThreadStackBoundsInternal now calls getrlimit() to get the soft stack limit. When the limit is unlimited, rlim_cur is -1 and the function is not prepared for that. I don't know how to fix it other than to fall back to some suitable default (8192 seems to be the default soft limit).

This is only a regression on Linux, but the Darwin code has the same bug too.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211026/14567634/attachment.htm>


More information about the webkit-unassigned mailing list