Skip to content
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

Stack overflow bug with http handler #494

Closed
alexabsmith opened this issue Mar 23, 2020 · 0 comments
Closed

Stack overflow bug with http handler #494

alexabsmith opened this issue Mar 23, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@alexabsmith
Copy link
Contributor

Reported from the community:

When running this minimal actor with n > 39

actor Test {
    public query func example(n : Nat) : async Text{
        var output : Text = "\n";
        var current_row: Nat = 0;

        for (index in Iter.range(0,n*n-1)){
            
            if (index/n > current_row){
                output #= "\n";
                current_row += 1;
            };

            output #= "◼";

        };

        return output;
    };
};

It will fail with the following error:

Mar 21 17:31:31.284 WARN Could not perform query on canister: IC0502: Canister ic:9888BAFBFF1508D5AC trapped: stack overflow, Application: Http Handler

Somehow it seems like a Text can’t contain more than 1634 characters?

@alexabsmith alexabsmith added the bug Something isn't working label Mar 23, 2020
dfinity-bot added a commit that referenced this issue Nov 28, 2020
## Changelog for advisory-db:
Branch: master
Commits: [rustsec/advisory-db@bc8e7e0b...4c6de397](rustsec/advisory-db@bc8e7e0...4c6de39)

* [`4c6de397`](rustsec/advisory-db@4c6de39) Fix patched version of RUSTSEC-2019-0037 ([RustSec/advisory-db⁠#494](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/494))
mergify bot pushed a commit that referenced this issue Nov 28, 2020
## Changelog for advisory-db:
Branch: master
Commits: [rustsec/advisory-db@bc8e7e0b...4c6de397](rustsec/advisory-db@bc8e7e0...4c6de39)

* [`4c6de397`](rustsec/advisory-db@4c6de39) Fix patched version of RUSTSEC-2019-0037 ([RustSec/advisory-db⁠#494](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/494))
@p-shahi p-shahi closed this as completed Jun 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants