-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test failure on HP-PARISC: Rack::Utils#test_0013_raise an exception if the params are too deep: #1640
Comments
Apparently the stack on HPPA is not enough to do 100 recursion levels.
|
The size is not unusual, I never had problems with it. Usually it's the direction that causes issues as getting the bottom of the stack is constant and always returns the first address of the stack, but not the current one. |
Well, the stack order is a Ruby issue, not a Rack problem. I don't see benefit in allowing 100 times nested query parameters. Can you run The output of |
Without: 11911 |
Weird, here on x86_64 I get 10918 but it runs that test fine. |
@DerDakon did you elide many lines of duplicated output with |
The first 'each' is in line 41, the 'parse_nested_query' is in line 166 of the log. |
This should be easy to work around on HA-PARISC by setting: Rack::Utils.default_query_parser = QueryParser.make_default(65536, 16) While I agree that 16 levels "ought to be enough for anybody", I guess we should consider cases larger than that. Maybe 32 levels? I'll submit a PR for that. |
Should hopefully fix stack issues on HA PARISC. 32 levels ought to be enough for anybody. Fixes rack#1640.
Fixes stack issues on HP-PARISC. 32 levels ought to be enough for anybody. Fixes rack#1640.
Fixes stack issues on HP-PARISC. 32 levels ought to be enough for anybody. Fixes #1640.
On HPPA, test_insns.rb fails (along with various Ruby gems) with 'stack level too deep (SystemStackError)'. This turns out to be because HPPA defaults to a small(er) stack. With this change, Ruby's test suite passes on HPPA. Thanks to both Dave and Helge for the investigation and coming up with the patch. Bug: https://bugs.gentoo.org/701494 Bug: https://bugs.debian.org/881773 Bug: https://bugs.debian.org/881772 (for PPC64) Bug: rack/rack#1640 Thanks-to: John David Anglin <dave.anglin@bell.net> Thanks-to: Helge Deller <deller@gmx.de>
On HPPA, test_insns.rb fails (along with various Ruby gems) with 'stack level too deep (SystemStackError)'. This turns out to be because HPPA defaults to a small(er) stack. With this change, Ruby's test suite passes on HPPA. Thanks to both Dave and Helge for the investigation and coming up with the patch. Bug: https://bugs.gentoo.org/701494 Bug: https://bugs.debian.org/881773 Bug: https://bugs.debian.org/881772 (for PPC64) Bug: rack/rack#1640 Thanks-to: John David Anglin <dave.anglin@bell.net> Thanks-to: Helge Deller <deller@gmx.de>
On HPPA, test_insns.rb fails (along with various Ruby gems) with 'stack level too deep (SystemStackError)'. This turns out to be because HPPA defaults to a small(er) stack. With this change, Ruby's test suite passes on HPPA. Thanks to both Dave and Helge for the investigation and coming up with the patch. Bug: https://bugs.gentoo.org/701494 Bug: https://bugs.debian.org/881773 Bug: https://bugs.debian.org/881772 (for PPC64) Bug: rack/rack#1640 Thanks-to: John David Anglin <dave.anglin@bell.net> Thanks-to: Helge Deller <deller@gmx.de>
On HPPA, test_insns.rb fails (along with various Ruby gems) with 'stack level too deep (SystemStackError)'. This turns out to be because HPPA defaults to a small(er) stack. With this change, most of Ruby's test suite now passes on HPPA. Thanks to both Dave and Helge for the investigation and coming up with the patch. Bug: https://bugs.gentoo.org/701494 Bug: https://bugs.debian.org/881773 Bug: https://bugs.debian.org/881772 (for PPC64) Bug: rack/rack#1640 Thanks-to: John David Anglin <dave.anglin@bell.net> Thanks-to: Helge Deller <deller@gmx.de> Signed-off-by: Sam James <sam@gentoo.org>
On HPPA, test_insns.rb fails (along with various Ruby gems) with 'stack level too deep (SystemStackError)'. This turns out to be because HPPA defaults to a small(er) stack. With this change, most of Ruby's test suite now passes on HPPA. Thanks to both Dave and Helge for the investigation and coming up with the patch. Bug: https://bugs.gentoo.org/701494 Bug: https://bugs.debian.org/881773 Bug: https://bugs.debian.org/881772 (for PPC64) Bug: rack/rack#1640 Thanks-to: John David Anglin <dave.anglin@bell.net> Thanks-to: Helge Deller <deller@gmx.de> Signed-off-by: Sam James <sam@gentoo.org>
Test output:
Common pitfall: the stack on HPPA machines grows upwards. This one is Gentoo Linux
The text was updated successfully, but these errors were encountered: